tribunal-kit 4.4.1 → 4.4.3

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 (141) hide show
  1. package/.agent/history/architecture-graph.yaml +140 -0
  2. package/.agent/history/graph-cache.json +262 -0
  3. package/.agent/history/snapshots/bin__tribunal-kit.js.json +19 -0
  4. package/.agent/history/snapshots/eslint.config.js.json +9 -0
  5. package/.agent/history/snapshots/migrate_refs.js.json +11 -0
  6. package/.agent/history/snapshots/scripts__changelog.js.json +13 -0
  7. package/.agent/history/snapshots/scripts__sync-version.js.json +12 -0
  8. package/.agent/history/snapshots/scripts__validate-payload.js.json +12 -0
  9. package/.agent/history/snapshots/test__integration__bridges.test.js.json +14 -0
  10. package/.agent/history/snapshots/test__integration__init.test.js.json +14 -0
  11. package/.agent/history/snapshots/test__integration__routing.test.js.json +12 -0
  12. package/.agent/history/snapshots/test__integration__swarm_dispatcher.test.js.json +14 -0
  13. package/.agent/history/snapshots/test__integration__wave2.test.js.json +14 -0
  14. package/.agent/history/snapshots/test__unit__args.test.js.json +20 -0
  15. package/.agent/history/snapshots/test__unit__case_law_manager.test.js.json +11 -0
  16. package/.agent/history/snapshots/test__unit__context_broker.test.js.json +11 -0
  17. package/.agent/history/snapshots/test__unit__copyDir.test.js.json +23 -0
  18. package/.agent/history/snapshots/test__unit__graph_tools.test.js.json +12 -0
  19. package/.agent/history/snapshots/test__unit__inner_loop_validator.test.js.json +11 -0
  20. package/.agent/history/snapshots/test__unit__selfInstall.test.js.json +23 -0
  21. package/.agent/history/snapshots/test__unit__semver.test.js.json +20 -0
  22. package/.agent/history/snapshots/test__unit__swarm_dispatcher.test.js.json +12 -0
  23. package/.agent/scripts/_colors.js +170 -18
  24. package/.agent/scripts/_utils.js +244 -42
  25. package/.agent/scripts/bundle_analyzer.js +261 -290
  26. package/.agent/scripts/case_law_manager.js +1 -7
  27. package/.agent/scripts/checklist.js +278 -266
  28. package/.agent/scripts/colors.js +11 -17
  29. package/.agent/scripts/context_broker.js +1 -7
  30. package/.agent/scripts/dependency_analyzer.js +234 -272
  31. package/.agent/scripts/graph_builder.js +46 -18
  32. package/.agent/scripts/graph_visualizer.js +10 -4
  33. package/.agent/scripts/graph_zoom.js +6 -4
  34. package/.agent/scripts/inner_loop_validator.js +2 -8
  35. package/.agent/scripts/lint_runner.js +186 -187
  36. package/.agent/scripts/marathon_harness.js +799 -0
  37. package/.agent/scripts/prompt_compiler.js +56 -0
  38. package/.agent/scripts/schema_validator.js +8 -25
  39. package/.agent/scripts/security_scan.js +276 -303
  40. package/.agent/scripts/session_manager.js +1 -7
  41. package/.agent/scripts/skill_evolution.js +1 -8
  42. package/.agent/scripts/skill_integrator.js +1 -7
  43. package/.agent/scripts/test_runner.js +186 -193
  44. package/.agent/scripts/utils.js +17 -32
  45. package/.agent/scripts/verify_all.js +248 -257
  46. package/.agent/skills/agent-organizer/SKILL.md +42 -0
  47. package/.agent/skills/agentic-patterns/SKILL.md +42 -0
  48. package/.agent/skills/ai-prompt-injection-defense/SKILL.md +42 -0
  49. package/.agent/skills/api-patterns/SKILL.md +42 -0
  50. package/.agent/skills/api-security-auditor/SKILL.md +42 -0
  51. package/.agent/skills/app-builder/SKILL.md +42 -0
  52. package/.agent/skills/appflow-wireframe/SKILL.md +42 -0
  53. package/.agent/skills/architecture/SKILL.md +42 -0
  54. package/.agent/skills/authentication-best-practices/SKILL.md +42 -0
  55. package/.agent/skills/backend-security-expert/SKILL.md +122 -0
  56. package/.agent/skills/bash-linux/SKILL.md +42 -0
  57. package/.agent/skills/behavioral-modes/SKILL.md +42 -0
  58. package/.agent/skills/brainstorming/SKILL.md +42 -0
  59. package/.agent/skills/building-native-ui/SKILL.md +42 -0
  60. package/.agent/skills/clean-code/SKILL.md +42 -0
  61. package/.agent/skills/code-review-checklist/SKILL.md +42 -0
  62. package/.agent/skills/config-validator/SKILL.md +42 -0
  63. package/.agent/skills/csharp-developer/SKILL.md +42 -0
  64. package/.agent/skills/data-validation-schemas/SKILL.md +42 -0
  65. package/.agent/skills/database-design/SKILL.md +42 -0
  66. package/.agent/skills/deployment-procedures/SKILL.md +42 -0
  67. package/.agent/skills/devops-engineer/SKILL.md +42 -0
  68. package/.agent/skills/devops-incident-responder/SKILL.md +42 -0
  69. package/.agent/skills/documentation-templates/SKILL.md +42 -0
  70. package/.agent/skills/edge-computing/SKILL.md +42 -0
  71. package/.agent/skills/error-resilience/SKILL.md +42 -0
  72. package/.agent/skills/extract-design-system/SKILL.md +42 -0
  73. package/.agent/skills/framer-motion-expert/SKILL.md +42 -0
  74. package/.agent/skills/frontend-design/SKILL.md +42 -0
  75. package/.agent/skills/frontend-security-expert/SKILL.md +123 -0
  76. package/.agent/skills/game-design-expert/SKILL.md +42 -0
  77. package/.agent/skills/game-engineering-expert/SKILL.md +42 -0
  78. package/.agent/skills/geo-fundamentals/SKILL.md +42 -0
  79. package/.agent/skills/github-operations/SKILL.md +42 -0
  80. package/.agent/skills/gsap-core/SKILL.md +42 -0
  81. package/.agent/skills/gsap-frameworks/SKILL.md +42 -0
  82. package/.agent/skills/gsap-performance/SKILL.md +42 -0
  83. package/.agent/skills/gsap-plugins/SKILL.md +42 -0
  84. package/.agent/skills/gsap-react/SKILL.md +42 -0
  85. package/.agent/skills/gsap-scrolltrigger/SKILL.md +42 -0
  86. package/.agent/skills/gsap-timeline/SKILL.md +42 -0
  87. package/.agent/skills/gsap-utils/SKILL.md +42 -0
  88. package/.agent/skills/i18n-localization/SKILL.md +42 -0
  89. package/.agent/skills/intelligent-routing/SKILL.md +42 -0
  90. package/.agent/skills/knowledge-graph/SKILL.md +42 -0
  91. package/.agent/skills/lint-and-validate/SKILL.md +42 -0
  92. package/.agent/skills/llm-engineering/SKILL.md +42 -0
  93. package/.agent/skills/local-first/SKILL.md +42 -0
  94. package/.agent/skills/mcp-builder/SKILL.md +42 -0
  95. package/.agent/skills/mobile-design/SKILL.md +42 -0
  96. package/.agent/skills/monorepo-management/SKILL.md +42 -0
  97. package/.agent/skills/motion-engineering/SKILL.md +42 -0
  98. package/.agent/skills/nextjs-react-expert/SKILL.md +42 -0
  99. package/.agent/skills/nodejs-best-practices/SKILL.md +42 -0
  100. package/.agent/skills/observability/SKILL.md +42 -0
  101. package/.agent/skills/parallel-agents/SKILL.md +42 -0
  102. package/.agent/skills/performance-profiling/SKILL.md +42 -0
  103. package/.agent/skills/plan-writing/SKILL.md +42 -0
  104. package/.agent/skills/platform-engineer/SKILL.md +42 -0
  105. package/.agent/skills/playwright-best-practices/SKILL.md +42 -0
  106. package/.agent/skills/powershell-windows/SKILL.md +42 -0
  107. package/.agent/skills/project-idioms/SKILL.md +42 -0
  108. package/.agent/skills/python-patterns/SKILL.md +42 -0
  109. package/.agent/skills/python-pro/SKILL.md +42 -0
  110. package/.agent/skills/react-specialist/SKILL.md +42 -0
  111. package/.agent/skills/readme-builder/SKILL.md +42 -0
  112. package/.agent/skills/realtime-patterns/SKILL.md +42 -0
  113. package/.agent/skills/red-team-tactics/SKILL.md +42 -0
  114. package/.agent/skills/rust-pro/SKILL.md +42 -0
  115. package/.agent/skills/seo-fundamentals/SKILL.md +42 -0
  116. package/.agent/skills/server-management/SKILL.md +42 -0
  117. package/.agent/skills/shadcn-ui-expert/SKILL.md +42 -0
  118. package/.agent/skills/skill-creator/SKILL.md +42 -0
  119. package/.agent/skills/sql-pro/SKILL.md +42 -0
  120. package/.agent/skills/supabase-postgres-best-practices/SKILL.md +42 -0
  121. package/.agent/skills/swiftui-expert/SKILL.md +42 -0
  122. package/.agent/skills/systematic-debugging/SKILL.md +42 -0
  123. package/.agent/skills/tailwind-patterns/SKILL.md +42 -0
  124. package/.agent/skills/tdd-workflow/SKILL.md +42 -0
  125. package/.agent/skills/test-result-analyzer/SKILL.md +42 -0
  126. package/.agent/skills/testing-patterns/SKILL.md +42 -0
  127. package/.agent/skills/trend-researcher/SKILL.md +42 -0
  128. package/.agent/skills/typescript-advanced/SKILL.md +42 -0
  129. package/.agent/skills/ui-ux-pro-max/SKILL.md +42 -0
  130. package/.agent/skills/ui-ux-researcher/SKILL.md +42 -0
  131. package/.agent/skills/vue-expert/SKILL.md +42 -0
  132. package/.agent/skills/vulnerability-scanner/SKILL.md +42 -0
  133. package/.agent/skills/web-accessibility-auditor/SKILL.md +42 -0
  134. package/.agent/skills/web-design-guidelines/SKILL.md +42 -0
  135. package/.agent/skills/webapp-testing/SKILL.md +42 -0
  136. package/.agent/skills/whimsy-injector/SKILL.md +42 -0
  137. package/.agent/skills/workflow-optimizer/SKILL.md +42 -0
  138. package/.agent/workflows/marathon.md +247 -0
  139. package/.agent/workflows/super-prompt.md +27 -0
  140. package/bin/tribunal-kit.js +47 -1
  141. package/package.json +3 -2
