tribunal-kit 5.7.0 → 5.8.1

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 (59) hide show
  1. package/.agent/ARCHITECTURE.md +6 -7
  2. package/.agent/agents/frontend-reviewer.md +13 -0
  3. package/.agent/agents/frontend-specialist.md +14 -0
  4. package/.agent/agents/logic-reviewer.md +11 -0
  5. package/.agent/agents/orchestrator.md +15 -0
  6. package/.agent/agents/project-planner.md +5 -0
  7. package/.agent/agents/security-auditor.md +13 -0
  8. package/.agent/agents/ui-ux-auditor.md +7 -31
  9. package/.agent/history/memory/.memory.idx +1693 -0
  10. package/.agent/history/memory/MEMORY.md +123 -0
  11. package/.agent/routing_index.json +694 -714
  12. package/.agent/rules/GEMINI.md +88 -13
  13. package/.agent/scripts/_colors.js +131 -89
  14. package/.agent/scripts/_utils.js +163 -128
  15. package/.agent/scripts/auto_preview.js +207 -197
  16. package/.agent/scripts/bundle_analyzer.js +227 -192
  17. package/.agent/scripts/case_law_manager.js +991 -689
  18. package/.agent/scripts/checklist.js +233 -190
  19. package/.agent/scripts/context_broker.js +930 -605
  20. package/.agent/scripts/dependency_analyzer.js +275 -184
  21. package/.agent/scripts/graph_builder.js +412 -341
  22. package/.agent/scripts/graph_visualizer.js +392 -390
  23. package/.agent/scripts/graph_zoom.js +198 -156
  24. package/.agent/scripts/inner_loop_validator.js +523 -445
  25. package/.agent/scripts/lint_runner.js +199 -157
  26. package/.agent/scripts/marathon_harness.js +819 -661
  27. package/.agent/scripts/minify_context.js +115 -100
  28. package/.agent/scripts/mutation_runner.js +321 -280
  29. package/.agent/scripts/prompt_compiler.js +62 -42
  30. package/.agent/scripts/schema_validator.js +373 -280
  31. package/.agent/scripts/security_scan.js +333 -190
  32. package/.agent/scripts/session_manager.js +306 -270
  33. package/.agent/scripts/skill_evolution.js +810 -637
  34. package/.agent/scripts/skill_integrator.js +327 -307
  35. package/.agent/scripts/strengthen_skills.js +203 -193
  36. package/.agent/scripts/swarm_dispatcher.js +558 -457
  37. package/.agent/scripts/test_runner.js +178 -152
  38. package/.agent/scripts/verify_all.js +200 -168
  39. package/.agent/skills/fabel-protocol/SKILL.md +271 -0
  40. package/.agent/skills/thinking-protocol/SKILL.md +27 -0
  41. package/.agent/workflows/generate.md +2 -1
  42. package/.agent/workflows/tribunal-full.md +4 -3
  43. package/.agent/workflows/tribunal-speed.md +1 -1
  44. package/README.md +184 -58
  45. package/bin/mcp-server.js +496 -173
  46. package/bin/tribunal-kit.js +1245 -987
  47. package/bin/wrapper.js +108 -74
  48. package/dist/cli.js +44 -0
  49. package/dist/commands/align.js +201 -0
  50. package/dist/commands/case.js +23 -0
  51. package/dist/commands/compile.js +84 -0
  52. package/dist/commands/init.js +42 -0
  53. package/dist/commands/learn.js +57 -0
  54. package/dist/commands/memory.js +456 -0
  55. package/package.json +22 -10
  56. package/scripts/benchmark.js +162 -125
  57. package/scripts/changelog.js +196 -168
  58. package/scripts/sync-version.js +94 -81
  59. package/scripts/validate-payload.js +85 -78