@@ -0,0 +1,27 @@
1
+ # /super-prompt — Tokenless Prompt Compiler
2
+
3
+ Converts conversational, fluffy requests into hyper-dense YAML structures that LLMs process perfectly, reducing prompt tokens and drastically improving response accuracy. **Zero API tokens are used during compilation.**
4
+
5
+ ## Usage
6
+
7
+ Instead of typing your prompt into the AI chat directly, run the local compiler from your terminal:
8
+
9
+ ```bash
10
+ node .agent/scripts/prompt_compiler.js "Hey, could you please build a login page using React and tailwind for me?"
11
+ ```
12
+
13
+ ## Expected Output
14
+
15
+ The script strips conversational fillers and outputs a dense YAML block to your terminal instantly:
16
+
17
+ ```yaml
18
+ ---
19
+ action: build
20
+ target: login page using React and tailwind
21
+ stack: [react, tailwind]
22
+ ---
23
+ ```
24
+
25
+ ## Next Step
26
+
27
+ Copy the YAML output and paste it into the AI chat. The LLM will use this structured format to generate a highly accurate response while saving massive amounts of context window tokens!
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  /**
3
3
  * tribunal-kit CLI (alias: tk)
4
4
  *
@@ -743,6 +743,9 @@ async function runWithUpdateCheck(command, flags) {
743
743
  case 'context':
744
744
  cmdContext(flags);
745
745
  break;
746
+ case 'marathon':
747
+ cmdMarathon(flags);
748
+ break;
746
749
  case 'uninstall':
747
750
  cmdUninstall(flags);
748
751
  break;
@@ -956,6 +959,7 @@ function cmdHelp() {
956
959
  log(cmd('graph', 'Build and visualize the architecture graph'));
957
960
  log(cmd('mutate', 'Run the Mutation Engine to test test-suite reliability'));
958
961
  log(cmd('context', 'Retrieve a highly-optimized Context Snapshot for a file'));
962
+ log(cmd('marathon', 'Long-running agent harness (init, status, next, mark)'));
959
963
  log(cmd('hook', 'Install pre-push git hook for auto-learning'));
960
964
  log(cmd('uninstall','Remove .agent/ folder from project'));
961
965
  console.log();
@@ -994,12 +998,54 @@ function cmdHelp() {
994
998
  log(ex('tk case overrule --id 1'));
995
999
  log(ex('tk graph'));
996
1000
  log(ex('tk mutate src/utils.js "npm test"'));
1001
+ log(ex('tk marathon init "Build a todo app"'));
1002
+ log(ex('tk marathon status'));
1003
+ log(ex('tk marathon next'));
1004
+ log(ex('tk marathon mark 5 pass'));
997
1005
  log(ex('tk hook'));
998
1006
  log(ex('tk uninstall'));
999
1007
  console.log();
1000
1008
  }
1001
1009
 
1002
1010
 
1011
+ function cmdMarathon(flags) {
1012
+ const targetDir = flags.path ? path.resolve(flags.path) : process.cwd();
1013
+ const agentDest = path.join(targetDir, '.agent');
1014
+
1015
+ if (!fs.existsSync(agentDest)) {
1016
+ err('.agent/ not found. Run: npx tribunal-kit init');
1017
+ process.exit(1);
1018
+ }
1019
+
1020
+ const args = process.argv.slice(3);
1021
+ const argsStr = args.join(' ');
1022
+ if (args.length === 0 || args[0] === 'help' || args[0] === '--help' || args[0] === '-h') {
1023
+ banner();
1024
+ log(` ${c('cyan', '╔' + '═'.repeat(60) + '╗')}`);
1025
+ log(` ${c('cyan', '║')}${c('bold', c('white', ' Marathon — Long-Running Agent Harness '))}${c('cyan', '║')}`);
1026
+ log(` ${c('cyan', '╚' + '═'.repeat(60) + '╝')}`);
1027
+ console.log();
1028
+ log(` ${c('cyan', 'init'.padEnd(16))} ${c('gray', 'Start a new marathon (init "spec")')}`);
1029
+ log(` ${c('cyan', 'status'.padEnd(16))} ${c('gray', 'Show progress dashboard')}`);
1030
+ log(` ${c('cyan', 'next'.padEnd(16))} ${c('gray', 'Show next unfinished feature')}`);
1031
+ log(` ${c('cyan', 'mark'.padEnd(16))} ${c('gray', 'Mark feature pass/fail (mark <id> pass)')}`);
1032
+ log(` ${c('cyan', 'log'.padEnd(16))} ${c('gray', 'Add a progress note')}`);
1033
+ log(` ${c('cyan', 'session-start'.padEnd(16))} ${c('gray', 'Begin a new work session')}`);
1034
+ log(` ${c('cyan', 'session-end'.padEnd(16))} ${c('gray', 'End session with summary')}`);
1035
+ log(` ${c('cyan', 'add-feature'.padEnd(16))} ${c('gray', 'Add feature: "category" "desc" "step1" ...')}`);
1036
+ log(` ${c('cyan', 'reset'.padEnd(16))} ${c('gray', 'Archive and start fresh')}`);
1037
+ console.log();
1038
+ return;
1039
+ }
1040
+
1041
+ const marathonScript = path.join(agentDest, 'scripts', 'marathon_harness.js');
1042
+ try {
1043
+ execSync(`node "${marathonScript}" ${argsStr}`, { stdio: 'inherit', cwd: targetDir });
1044
+ } catch {
1045
+ process.exit(1);
1046
+ }
1047
+ }
1048
+
1003
1049
  function cmdContext(flags) {
1004
1050
  const targetDir = flags.path ? path.resolve(flags.path) : process.cwd();
1005
1051
  const agentDest = path.join(targetDir, '.agent');
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "tribunal-kit",
3
- "version": "4.4.1",
4
- "description": "Anti-Hallucination AI Agent Kit — 40 specialist agents, 31 slash commands, 16 parallel Tribunal reviewers, Performance Swarm engine, and Supreme Court case law pipeline.",
3
+ "version": "4.4.3",
4
+ "description": "Anti-Hallucination AI Agent Kit — 40 specialist agents, 32 slash commands, 16 parallel Tribunal reviewers, Performance Swarm engine, Supreme Court case law pipeline, and long-running agent harness.",
5
5
  "keywords": [
6
6
  "ai",
7
7
  "ai-agent",
8
+ "long-running-agents",
8
9
  "agent",
9
10
  "agents",
10
11
  "multi-agent",