@@ -0,0 +1,123 @@
1
+ # 🧠 Tribunal Memory Index
2
+ > Auto-generated by `tribunal-kit memory export`. Do not edit manually.
3
+ > Entries: 111 | Semantic: 89 | Procedural: 22 | Episodic: 0 | Working: 0
4
+
5
+ ## SEMANTIC (Permanent Facts)
6
+ | ID | Content | Tags | Source | Created |
7
+ |----|---------|------|--------|---------|
8
+ | 1 | ❌ Overriding project idioms without explicit justification -> ✅ Idioms represent team decisions; flag deviations with reasoning | project-idiom, auto-learned | manual | 1783147927Z |
9
+ | 2 | ❌ Applying idioms from one project to a different project -> ✅ Idioms are project-specific; verify they apply to the current codebase | project-idiom, auto-learned | manual | 1783147927Z |
10
+ | 3 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783147927Z |
11
+ | 4 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783147927Z |
12
+ | 5 | [ ] Have I reviewed the user's specific constraints and requests? | project-idiom, auto-learned | manual | 1783147927Z |
13
+ | 6 | [ ] Have I checked the environment for relevant existing implementations? | project-idiom, auto-learned | manual | 1783147927Z |
14
+ | 7 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783147927Z |
15
+ | 8 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783147927Z |
16
+ | 11 | ❌ Overriding project idioms without explicit justification -> ✅ Idioms represent team decisions; flag deviations with reasoning | project-idiom, auto-learned | manual | 1783148175Z |
17
+ | 12 | ❌ Applying idioms from one project to a different project -> ✅ Idioms are project-specific; verify they apply to the current codebase | project-idiom, auto-learned | manual | 1783148175Z |
18
+ | 13 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783148175Z |
19
+ | 14 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783148175Z |
20
+ | 15 | [ ] Have I reviewed the user's specific constraints and requests? | project-idiom, auto-learned | manual | 1783148175Z |
21
+ | 16 | [ ] Have I checked the environment for relevant existing implementations? | project-idiom, auto-learned | manual | 1783148175Z |
22
+ | 17 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783148175Z |
23
+ | 18 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783148175Z |
24
+ | 21 | ❌ Overriding project idioms without explicit justification -> ✅ Idioms represent team decisions; flag deviations with reasoning | project-idiom, auto-learned | manual | 1783148243Z |
25
+ | 22 | ❌ Applying idioms from one project to a different project -> ✅ Idioms are project-specific; verify they apply to the current codebase | project-idiom, auto-learned | manual | 1783148244Z |
26
+ | 23 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783148244Z |
27
+ | 24 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783148244Z |
28
+ | 25 | [ ] Have I reviewed the user's specific constraints and requests? | project-idiom, auto-learned | manual | 1783148244Z |
29
+ | 26 | [ ] Have I checked the environment for relevant existing implementations? | project-idiom, auto-learned | manual | 1783148244Z |
30
+ | 27 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783148244Z |
31
+ | 28 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783148244Z |
32
+ | 31 | ❌ Overriding project idioms without explicit justification -> ✅ Idioms represent team decisions; flag deviations with reasoning | project-idiom, auto-learned | manual | 1783148917Z |
33
+ | 32 | ❌ Applying idioms from one project to a different project -> ✅ Idioms are project-specific; verify they apply to the current codebase | project-idiom, auto-learned | manual | 1783148917Z |
34
+ | 33 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783148917Z |
35
+ | 34 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783148917Z |
36
+ | 35 | [ ] Have I reviewed the user's specific constraints and requests? | project-idiom, auto-learned | manual | 1783148917Z |
37
+ | 36 | [ ] Have I checked the environment for relevant existing implementations? | project-idiom, auto-learned | manual | 1783148917Z |
38
+ | 37 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783148917Z |
39
+ | 38 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783148917Z |
40
+ | 41 | ❌ Overriding project idioms without explicit justification -> ✅ Idioms represent team decisions; flag deviations with reasoning | project-idiom, auto-learned | manual | 1783152364Z |
41
+ | 42 | ❌ Applying idioms from one project to a different project -> ✅ Idioms are project-specific; verify they apply to the current codebase | project-idiom, auto-learned | manual | 1783152364Z |
42
+ | 43 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783152364Z |
43
+ | 44 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783152364Z |
44
+ | 45 | [ ] Have I reviewed the user's specific constraints and requests? | project-idiom, auto-learned | manual | 1783152364Z |
45
+ | 46 | [ ] Have I checked the environment for relevant existing implementations? | project-idiom, auto-learned | manual | 1783152364Z |
46
+ | 47 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783152364Z |
47
+ | 48 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783152364Z |
48
+ | 51 | ❌ Overriding project idioms without explicit justification -> ✅ Idioms represent team decisions; flag deviations with reasoning | project-idiom, auto-learned | manual | 1783438387Z |
49
+ | 52 | ❌ Applying idioms from one project to a different project -> ✅ Idioms are project-specific; verify they apply to the current codebase | project-idiom, auto-learned | manual | 1783438387Z |
50
+ | 53 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783438387Z |
51
+ | 54 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783438387Z |
52
+ | 55 | [ ] Have I reviewed the user's specific constraints and requests? | project-idiom, auto-learned | manual | 1783438387Z |
53
+ | 56 | [ ] Have I checked the environment for relevant existing implementations? | project-idiom, auto-learned | manual | 1783438387Z |
54
+ | 57 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783438387Z |
55
+ | 58 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783438387Z |
56
+ | 61 | ❌ Overriding project idioms without explicit justification -> ✅ Idioms represent team decisions; flag deviations with reasoning | project-idiom, auto-learned | manual | 1783438449Z |
57
+ | 62 | ❌ Applying idioms from one project to a different project -> ✅ Idioms are project-specific; verify they apply to the current codebase | project-idiom, auto-learned | manual | 1783438449Z |
58
+ | 63 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783438449Z |
59
+ | 64 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783438449Z |
60
+ | 65 | [ ] Have I reviewed the user's specific constraints and requests? | project-idiom, auto-learned | manual | 1783438449Z |
61
+ | 66 | [ ] Have I checked the environment for relevant existing implementations? | project-idiom, auto-learned | manual | 1783438449Z |
62
+ | 67 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783438449Z |
63
+ | 68 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783438449Z |
64
+ | 71 | ❌ Overriding project idioms without explicit justification -> ✅ Idioms represent team decisions; flag deviations with reasoning | project-idiom, auto-learned | manual | 1783438727Z |
65
+ | 72 | ❌ Applying idioms from one project to a different project -> ✅ Idioms are project-specific; verify they apply to the current codebase | project-idiom, auto-learned | manual | 1783438727Z |
66
+ | 73 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783438727Z |
67
+ | 74 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783438727Z |
68
+ | 75 | [ ] Have I reviewed the user's specific constraints and requests? | project-idiom, auto-learned | manual | 1783438727Z |
69
+ | 76 | [ ] Have I checked the environment for relevant existing implementations? | project-idiom, auto-learned | manual | 1783438727Z |
70
+ | 77 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783438727Z |
71
+ | 78 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783438727Z |
72
+ | 81 | ❌ Overriding project idioms without explicit justification -> ✅ Idioms represent team decisions; flag deviations with reasoning | project-idiom, auto-learned | manual | 1783782112Z |
73
+ | 82 | ❌ Applying idioms from one project to a different project -> ✅ Idioms are project-specific; verify they apply to the current codebase | project-idiom, auto-learned | manual | 1783782112Z |
74
+ | 83 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783782112Z |
75
+ | 84 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783782112Z |
76
+ | 85 | [ ] Have I reviewed the user's specific constraints and requests? | project-idiom, auto-learned | manual | 1783782112Z |
77
+ | 86 | [ ] Have I checked the environment for relevant existing implementations? | project-idiom, auto-learned | manual | 1783782112Z |
78
+ | 87 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783782112Z |
79
+ | 88 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783782112Z |
80
+ | 91 | ❌ Overriding project idioms without explicit justification -> ✅ Idioms represent team decisions; flag deviations with reasoning | project-idiom, auto-learned | manual | 1783782132Z |
81
+ | 92 | ❌ Applying idioms from one project to a different project -> ✅ Idioms are project-specific; verify they apply to the current codebase | project-idiom, auto-learned | manual | 1783782132Z |
82
+ | 93 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783782132Z |
83
+ | 94 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783782132Z |
84
+ | 95 | [ ] Have I reviewed the user's specific constraints and requests? | project-idiom, auto-learned | manual | 1783782132Z |
85
+ | 96 | [ ] Have I checked the environment for relevant existing implementations? | project-idiom, auto-learned | manual | 1783782132Z |
86
+ | 97 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783782132Z |
87
+ | 98 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783782132Z |
88
+ | 101 | Database is PostgreSQL | db, postgres | manual | 1783783700Z |
89
+ | 102 | ❌ Overriding project idioms without explicit justification -> ✅ Idioms represent team decisions; flag deviations with reasoning | project-idiom, auto-learned | manual | 1783785670Z |
90
+ | 103 | ❌ Applying idioms from one project to a different project -> ✅ Idioms are project-specific; verify they apply to the current codebase | project-idiom, auto-learned | manual | 1783785670Z |
91
+ | 104 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783785670Z |
92
+ | 105 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783785670Z |
93
+ | 106 | [ ] Have I reviewed the user's specific constraints and requests? | project-idiom, auto-learned | manual | 1783785670Z |
94
+ | 107 | [ ] Have I checked the environment for relevant existing implementations? | project-idiom, auto-learned | manual | 1783785670Z |
95
+ | 108 | ❌ **Forbidden:** Declaring a task complete because the output "looks correct." | project-idiom, auto-learned | manual | 1783785670Z |
96
+ | 109 | ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended. | project-idiom, auto-learned | manual | 1783785670Z |
97
+
98
+ ## PROCEDURAL (How-To Recipes)
99
+ | ID | Content | Tags | Source | Created |
100
+ |----|---------|------|--------|---------|
101
+ | 9 | Run `echo 'No build step required for this project'` to build the project | build-script, build, auto-learned | manual | 1783147927Z |
102
+ | 10 | Run `npm run validate-payload && jest --coverage` to test the project | build-script, test, auto-learned | manual | 1783147927Z |
103
+ | 19 | Run `echo 'No build step required for this project'` to build the project | build-script, build, auto-learned | manual | 1783148175Z |
104
+ | 20 | Run `npm run validate-payload && jest --coverage` to test the project | build-script, test, auto-learned | manual | 1783148175Z |
105
+ | 29 | Run `echo 'No build step required for this project'` to build the project | build-script, build, auto-learned | manual | 1783148244Z |
106
+ | 30 | Run `npm run validate-payload && jest --coverage` to test the project | build-script, test, auto-learned | manual | 1783148244Z |
107
+ | 39 | Run `echo 'No build step required for this project'` to build the project | build-script, build, auto-learned | manual | 1783148917Z |
108
+ | 40 | Run `npm run validate-payload && jest --coverage` to test the project | build-script, test, auto-learned | manual | 1783148917Z |
109
+ | 49 | Run `echo 'No build step required for this project'` to build the project | build-script, build, auto-learned | manual | 1783152364Z |
110
+ | 50 | Run `npm run validate-payload && jest --coverage` to test the project | build-script, test, auto-learned | manual | 1783152364Z |
111
+ | 59 | Run `echo 'No build step required for this project'` to build the project | build-script, build, auto-learned | manual | 1783438387Z |
112
+ | 60 | Run `npm run validate-payload && jest --coverage` to test the project | build-script, test, auto-learned | manual | 1783438387Z |
113
+ | 69 | Run `echo 'No build step required for this project'` to build the project | build-script, build, auto-learned | manual | 1783438449Z |
114
+ | 70 | Run `npm run validate-payload && jest --coverage` to test the project | build-script, test, auto-learned | manual | 1783438449Z |
115
+ | 79 | Run `echo 'No build step required for this project'` to build the project | build-script, build, auto-learned | manual | 1783438727Z |
116
+ | 80 | Run `npm run validate-payload && jest --coverage` to test the project | build-script, test, auto-learned | manual | 1783438727Z |
117
+ | 89 | Run `echo 'No build step required for this project'` to build the project | build-script, build, auto-learned | manual | 1783782112Z |
118
+ | 90 | Run `npm run validate-payload && jest --coverage` to test the project | build-script, test, auto-learned | manual | 1783782112Z |
119
+ | 99 | Run `echo 'No build step required for this project'` to build the project | build-script, build, auto-learned | manual | 1783782132Z |
120
+ | 100 | Run `npm run validate-payload && jest --coverage` to test the project | build-script, test, auto-learned | manual | 1783782132Z |
121
+ | 110 | Run `echo 'No build step required for this project'` to build the project | build-script, build, auto-learned | manual | 1783785670Z |
122
+ | 111 | Run `npm run validate-payload && jest --coverage` to test the project | build-script, test, auto-learned | manual | 1783785670Z |
123
+