tribunal-kit 6.0.1 → 8.0.0
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/.agent/ARCHITECTURE.md +9 -6
- package/.agent/agents/accessibility-reviewer.md +23 -16
- package/.agent/agents/ai-code-reviewer.md +25 -21
- package/.agent/agents/anti-pattern-reviewer.md +12 -7
- package/.agent/agents/api-architect.md +1 -0
- package/.agent/agents/backend-specialist.md +23 -22
- package/.agent/agents/cloud-engineer.md +1 -0
- package/.agent/agents/code-archaeologist.md +1 -0
- package/.agent/agents/complexity-reviewer.md +10 -7
- package/.agent/agents/database-architect.md +3 -2
- package/.agent/agents/db-latency-auditor.md +6 -2
- package/.agent/agents/debugger.md +3 -2
- package/.agent/agents/dependency-reviewer.md +1 -0
- package/.agent/agents/devops-engineer.md +9 -8
- package/.agent/agents/documentation-writer.md +6 -5
- package/.agent/agents/explorer-agent.md +1 -0
- package/.agent/agents/frontend-reviewer.md +21 -17
- package/.agent/agents/frontend-specialist.md +23 -20
- package/.agent/agents/game-developer.md +1 -0
- package/.agent/agents/interaction-reviewer.md +10 -5
- package/.agent/agents/logic-reviewer.md +3 -0
- package/.agent/agents/minimalist-reviewer.md +6 -0
- package/.agent/agents/mobile-developer.md +7 -6
- package/.agent/agents/mobile-reviewer.md +14 -13
- package/.agent/agents/orchestrator.md +3 -0
- package/.agent/agents/penetration-tester.md +1 -0
- package/.agent/agents/performance-optimizer.md +6 -5
- package/.agent/agents/performance-reviewer.md +6 -6
- package/.agent/agents/pipeline-reviewer.md +144 -0
- package/.agent/agents/precedence-reviewer.md +1 -0
- package/.agent/agents/product-manager.md +1 -0
- package/.agent/agents/product-owner.md +1 -0
- package/.agent/agents/product-reviewer.md +12 -7
- package/.agent/agents/project-planner.md +3 -0
- package/.agent/agents/qa-automation-engineer.md +50 -43
- package/.agent/agents/resilience-reviewer.md +1 -0
- package/.agent/agents/schema-reviewer.md +1 -0
- package/.agent/agents/security-auditor.md +24 -24
- package/.agent/agents/seo-specialist.md +33 -23
- package/.agent/agents/sql-reviewer.md +5 -4
- package/.agent/agents/supervisor-agent.md +12 -2
- package/.agent/agents/swarm-worker-contracts.md +13 -13
- package/.agent/agents/swarm-worker-registry.md +51 -51
- package/.agent/agents/system-architect.md +1 -0
- package/.agent/agents/test-coverage-reviewer.md +25 -22
- package/.agent/agents/test-engineer.md +12 -11
- package/.agent/agents/throughput-optimizer.md +45 -40
- package/.agent/agents/type-safety-reviewer.md +5 -4
- package/.agent/agents/ui-ux-auditor.md +6 -4
- package/.agent/agents/ui-visual-auditor.md +3 -0
- package/.agent/agents/ux-reviewer.md +11 -6
- package/.agent/agents/visual-reviewer.md +11 -6
- package/.agent/agents/vitals-reviewer.md +5 -4
- package/.agent/config/claude.json +18 -0
- package/.agent/config/plugin.json +102 -0
- package/.agent/config/slash-commands.json +103 -0
- package/.agent/config/specialist-registry.json +415 -0
- package/.agent/config/system-prompt.md +191 -0
- package/.agent/history/architecture-graph.yaml +302 -3
- package/.agent/history/graph-cache.json +515 -45
- package/.agent/history/memory/.memory.idx +1532 -1
- package/.agent/history/memory/MEMORY.md +102 -1
- package/.agent/history/memory.db +0 -0
- package/.agent/history/snapshots/bin__adapter-install.js.json +13 -0
- package/.agent/history/snapshots/bin__global-store.js.json +15 -0
- package/.agent/history/snapshots/bin__mcp-server.js.json +19 -0
- package/.agent/history/snapshots/bin__proxy-server.js.json +20 -0
- package/.agent/history/snapshots/bin__spawn-agent.js.json +12 -0
- package/.agent/history/snapshots/bin__tk-proxy.js.json +21 -0
- package/.agent/history/snapshots/bin__tribunal-kit.js.json +9 -7
- package/.agent/history/snapshots/bin__wrapper.js.json +14 -0
- package/.agent/history/snapshots/eslint.config.js.json +1 -2
- package/.agent/history/snapshots/scripts__benchmark.js.json +14 -0
- package/.agent/history/snapshots/scripts__changelog.js.json +1 -2
- package/.agent/history/snapshots/scripts__fix-vbc.js.json +11 -0
- package/.agent/history/snapshots/scripts__stress_benchmark.js.json +15 -0
- package/.agent/history/snapshots/scripts__sync-version.js.json +1 -2
- package/.agent/history/snapshots/scripts__validate-payload.js.json +1 -2
- package/.agent/history/snapshots/scripts__visual_audit.js.json +11 -0
- package/.agent/history/snapshots/test__integration__bridges.test.js.json +1 -2
- package/.agent/history/snapshots/test__integration__graceful_degradation.test.js.json +12 -0
- package/.agent/history/snapshots/test__integration__init.test.js.json +1 -2
- package/.agent/history/snapshots/test__integration__minimal_change_pipeline.test.js.json +13 -0
- package/.agent/history/snapshots/test__integration__parallel_tribunal.test.js.json +12 -0
- package/.agent/history/snapshots/test__integration__routing.test.js.json +1 -2
- package/.agent/history/snapshots/test__integration__swarm_dispatcher.test.js.json +1 -2
- package/.agent/history/snapshots/test__integration__sync_status.test.js.json +13 -0
- package/.agent/history/snapshots/test__integration__wave2.test.js.json +1 -2
- package/.agent/history/snapshots/test__integration__wrapper.test.js.json +13 -0
- package/.agent/history/snapshots/test__unit__align.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__args.test.js.json +3 -3
- package/.agent/history/snapshots/test__unit__audit_release.test.js.json +16 -0
- package/.agent/history/snapshots/test__unit__case_law_manager.test.js.json +1 -2
- package/.agent/history/snapshots/test__unit__cicd_validator.test.js.json +12 -0
- package/.agent/history/snapshots/test__unit__compile.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__context_broker.test.js.json +1 -2
- package/.agent/history/snapshots/test__unit__contract_engine.test.js.json +13 -0
- package/.agent/history/snapshots/test__unit__copyDir.test.js.json +3 -3
- package/.agent/history/snapshots/test__unit__graph_tools.test.js.json +1 -2
- package/.agent/history/snapshots/test__unit__guardrail_engine.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__impact_classifier.test.js.json +12 -0
- package/.agent/history/snapshots/test__unit__init.test.js.json +14 -0
- package/.agent/history/snapshots/test__unit__inner_loop_validator.test.js.json +1 -2
- package/.agent/history/snapshots/test__unit__integrity_manifest.test.js.json +13 -0
- package/.agent/history/snapshots/test__unit__learn.test.js.json +11 -0
- package/.agent/history/snapshots/test__unit__marathon.test.js.json +22 -0
- package/.agent/history/snapshots/test__unit__mcp_server.test.js.json +16 -0
- package/.agent/history/snapshots/test__unit__memory.test.js.json +13 -0
- package/.agent/history/snapshots/test__unit__minimal_change.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__native.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__optimize.test.js.json +13 -0
- package/.agent/history/snapshots/test__unit__path_resolution.test.js.json +14 -0
- package/.agent/history/snapshots/test__unit__production_readiness_evidence.test.js.json +21 -0
- package/.agent/history/snapshots/test__unit__selfInstall.test.js.json +3 -3
- package/.agent/history/snapshots/test__unit__semver.test.js.json +3 -3
- package/.agent/history/snapshots/test__unit__skill_evolution.test.js.json +11 -0
- package/.agent/history/snapshots/test__unit__stress.test.js.json +15 -0
- package/.agent/history/snapshots/test__unit__swarm_dispatcher.test.js.json +3 -3
- package/.agent/history/snapshots/test__unit__utils.test.js.json +10 -0
- package/.agent/mcp_config.json +1 -6
- package/.agent/routing_index.json +2033 -263
- package/.agent/rules/GEMINI.md +11 -9
- package/.agent/rules/GEMINI_PLANNER.md +19 -21
- package/.agent/scripts/_colors.js +52 -54
- package/.agent/scripts/_utils.js +52 -53
- package/.agent/scripts/ast_context_loader.js +137 -0
- package/.agent/scripts/auto_preview.js +39 -43
- package/.agent/scripts/bundle_analyzer.js +47 -60
- package/.agent/scripts/case_law_manager.js +200 -294
- package/.agent/scripts/checklist.js +73 -94
- package/.agent/scripts/cicd_validator.js +305 -0
- package/.agent/scripts/context_broker.js +317 -412
- package/.agent/scripts/contract_engine.js +402 -0
- package/.agent/scripts/dependency_analyzer.js +112 -124
- package/.agent/scripts/graph_builder.js +75 -103
- package/.agent/scripts/graph_visualizer.js +10 -12
- package/.agent/scripts/graph_zoom.js +38 -55
- package/.agent/scripts/guardrail_engine.js +195 -145
- package/.agent/scripts/impact_classifier.js +55 -30
- package/.agent/scripts/inner_loop_validator.js +108 -159
- package/.agent/scripts/integrity_manifest.js +59 -67
- package/.agent/scripts/lint_runner.js +65 -75
- package/.agent/scripts/marathon_harness.js +131 -208
- package/.agent/scripts/memory_engine.js +581 -0
- package/.agent/scripts/minify_context.js +29 -33
- package/.agent/scripts/minimal_change_engine.js +95 -87
- package/.agent/scripts/mutation_runner.js +46 -62
- package/.agent/scripts/payload_schemas.js +146 -0
- package/.agent/scripts/pipeline_engine.js +320 -209
- package/.agent/scripts/prompt_compiler.js +166 -93
- package/.agent/scripts/schema_validator.js +73 -121
- package/.agent/scripts/security_scan.js +88 -117
- package/.agent/scripts/session_manager.js +52 -69
- package/.agent/scripts/signal_detector.js +24 -22
- package/.agent/scripts/skill_evolution.js +184 -245
- package/.agent/scripts/skill_integrator.js +35 -48
- package/.agent/scripts/socratic_gate_policy.js +15 -12
- package/.agent/scripts/strengthen_skills.js +29 -33
- package/.agent/scripts/swarm_dispatcher.js +397 -200
- package/.agent/scripts/test_runner.js +54 -56
- package/.agent/scripts/token_budget_broker.js +126 -13
- package/.agent/scripts/trace_engine.js +126 -0
- package/.agent/scripts/verify_all.js +76 -93
- package/.agent/scripts/visual_audit.js +16 -21
- package/.agent/skill_topic_map.json +22 -3
- package/.agent/skills/12-principles-of-animation/SKILL.md +7 -0
- package/.agent/skills/60fps-animation/SKILL.md +7 -0
- package/.agent/skills/accessible-animation/SKILL.md +5 -1
- package/.agent/skills/adapt/SKILL.md +7 -1
- package/.agent/skills/advanced-rag-pipelines/SKILL.md +1 -0
- package/.agent/skills/agent-organizer/SKILL.md +1 -0
- package/.agent/skills/agentic-patterns/SKILL.md +33 -25
- package/.agent/skills/agentic-workflows-2026/SKILL.md +6 -2
- package/.agent/skills/ai-app-hardening/SKILL.md +9 -8
- package/.agent/skills/ai-prompt-injection-defense/SKILL.md +7 -6
- package/.agent/skills/animation-on-scroll/SKILL.md +24 -15
- package/.agent/skills/animation-systems/SKILL.md +11 -10
- package/.agent/skills/antfu-conventions/SKILL.md +7 -2
- package/.agent/skills/api-patterns/SKILL.md +14 -10
- package/.agent/skills/api-security-auditor/SKILL.md +15 -14
- package/.agent/skills/app-builder/SKILL.md +1 -0
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +2 -2
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +1 -1
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +12 -12
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +3 -3
- package/.agent/skills/apple-design/SKILL.md +8 -7
- package/.agent/skills/architecture/SKILL.md +3 -2
- package/.agent/skills/audit-and-fix/SKILL.md +8 -5
- package/.agent/skills/authentication-best-practices/SKILL.md +9 -8
- package/.agent/skills/backend-security-expert/SKILL.md +1 -0
- package/.agent/skills/baseline-ui/SKILL.md +8 -7
- package/.agent/skills/bash-linux/SKILL.md +1 -0
- package/.agent/skills/behavioral-modes/SKILL.md +1 -0
- package/.agent/skills/better-colors/SKILL.md +11 -7
- package/.agent/skills/better-typography/SKILL.md +30 -16
- package/.agent/skills/better-ui/SKILL.md +17 -10
- package/.agent/skills/bolder/SKILL.md +6 -0
- package/.agent/skills/brainstorming/SKILL.md +6 -4
- package/.agent/skills/browser-native-ai/SKILL.md +5 -4
- package/.agent/skills/build-primitive/SKILL.md +5 -0
- package/.agent/skills/building-native-ui/SKILL.md +1 -0
- package/.agent/skills/cicd-pro/SKILL.md +2 -1
- package/.agent/skills/clarify/SKILL.md +19 -14
- package/.agent/skills/clean-code/SKILL.md +16 -15
- package/.agent/skills/cloud-architect/SKILL.md +1 -0
- package/.agent/skills/cobejs/SKILL.md +7 -9
- package/.agent/skills/code-review-checklist/SKILL.md +1 -0
- package/.agent/skills/codebase-design/SKILL.md +7 -2
- package/.agent/skills/colorize/SKILL.md +8 -3
- package/.agent/skills/compact-landing/SKILL.md +8 -3
- package/.agent/skills/company-logos/SKILL.md +6 -0
- package/.agent/skills/config-validator/SKILL.md +10 -9
- package/.agent/skills/containerization-pro/SKILL.md +6 -5
- package/.agent/skills/context-engineering-pro/SKILL.md +5 -4
- package/.agent/skills/create-design-md/SKILL.md +13 -5
- package/.agent/skills/critique/SKILL.md +10 -8
- package/.agent/skills/csharp-developer/SKILL.md +1 -0
- package/.agent/skills/data-validation-schemas/SKILL.md +28 -23
- package/.agent/skills/database-design/SKILL.md +2 -1
- package/.agent/skills/delight/SKILL.md +6 -0
- package/.agent/skills/deployment-procedures/SKILL.md +2 -1
- package/.agent/skills/design-lab/SKILL.md +5 -0
- package/.agent/skills/devops-engineer/SKILL.md +3 -2
- package/.agent/skills/devops-incident-responder/SKILL.md +2 -1
- package/.agent/skills/diagnosing-bugs/SKILL.md +12 -2
- package/.agent/skills/distill/SKILL.md +7 -2
- package/.agent/skills/documentation-templates/SKILL.md +3 -2
- package/.agent/skills/domain-modeling/SKILL.md +12 -4
- package/.agent/skills/duckdb-analytical-sql/SKILL.md +7 -3
- package/.agent/skills/edge-ai-mobile/SKILL.md +5 -1
- package/.agent/skills/edge-computing/SKILL.md +9 -8
- package/.agent/skills/emil-design-eng/SKILL.md +43 -27
- package/.agent/skills/error-resilience/SKILL.md +34 -16
- package/.agent/skills/expo-router-v4/SKILL.md +2 -1
- package/.agent/skills/extract-design-system/SKILL.md +12 -11
- package/.agent/skills/fabel-protocol/SKILL.md +24 -17
- package/.agent/skills/fixing-accessibility/SKILL.md +23 -16
- package/.agent/skills/fixing-metadata/SKILL.md +24 -13
- package/.agent/skills/fixing-motion-performance/SKILL.md +7 -5
- package/.agent/skills/framer-motion-expert/SKILL.md +29 -15
- package/.agent/skills/frontend-design/SKILL.md +21 -13
- package/.agent/skills/frontend-security-expert/SKILL.md +1 -0
- package/.agent/skills/game-design-expert/SKILL.md +1 -0
- package/.agent/skills/game-engineering-expert/SKILL.md +1 -0
- package/.agent/skills/generative-ui-expert/SKILL.md +3 -2
- package/.agent/skills/geo-fundamentals/SKILL.md +2 -1
- package/.agent/skills/git-pro/SKILL.md +10 -9
- package/.agent/skills/github-operations/SKILL.md +2 -1
- package/.agent/skills/gpt-taste/SKILL.md +7 -0
- package/.agent/skills/gsap-core/SKILL.md +26 -22
- package/.agent/skills/gsap-frameworks/SKILL.md +6 -5
- package/.agent/skills/gsap-performance/SKILL.md +4 -3
- package/.agent/skills/gsap-plugins/SKILL.md +34 -33
- package/.agent/skills/gsap-react/SKILL.md +9 -8
- package/.agent/skills/gsap-scrolltrigger/SKILL.md +34 -33
- package/.agent/skills/gsap-timeline/SKILL.md +18 -15
- package/.agent/skills/gsap-utils/SKILL.md +25 -24
- package/.agent/skills/harden/SKILL.md +9 -3
- package/.agent/skills/harness-protocol/SKILL.md +1 -0
- package/.agent/skills/i18n-localization/SKILL.md +10 -9
- package/.agent/skills/impeccable/SKILL.md +5 -0
- package/.agent/skills/improve-codebase-architecture/SKILL.md +10 -5
- package/.agent/skills/improve-ui/SKILL.md +12 -5
- package/.agent/skills/intelligent-routing/SKILL.md +7 -6
- package/.agent/skills/knowledge-graph/SKILL.md +1 -0
- package/.agent/skills/landing-page/SKILL.md +1 -0
- package/.agent/skills/lint-and-validate/SKILL.md +9 -4
- package/.agent/skills/llm-engineering/SKILL.md +55 -54
- package/.agent/skills/local-first/SKILL.md +20 -19
- package/.agent/skills/local-first-architecture/SKILL.md +6 -1
- package/.agent/skills/lottie-animation/SKILL.md +7 -3
- package/.agent/skills/marquee-loop/SKILL.md +1 -0
- package/.agent/skills/masked-reveal/SKILL.md +17 -4
- package/.agent/skills/mcp-builder/SKILL.md +13 -10
- package/.agent/skills/micro-interaction/SKILL.md +20 -5
- package/.agent/skills/mobile-design/SKILL.md +26 -15
- package/.agent/skills/monorepo-management/SKILL.md +3 -2
- package/.agent/skills/morphing-icons/SKILL.md +16 -6
- package/.agent/skills/motion-engineering/SKILL.md +19 -15
- package/.agent/skills/nextjs-react-expert/SKILL.md +26 -21
- package/.agent/skills/nodejs-best-practices/SKILL.md +89 -76
- package/.agent/skills/observability/SKILL.md +45 -44
- package/.agent/skills/opentelemetry-observability/SKILL.md +2 -1
- package/.agent/skills/page-transition-animation/SKILL.md +6 -3
- package/.agent/skills/parallel-agents/SKILL.md +7 -2
- package/.agent/skills/performance-profiling/SKILL.md +24 -13
- package/.agent/skills/plan-writing/SKILL.md +1 -0
- package/.agent/skills/platform-engineer/SKILL.md +3 -2
- package/.agent/skills/platform-engineering-opentofu/SKILL.md +1 -0
- package/.agent/skills/playwright-ai-e2e/SKILL.md +3 -2
- package/.agent/skills/playwright-best-practices/SKILL.md +29 -28
- package/.agent/skills/polish/SKILL.md +13 -12
- package/.agent/skills/powershell-windows/SKILL.md +1 -0
- package/.agent/skills/pricing-page/SKILL.md +8 -3
- package/.agent/skills/product-aware-heuristics/SKILL.md +122 -72
- package/.agent/skills/progressive-blur/SKILL.md +9 -4
- package/.agent/skills/project-idioms/SKILL.md +1 -0
- package/.agent/skills/property-based-testing/SKILL.md +10 -12
- package/.agent/skills/python-patterns/SKILL.md +1 -0
- package/.agent/skills/python-pro/SKILL.md +1 -0
- package/.agent/skills/quieter/SKILL.md +6 -0
- package/.agent/skills/react-doctor/SKILL.md +6 -0
- package/.agent/skills/react-specialist/SKILL.md +32 -28
- package/.agent/skills/readme-builder/SKILL.md +1 -0
- package/.agent/skills/realtime-patterns/SKILL.md +34 -33
- package/.agent/skills/red-team-tactics/SKILL.md +1 -0
- package/.agent/skills/redesign-skill/SKILL.md +6 -0
- package/.agent/skills/review-animations/SKILL.md +5 -2
- package/.agent/skills/review-animations/STANDARDS.md +37 -23
- package/.agent/skills/rust-pro/SKILL.md +1 -0
- package/.agent/skills/seo-fundamentals/SKILL.md +4 -3
- package/.agent/skills/server-management/SKILL.md +1 -0
- package/.agent/skills/shadcn-ui-expert/SKILL.md +28 -22
- package/.agent/skills/shape/SKILL.md +9 -2
- package/.agent/skills/skill-creator/SKILL.md +1 -0
- package/.agent/skills/soft-skill/SKILL.md +6 -0
- package/.agent/skills/sounds-on-the-web/SKILL.md +1 -0
- package/.agent/skills/sql-pro/SKILL.md +1 -0
- package/.agent/skills/supabase-postgres-best-practices/SKILL.md +1 -0
- package/.agent/skills/svg-animation/SKILL.md +16 -7
- package/.agent/skills/swiftui-expert/SKILL.md +1 -0
- package/.agent/skills/swiss-design/SKILL.md +5 -0
- package/.agent/skills/system-design-pro/SKILL.md +1 -0
- package/.agent/skills/systematic-debugging/SKILL.md +1 -0
- package/.agent/skills/tailwind-patterns/SKILL.md +25 -11
- package/.agent/skills/taste-skill/SKILL.md +6 -0
- package/.agent/skills/tdd-workflow/SKILL.md +5 -0
- package/.agent/skills/test-result-analyzer/SKILL.md +1 -0
- package/.agent/skills/testing-patterns/SKILL.md +123 -115
- package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +5 -0
- package/.agent/skills/thinking-protocol/SKILL.md +3 -0
- package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +9 -8
- package/.agent/skills/transitions-dev/SKILL.md +19 -6
- package/.agent/skills/trend-researcher/SKILL.md +1 -0
- package/.agent/skills/typescript-advanced/SKILL.md +23 -18
- package/.agent/skills/typeset/SKILL.md +10 -1
- package/.agent/skills/ui-reasoning-engine/SKILL.md +67 -48
- package/.agent/skills/ui-skill-packs/SKILL.md +6 -1
- package/.agent/skills/ui-skills-root/SKILL.md +39 -38
- package/.agent/skills/ui-ux-pro-max/SKILL.md +34 -26
- package/.agent/skills/ui-ux-researcher/SKILL.md +1 -0
- package/.agent/skills/vector-search-pgvector/SKILL.md +3 -2
- package/.agent/skills/vue-expert/SKILL.md +22 -19
- package/.agent/skills/vulnerability-scanner/SKILL.md +22 -21
- package/.agent/skills/web-accessibility-auditor/SKILL.md +2 -1
- package/.agent/skills/web-design-guidelines/SKILL.md +16 -10
- package/.agent/skills/web-quality-audit/SKILL.md +5 -0
- package/.agent/skills/webapp-testing/SKILL.md +14 -13
- package/.agent/skills/webgpu-performance/SKILL.md +1 -0
- package/.agent/skills/whimsy-injector/SKILL.md +9 -5
- package/.agent/skills/workflow-optimizer/SKILL.md +1 -0
- package/.agent/skills/zero-trust-passkeys/SKILL.md +11 -6
- package/.agent/templates/DESIGN.md +119 -110
- package/.agent/templates/design-tokens.json +9 -6
- package/.agent/workflows/acf.md +1 -0
- package/.agent/workflows/api-tester.md +1 -0
- package/.agent/workflows/audit.md +1 -0
- package/.agent/workflows/brainstorm.md +1 -0
- package/.agent/workflows/changelog.md +1 -0
- package/.agent/workflows/contract.md +60 -0
- package/.agent/workflows/create.md +1 -0
- package/.agent/workflows/debug.md +1 -0
- package/.agent/workflows/deploy.md +1 -0
- package/.agent/workflows/enhance.md +1 -0
- package/.agent/workflows/fix-ci.md +89 -0
- package/.agent/workflows/fix.md +1 -0
- package/.agent/workflows/generate.md +1 -0
- package/.agent/workflows/marathon.md +1 -0
- package/.agent/workflows/migrate.md +1 -0
- package/.agent/workflows/minimal.md +9 -7
- package/.agent/workflows/orchestrate.md +1 -0
- package/.agent/workflows/performance-benchmarker.md +1 -0
- package/.agent/workflows/pipeline.md +26 -21
- package/.agent/workflows/plan.md +1 -0
- package/.agent/workflows/preview.md +1 -0
- package/.agent/workflows/refactor.md +3 -2
- package/.agent/workflows/review-ai.md +4 -3
- package/.agent/workflows/review.md +1 -0
- package/.agent/workflows/session.md +1 -0
- package/.agent/workflows/status.md +1 -0
- package/.agent/workflows/strengthen-skills.md +1 -0
- package/.agent/workflows/super-prompt.md +1 -0
- package/.agent/workflows/swarm.md +15 -3
- package/.agent/workflows/test.md +8 -7
- package/.agent/workflows/tribunal-backend.md +3 -2
- package/.agent/workflows/tribunal-cicd.md +104 -0
- package/.agent/workflows/tribunal-database.md +1 -0
- package/.agent/workflows/tribunal-frontend.md +8 -6
- package/.agent/workflows/tribunal-full.md +2 -1
- package/.agent/workflows/tribunal-mobile.md +6 -5
- package/.agent/workflows/tribunal-performance.md +1 -0
- package/.agent/workflows/tribunal-speed.md +1 -0
- package/.agent/workflows/tribunal-ui.md +29 -21
- package/.agent/workflows/ui-ux-pro-max.md +19 -15
- package/.claude/CLAUDE.md +442 -0
- package/CONTRIBUTING.md +3 -3
- package/README.md +105 -45
- package/SECURITY.md +11 -11
- package/bin/adapter-install.js +240 -0
- package/bin/global-store.js +48 -0
- package/bin/mcp-server.js +781 -332
- package/bin/proxy-server.js +113 -0
- package/bin/spawn-agent.js +39 -0
- package/bin/tk-proxy.js +34 -0
- package/bin/tribunal-kit.js +29 -30
- package/bin/wrapper.js +40 -46
- package/dist/cli.js +6 -0
- package/dist/commands/case.js +2 -0
- package/dist/commands/contract.js +440 -0
- package/dist/commands/init.js +8 -51
- package/dist/commands/status.js +61 -30
- package/dist/commands/validate.js +22 -31
- package/dist/index.d.ts +8 -1
- package/dist/tui/banner.js +77 -0
- package/dist/tui/index.js +21 -0
- package/dist/tui/reviewer-grid.js +90 -0
- package/dist/tui/shimmer.js +91 -0
- package/dist/tui/theme.js +130 -0
- package/dist/tui/tree.js +93 -0
- package/dist/tui/wizard.js +148 -0
- package/dist/utils/helpers.js +5 -41
- package/package.json +33 -15
- package/scripts/benchmark.js +62 -86
- package/scripts/build-graph.js +71 -0
- package/scripts/changelog.js +67 -73
- package/scripts/fix-vbc.js +13 -15
- package/scripts/fix-vbc.ps1 +2 -118
- package/scripts/stress_benchmark.js +358 -0
- package/scripts/sync-version.js +71 -41
- package/scripts/validate-payload.js +23 -30
- package/scripts/visual_audit.js +23 -13
- package/.agent/history/snapshots/migrate_refs.js.json +0 -11
- package/.agent/scripts/compile_router.py +0 -112
- package/.agent/scripts/migrate_skills_frontmatter.py +0 -64
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<!-- PROJECT HEADER -->
|
|
2
2
|
<div align="center">
|
|
3
3
|
<br>
|
|
4
|
-
<img src="
|
|
5
|
-
|
|
4
|
+
<img src="https://raw.githubusercontent.com/Harmitx7/tribunal-kit/main/docs/tribunalkit_no_bg.png" alt="TribunalKit Logo" width="380" style="margin-bottom: 20px;" />
|
|
5
|
+
|
|
6
6
|
<h1 style="font-size: 3.25em; font-weight: 800; letter-spacing: -2px; margin: 0; color: #ffffff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;">
|
|
7
7
|
TRIBUNAL KIT
|
|
8
8
|
</h1>
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
<p style="font-size: 1.35em; color: #ffffff; font-weight: 600; margin: 15px 0 8px 0;">
|
|
11
11
|
Your AI writes code that doesn't exist. Tribunal Kit stops it.
|
|
12
12
|
</p>
|
|
13
13
|
<p style="font-size: 0.95em; color: #88888b; font-weight: 400; letter-spacing: 1px; margin: 0 0 25px 0;">
|
|
14
|
-
The governance layer for AI coding agents —
|
|
14
|
+
The governance layer for AI coding agents — 52 specialists, 28 reviewers, Rust core.
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
17
|
<!-- BADGES -->
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<img src="https://img.shields.io/badge/License-MIT-1a1a1f?style=for-the-badge&color=2d2d30" alt="License" />
|
|
34
34
|
</a>
|
|
35
35
|
<a href="CHANGELOG.md">
|
|
36
|
-
<img src="https://img.shields.io/badge/Release-
|
|
36
|
+
<img src="https://img.shields.io/badge/Release-v8.0.0-ccff00?style=for-the-badge&color=111111&logo=github&logoColor=ccff00" alt="Release Version" />
|
|
37
37
|
</a>
|
|
38
38
|
<a href="mcp_config.json">
|
|
39
39
|
<img src="https://img.shields.io/badge/MCP-Ready-00c2ff?style=for-the-badge&logo=openai&logoColor=111" alt="MCP Server" />
|
|
@@ -67,33 +67,44 @@
|
|
|
67
67
|
<strong style="color: #ffffff; font-size: 1.1em;">One command. Your AI stops lying.</strong>
|
|
68
68
|
</div>
|
|
69
69
|
<p style="color: #c9c9d1; font-size: 0.95em; line-height: 1.6; margin: 0 0 15px 0;">
|
|
70
|
-
Tribunal Kit wraps your coding agents in a <strong>neurosymbolic verification envelope</strong> —
|
|
70
|
+
Tribunal Kit wraps your coding agents in a <strong>neurosymbolic verification envelope</strong> — 52 specialist agents, 28 parallel reviewers, 183 reusable skills, and a compiled Rust core — that intercepts AI output, validates it against your actual codebase, and blocks hallucinated code before it reaches disk. Works with <strong>Cursor</strong>, <strong>VSCode</strong>, <strong>Windsurf</strong>, <strong>Claude Code</strong>, and <strong>Aider</strong>.
|
|
71
71
|
</p>
|
|
72
72
|
</div>
|
|
73
73
|
|
|
74
74
|
<!-- QUICK INSTALL -->
|
|
75
|
+
|
|
75
76
|
```bash
|
|
76
77
|
npx tribunal-kit init # Install the governance layer (< 60 seconds)
|
|
77
78
|
npx tribunal-kit sync # Bridge with Cursor / Windsurf / VSCode
|
|
78
79
|
npx tribunal-kit status # Verify everything is locked in
|
|
79
80
|
```
|
|
80
81
|
|
|
82
|
+
### 🔌 CLI Agent Plugins (Claude Code, Aider, Cline)
|
|
83
|
+
|
|
84
|
+
To automatically integrate Tribunal Kit into terminal-based AI agents, use the universal adapter:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npx tribunal-kit tk-adapt # Auto-detect and install for all supported agents
|
|
88
|
+
npx tribunal-kit tk-adapt claude # Install strictly for Claude Code
|
|
89
|
+
npx tribunal-kit tk-adapt --global # Install globally to ~/.tribunal-kit/
|
|
90
|
+
```
|
|
91
|
+
|
|
81
92
|
<hr style="height: 1px; border: none; background: linear-gradient(to right, transparent, #33333f, transparent); margin: 40px 0;" />
|
|
82
93
|
|
|
83
94
|
<!-- WHAT YOU GET -->
|
|
84
95
|
|
|
85
96
|
### What's Inside
|
|
86
97
|
|
|
87
|
-
| Layer
|
|
88
|
-
|
|
89
|
-
| **Specialist Agents**
|
|
90
|
-
| **Tribunal Reviewers** |
|
|
91
|
-
| **Reusable Skills**
|
|
92
|
-
| **Slash Workflows**
|
|
93
|
-
| **Rust Core**
|
|
94
|
-
| **MCP Server**
|
|
95
|
-
| **
|
|
96
|
-
| **Case Law Database**
|
|
98
|
+
| Layer | Count | What It Does |
|
|
99
|
+
| :--------------------- | :---- | :---------------------------------------------------------------------------------- |
|
|
100
|
+
| **Specialist Agents** | 52 | Domain-specific reasoning (frontend, backend, security, database, mobile, DevOps) |
|
|
101
|
+
| **Tribunal Reviewers** | 28 | Parallel code review pipeline that catches hallucinations before they ship |
|
|
102
|
+
| **Reusable Skills** | 183 | Deep knowledge packs (React 19, Next.js 15, Rust, Python, Vue, animations, a11y) |
|
|
103
|
+
| **Slash Workflows** | 38 | One-command operations (`/generate`, `/debug`, `/audit`, `/deploy`, `/refactor`) |
|
|
104
|
+
| **Rust Core** | 1 | Native binary for AOT Semantic Graph extraction, AST parsing, hashing, and deduping |
|
|
105
|
+
| **MCP Server** | 1 | Model Context Protocol integration with `query_semantic_graph` capabilities |
|
|
106
|
+
| **Native Plugins** | ∞ | Direct integration into CLI tools like Claude Code via `/plugin marketplace add` |
|
|
107
|
+
| **Case Law Database** | ∞ | Records past AI mistakes as permanent precedents to prevent recurrence |
|
|
97
108
|
|
|
98
109
|
<br>
|
|
99
110
|
<hr style="height: 1px; border: none; background: linear-gradient(to right, transparent, #33333f, transparent); margin: 40px 0;" />
|
|
@@ -120,7 +131,6 @@ npx tribunal-kit status # Verify everything is locked in
|
|
|
120
131
|
</div>
|
|
121
132
|
</details>
|
|
122
133
|
|
|
123
|
-
|
|
124
134
|
## 📈 Comparative Analysis
|
|
125
135
|
|
|
126
136
|
AI engineering requires more than static template rules or raw linters. See how Tribunal Kit stacks up against alternatives:
|
|
@@ -187,19 +197,21 @@ AI engineering requires more than static template rules or raw linters. See how
|
|
|
187
197
|
<hr style="height: 1px; border: none; background: linear-gradient(to right, transparent, #33333f, transparent); margin: 40px 0;" />
|
|
188
198
|
|
|
189
199
|
<!-- SECTION 3 -->
|
|
200
|
+
|
|
190
201
|
## ⚡ State-of-the-Art Performance (Rust Core)
|
|
191
202
|
|
|
192
203
|
Tribunal Kit v6 splits heavy computational tasks between a native Rust core and a flexible JS orchestrator:
|
|
193
204
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
205
|
+
- **Compiled Rust Core (`tribunal-core`)**: Powers all deterministic operations, such as path-traversal sandboxing, Levenshtein distance calculations, text merges, and memory database reads to eliminate Node startup latency.
|
|
206
|
+
- **Zero-Latency Hash Manifests**: File synchronization and updates use SHA-256 incremental hash diffs, copying only modified assets and reducing CLI setup time by **95%**.
|
|
207
|
+
- **Semaphore-Bounded Parallelism**: Fully concurrent operations with thread limits (64 in Rust, 32 in Node.js) to avoid resource starvation in complex monorepos.
|
|
197
208
|
|
|
198
209
|
<br>
|
|
199
210
|
<hr style="border: 1px solid #222; margin: 40px 0;">
|
|
200
211
|
<br>
|
|
201
212
|
|
|
202
213
|
<!-- SECTION 4 -->
|
|
214
|
+
|
|
203
215
|
## 🛠️ Advanced Setup
|
|
204
216
|
|
|
205
217
|
Already ran `npx tribunal-kit init`? Here's how to go further:
|
|
@@ -228,11 +240,12 @@ tk optimize-skill --target ./skills/auth-security.md "npm run test:auth" --epoch
|
|
|
228
240
|
<hr style="height: 1px; border: none; background: linear-gradient(to right, transparent, #33333f, transparent); margin: 40px 0;" />
|
|
229
241
|
|
|
230
242
|
<!-- SECTION 5 -->
|
|
243
|
+
|
|
231
244
|
## ⚖️ The Tribunal Pipeline — Mitigating AI Code Hallucinations
|
|
232
245
|
|
|
233
|
-
Code generation is solved. **Code correctness is the frontier.**
|
|
246
|
+
Code generation is solved. **Code correctness is the frontier.**
|
|
234
247
|
|
|
235
|
-
The Tribunal Pipeline intercepts raw agent generation and routes it through a parallel suite of **
|
|
248
|
+
The Tribunal Pipeline intercepts raw agent generation and routes it through a parallel suite of **28 domain-specific reviewers** before presenting changes to the developer:
|
|
236
249
|
|
|
237
250
|
```mermaid
|
|
238
251
|
graph TD
|
|
@@ -243,7 +256,7 @@ graph TD
|
|
|
243
256
|
C -.->|Failed| E[Maker Auto-Correction]
|
|
244
257
|
E -.-> C
|
|
245
258
|
|
|
246
|
-
D -->|
|
|
259
|
+
D -->|28 Domain Reviewers| F[Human Gate]
|
|
247
260
|
F -->|Approved| G((Committed to Disk))
|
|
248
261
|
|
|
249
262
|
classDef default fill:#1a1a1a,stroke:#333,stroke-width:2px,color:#fff;
|
|
@@ -255,28 +268,31 @@ graph TD
|
|
|
255
268
|
```
|
|
256
269
|
|
|
257
270
|
### Reviewer Swarms Include:
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
271
|
+
|
|
272
|
+
- **`logic-reviewer`** · Semantic soundness & behavior checks.
|
|
273
|
+
- **`security-auditor`** · Payload boundaries, SQL injection & OWASP scanning.
|
|
274
|
+
- **`resilience-reviewer`** · Async error boundaries and retry logic.
|
|
275
|
+
- **`ui-ux-auditor`** · Structural accessibility (a11y) & premium animations.
|
|
276
|
+
- **`schema-reviewer`** · Type narrowing and database integrity checks.
|
|
263
277
|
|
|
264
278
|
<br>
|
|
265
279
|
<hr style="height: 1px; border: none; background: linear-gradient(to right, transparent, #33333f, transparent); margin: 40px 0;" />
|
|
266
280
|
|
|
267
281
|
<!-- SECTION 6 -->
|
|
282
|
+
|
|
268
283
|
## 🧠 Omniscience Cognitive Alignment Engine (OCAE)
|
|
269
284
|
|
|
270
285
|
The **Omniscience Cognitive Alignment Engine (OCAE)** aligns any LLM with the reasoning loops of a senior staff engineer:
|
|
271
286
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
287
|
+
- **Step 0 Epistemic Loop**: Always-on cognition loop enforcing confidence checking (L1–L5), knowledge freshness audits, and precision budgeting before any script execution.
|
|
288
|
+
- **Dynamic API Trap Mitigation**: Automatically guards code blocks against framework-specific compiler breakages (e.g., React 19 hook constraints, Drizzle ORM filtration issues, and Next.js 15 route headers).
|
|
289
|
+
- **Prose Alignment Formatting**: Collapses ugly lists and bullet points into highly readable, scannable documentation prose, stripping out typical AI conversational introduction/conclusion slop.
|
|
275
290
|
|
|
276
291
|
<br>
|
|
277
292
|
<hr style="height: 1px; border: none; background: linear-gradient(to right, transparent, #33333f, transparent); margin: 40px 0;" />
|
|
278
293
|
|
|
279
294
|
<!-- SECTION 7 -->
|
|
295
|
+
|
|
280
296
|
## 🧬 SkillOpt: Autonomous Self-Evolution Engine
|
|
281
297
|
|
|
282
298
|
Stop writing and tuning system prompts by hand. The **SkillOpt Self-Evolution Engine** automatically refines your prompt rules directly from test harness feedback:
|
|
@@ -295,21 +311,26 @@ tk optimize-skill --target ./skills/auth-security.md "npm run test:auth" --epoch
|
|
|
295
311
|
<hr style="height: 1px; border: none; background: linear-gradient(to right, transparent, #33333f, transparent); margin: 40px 0;" />
|
|
296
312
|
|
|
297
313
|
<!-- SECTION 8 -->
|
|
314
|
+
|
|
298
315
|
## 🏛️ Supreme Court Case Law & Memory
|
|
299
316
|
|
|
300
317
|
Tribunal Kit builds a permanent repository memory layer that spans across conversation sessions:
|
|
301
318
|
|
|
302
319
|
### 1. Supreme Court Case Law (`tk case`)
|
|
320
|
+
|
|
303
321
|
Record AI coding errors as permanent local precedents. The `precedence-reviewer` actively references this local database to block the AI from repeating past code defects or pattern bugs.
|
|
304
|
-
|
|
305
|
-
|
|
322
|
+
|
|
323
|
+
- Add precedence: `tk case add`
|
|
324
|
+
- Search case law: `tk case search "postgres deadlock"`
|
|
306
325
|
|
|
307
326
|
### 2. 4-Type Persistent Memory (`tk memory`)
|
|
327
|
+
|
|
308
328
|
Manages your project context utilizing a strict 4-category cognitive taxonomy:
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
329
|
+
|
|
330
|
+
- **Semantic Memory** — Project context (e.g., "Uses Drizzle with SQLite").
|
|
331
|
+
- **Procedural Memory** — Action guidelines (e.g., "Compile Rust binary before publishing").
|
|
332
|
+
- **Episodic Memory** — Development history and events.
|
|
333
|
+
- **Working Memory** — Current task scope.
|
|
313
334
|
|
|
314
335
|
Budget-gated recall ensures that agents only pull relevant memory segments, avoiding token window bloat and context dilution.
|
|
315
336
|
|
|
@@ -317,18 +338,20 @@ Budget-gated recall ensures that agents only pull relevant memory segments, avoi
|
|
|
317
338
|
<hr style="height: 1px; border: none; background: linear-gradient(to right, transparent, #33333f, transparent); margin: 40px 0;" />
|
|
318
339
|
|
|
319
340
|
<!-- SECTION 9 -->
|
|
341
|
+
|
|
320
342
|
## 🏃 The Marathon Harness — Long-Running Autonomy
|
|
321
343
|
|
|
322
344
|
The **Marathon Harness** governs long-running multi-session tasks, keeping agents on track without looping or stalling:
|
|
323
345
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
346
|
+
- **Feature DAG Graphing**: Declare tasks with dependency bounds (e.g., `--deps=1,2`). If a core schema migration fails, dependent API route tasks are dynamically deadlocked and bypassed until fixed.
|
|
347
|
+
- **ANSI TUI Swarm Dashboard**: Intercepts verbose, noisy terminal output when running parallel swarms (`tk /swarm`), projecting agent research, coding, and review steps in real-time.
|
|
348
|
+
- **Failure Context Recalls**: Tracks failure histories, error stacks, and retry budgets. If a task is picked up by a new agent session, the agent receives the exact history of failed approaches to course-correct instantly.
|
|
327
349
|
|
|
328
350
|
<br>
|
|
329
351
|
<hr style="height: 1px; border: none; background: linear-gradient(to right, transparent, #33333f, transparent); margin: 40px 0;" />
|
|
330
352
|
|
|
331
353
|
<!-- SECTION 10 -->
|
|
354
|
+
|
|
332
355
|
## 🔌 Model Context Protocol (MCP) Server Integration
|
|
333
356
|
|
|
334
357
|
Tribunal Kit hosts an out-of-the-box **Model Context Protocol (MCP)** server via stdio. Connect it to Cursor, VSCode, Windsurf, or Claude Desktop to allow coding agents to query tools dynamically.
|
|
@@ -350,14 +373,44 @@ Tribunal Kit hosts an out-of-the-box **Model Context Protocol (MCP)** server via
|
|
|
350
373
|
```
|
|
351
374
|
|
|
352
375
|
### Exposed MCP Tools
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
376
|
+
|
|
377
|
+
- `verify_contracts` — Proactively verifies proposed code against team contract rules before writing to disk.
|
|
378
|
+
- `get_tribunal_skill` / `list_tribunal_agents` — Dynamically injects skills/agent guidelines without overloading system prompts.
|
|
379
|
+
|
|
380
|
+
<br>
|
|
381
|
+
<hr style="height: 1px; border: none; background: linear-gradient(to right, transparent, #33333f, transparent); margin: 40px 0;" />
|
|
382
|
+
|
|
383
|
+
<!-- SECTION 13 -->
|
|
384
|
+
|
|
385
|
+
## 📜 Sovereign Covenant Protocol — AI Agent Behavioral Contract Testing (`tk contract`)
|
|
386
|
+
|
|
387
|
+
Design by Contract applied to AI coding agents. Declare invariants in declarative YAML rules stored in `.tribunal/contracts/`:
|
|
388
|
+
|
|
389
|
+
```yaml
|
|
390
|
+
name: 'No console.log in production code'
|
|
391
|
+
scope: 'src/**/*.ts, src/**/*.tsx'
|
|
392
|
+
severity: block
|
|
393
|
+
must_not:
|
|
394
|
+
- pattern: 'console.log'
|
|
395
|
+
message: 'Use structured logger instead of console.log'
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
```bash
|
|
399
|
+
# Scaffold starter contracts
|
|
400
|
+
npx tribunal-kit contract init
|
|
401
|
+
|
|
402
|
+
# Run contract checks against target or modified files
|
|
403
|
+
npx tribunal-kit contract verify
|
|
404
|
+
|
|
405
|
+
# Replay a failure context trace snapshot
|
|
406
|
+
npx tribunal-kit contract replay <trace_id>
|
|
407
|
+
```
|
|
356
408
|
|
|
357
409
|
<br>
|
|
358
410
|
<hr style="height: 1px; border: none; background: linear-gradient(to right, transparent, #33333f, transparent); margin: 40px 0;" />
|
|
359
411
|
|
|
360
412
|
<!-- SECTION 11 -->
|
|
413
|
+
|
|
361
414
|
## 💻 CLI Command Reference
|
|
362
415
|
|
|
363
416
|
Below is the structured list of all core commands available via `npx tribunal-kit <command>` (or the alias `tk`):
|
|
@@ -427,6 +480,11 @@ Below is the structured list of all core commands available via `npx tribunal-ki
|
|
|
427
480
|
<td style="padding: 12px 16px; color: #c9c9d1;"><code>init | status | next</code></td>
|
|
428
481
|
<td style="padding: 12px 16px; color: #a0a0a5;">Sets up and executes long-running autonomous development.</td>
|
|
429
482
|
</tr>
|
|
483
|
+
<tr style="border-bottom: 1px solid #222225;">
|
|
484
|
+
<td style="padding: 12px 16px;"><kbd style="background: #1c1c24; border: 1px solid #333; padding: 2px 6px; border-radius: 4px; color: #ffffff;">contract</kbd></td>
|
|
485
|
+
<td style="padding: 12px 16px; color: #c9c9d1;"><code>init | verify | list | trace | replay</code></td>
|
|
486
|
+
<td style="padding: 12px 16px; color: #a0a0a5;">AI Agent Behavioral Contract Testing and failure context trace replay.</td>
|
|
487
|
+
</tr>
|
|
430
488
|
</tbody>
|
|
431
489
|
</table>
|
|
432
490
|
</div>
|
|
@@ -435,11 +493,13 @@ Below is the structured list of all core commands available via `npx tribunal-ki
|
|
|
435
493
|
<hr style="height: 1px; border: none; background: linear-gradient(to right, transparent, #33333f, transparent); margin: 40px 0;" />
|
|
436
494
|
|
|
437
495
|
<!-- SECTION 12 -->
|
|
496
|
+
|
|
438
497
|
## 🤝 Contributing & Security
|
|
439
498
|
|
|
440
499
|
We maintain high code standards and absolute runtime safety:
|
|
441
|
-
|
|
442
|
-
|
|
500
|
+
|
|
501
|
+
- **Security Policy**: Tribunal Kit operates with **zero runtime network dependencies**, zero dangerous `eval` executes, and sandboxed file paths to protect your codebase. Read more in [SECURITY.md](SECURITY.md).
|
|
502
|
+
- **Contributing Guide**: We welcome community-authored agents, skills, and workflows! Please read [CONTRIBUTING.md](CONTRIBUTING.md) to set up your local development environment and run our verification tests.
|
|
443
503
|
|
|
444
504
|
<br>
|
|
445
505
|
<br>
|
package/SECURITY.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Supported Versions
|
|
4
4
|
|
|
5
|
-
| Version | Supported
|
|
6
|
-
| ------- |
|
|
7
|
-
|
|
|
8
|
-
|
|
|
9
|
-
| <
|
|
5
|
+
| Version | Supported |
|
|
6
|
+
| ------- | ---------------------- |
|
|
7
|
+
| 7.x | ✅ Active support |
|
|
8
|
+
| 6.x | ⚠️ Critical fixes only |
|
|
9
|
+
| < 6.0 | ❌ End of life |
|
|
10
10
|
|
|
11
11
|
## Reporting a Vulnerability
|
|
12
12
|
|
|
@@ -28,12 +28,12 @@ Instead, please report vulnerabilities privately using one of these methods:
|
|
|
28
28
|
|
|
29
29
|
### Response timeline
|
|
30
30
|
|
|
31
|
-
| Action
|
|
32
|
-
|
|
|
33
|
-
| Acknowledgment
|
|
34
|
-
| Initial assessment
|
|
35
|
-
| Fix release (critical) | Within 7 days
|
|
36
|
-
| Fix release (moderate) | Within 30 days
|
|
31
|
+
| Action | Timeline |
|
|
32
|
+
| ---------------------- | ---------------------- |
|
|
33
|
+
| Acknowledgment | Within 48 hours |
|
|
34
|
+
| Initial assessment | Within 5 business days |
|
|
35
|
+
| Fix release (critical) | Within 7 days |
|
|
36
|
+
| Fix release (moderate) | Within 30 days |
|
|
37
37
|
|
|
38
38
|
## Security Design
|
|
39
39
|
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Tribunal Kit — Universal CLI Agent Adapter
|
|
5
|
+
*
|
|
6
|
+
* Auto-detects installed CLI agents and configures Tribunal Kit
|
|
7
|
+
* for each one. Supports Claude Code, Aider, Codex, Gemini CLI,
|
|
8
|
+
* OpenCode, Copilot CLI, Cursor, Windsurf, and Cline.
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* node bin/adapter-install.js # Auto-detect and install all
|
|
12
|
+
* node bin/adapter-install.js claude # Install for Claude Code only
|
|
13
|
+
* node bin/adapter-install.js --global # Install to ~/.tribunal-kit/
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
const fs = require('fs');
|
|
17
|
+
const path = require('path');
|
|
18
|
+
const os = require('os');
|
|
19
|
+
const { execSync } = require('child_process');
|
|
20
|
+
|
|
21
|
+
const ADAPTERS = {
|
|
22
|
+
'claude-code': {
|
|
23
|
+
detect: () => commandExists('claude'),
|
|
24
|
+
rulesFile: '.claude/CLAUDE.md',
|
|
25
|
+
description: 'Claude Code CLI',
|
|
26
|
+
setup: (projectRoot, _globalMode) => {
|
|
27
|
+
const rulesDir = path.join(projectRoot, '.claude');
|
|
28
|
+
ensureDir(rulesDir);
|
|
29
|
+
const source = path.join(__dirname, '..', '.claude', 'CLAUDE.md');
|
|
30
|
+
const target = path.join(rulesDir, 'CLAUDE.md');
|
|
31
|
+
if (fs.existsSync(source)) {
|
|
32
|
+
fs.copyFileSync(source, target);
|
|
33
|
+
}
|
|
34
|
+
// Also install MCP server config
|
|
35
|
+
installMcpConfig(projectRoot, 'claude');
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
aider: {
|
|
40
|
+
detect: () => commandExists('aider'),
|
|
41
|
+
rulesFile: '.aider.conf.yml',
|
|
42
|
+
description: 'Aider CLI',
|
|
43
|
+
setup: projectRoot => {
|
|
44
|
+
const conventionsPath = path.join(projectRoot, 'CONVENTIONS.md');
|
|
45
|
+
const systemPrompt = fs.readFileSync(
|
|
46
|
+
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
47
|
+
'utf8',
|
|
48
|
+
);
|
|
49
|
+
fs.writeFileSync(conventionsPath, systemPrompt);
|
|
50
|
+
console.log(` ✓ Wrote ${conventionsPath}`);
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
codex: {
|
|
55
|
+
detect: () => commandExists('codex'),
|
|
56
|
+
rulesFile: 'AGENTS.md',
|
|
57
|
+
description: 'OpenAI Codex CLI',
|
|
58
|
+
setup: projectRoot => {
|
|
59
|
+
const agentsPath = path.join(projectRoot, 'AGENTS.md');
|
|
60
|
+
const systemPrompt = fs.readFileSync(
|
|
61
|
+
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
62
|
+
'utf8',
|
|
63
|
+
);
|
|
64
|
+
fs.writeFileSync(agentsPath, systemPrompt);
|
|
65
|
+
console.log(` ✓ Wrote ${agentsPath}`);
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
'gemini-cli': {
|
|
70
|
+
detect: () => commandExists('gemini'),
|
|
71
|
+
rulesFile: '.gemini/rules/GEMINI.md',
|
|
72
|
+
description: 'Google Gemini CLI',
|
|
73
|
+
setup: projectRoot => {
|
|
74
|
+
const geminiDir = path.join(projectRoot, '.gemini', 'rules');
|
|
75
|
+
ensureDir(geminiDir);
|
|
76
|
+
const systemPrompt = fs.readFileSync(
|
|
77
|
+
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
78
|
+
'utf8',
|
|
79
|
+
);
|
|
80
|
+
fs.writeFileSync(path.join(geminiDir, 'GEMINI.md'), systemPrompt);
|
|
81
|
+
console.log(` ✓ Wrote ${path.join(geminiDir, 'GEMINI.md')}`);
|
|
82
|
+
// Also install MCP config
|
|
83
|
+
installMcpConfig(projectRoot, 'gemini');
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
opencode: {
|
|
88
|
+
detect: () => commandExists('opencode'),
|
|
89
|
+
rulesFile: '.opencode/rules.md',
|
|
90
|
+
description: 'OpenCode CLI',
|
|
91
|
+
setup: projectRoot => {
|
|
92
|
+
const opencodeDir = path.join(projectRoot, '.opencode');
|
|
93
|
+
ensureDir(opencodeDir);
|
|
94
|
+
const systemPrompt = fs.readFileSync(
|
|
95
|
+
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
96
|
+
'utf8',
|
|
97
|
+
);
|
|
98
|
+
fs.writeFileSync(path.join(opencodeDir, 'rules.md'), systemPrompt);
|
|
99
|
+
console.log(` ✓ Wrote ${path.join(opencodeDir, 'rules.md')}`);
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
'copilot-cli': {
|
|
104
|
+
detect: () => commandExists('gh') && hasGhExtension('copilot'),
|
|
105
|
+
rulesFile: '.github/copilot-instructions.md',
|
|
106
|
+
description: 'GitHub Copilot CLI',
|
|
107
|
+
setup: projectRoot => {
|
|
108
|
+
const ghDir = path.join(projectRoot, '.github');
|
|
109
|
+
ensureDir(ghDir);
|
|
110
|
+
const systemPrompt = fs.readFileSync(
|
|
111
|
+
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
112
|
+
'utf8',
|
|
113
|
+
);
|
|
114
|
+
fs.writeFileSync(path.join(ghDir, 'copilot-instructions.md'), systemPrompt);
|
|
115
|
+
console.log(` ✓ Wrote ${path.join(ghDir, 'copilot-instructions.md')}`);
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// --- Utility Functions ---
|
|
121
|
+
|
|
122
|
+
function commandExists(cmd) {
|
|
123
|
+
try {
|
|
124
|
+
const isWin = os.platform() === 'win32';
|
|
125
|
+
const check = isWin ? `where ${cmd}` : `which ${cmd}`;
|
|
126
|
+
execSync(check, { stdio: 'ignore' });
|
|
127
|
+
return true;
|
|
128
|
+
} catch {
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function hasGhExtension(ext) {
|
|
134
|
+
try {
|
|
135
|
+
const output = execSync('gh extension list', { encoding: 'utf8' });
|
|
136
|
+
return output.includes(ext);
|
|
137
|
+
} catch {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function ensureDir(dirPath) {
|
|
143
|
+
if (!fs.existsSync(dirPath)) {
|
|
144
|
+
fs.mkdirSync(dirPath, { recursive: true });
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function installMcpConfig(projectRoot, target) {
|
|
149
|
+
const mcpConfig = {
|
|
150
|
+
mcpServers: {
|
|
151
|
+
'tribunal-kit': {
|
|
152
|
+
command: 'node',
|
|
153
|
+
args: [path.join(__dirname, '..', 'bin', 'mcp-server.js')],
|
|
154
|
+
env: { NODE_ENV: 'production' },
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
let configPath;
|
|
160
|
+
if (target === 'claude') {
|
|
161
|
+
configPath = path.join(projectRoot, '.claude', 'mcp.json');
|
|
162
|
+
} else if (target === 'gemini') {
|
|
163
|
+
configPath = path.join(projectRoot, '.gemini', 'settings.json');
|
|
164
|
+
} else {
|
|
165
|
+
configPath = path.join(projectRoot, 'mcp_config.json');
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
fs.writeFileSync(configPath, JSON.stringify(mcpConfig, null, 2));
|
|
169
|
+
console.log(` ✓ MCP server registered at ${configPath}`);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// --- Main ---
|
|
173
|
+
|
|
174
|
+
function main() {
|
|
175
|
+
const args = process.argv.slice(2);
|
|
176
|
+
const globalMode = args.includes('--global');
|
|
177
|
+
const targetAgent = args.find(a => !a.startsWith('-'));
|
|
178
|
+
const projectRoot = globalMode ? path.join(os.homedir(), '.tribunal-kit') : process.cwd();
|
|
179
|
+
|
|
180
|
+
console.log('');
|
|
181
|
+
console.log('┌─────────────────────────────────────────────┐');
|
|
182
|
+
console.log('│ 🔱 Tribunal Kit — Universal Agent Adapter │');
|
|
183
|
+
console.log('│ v7.0.0 · 52 specialists · 186 skills │');
|
|
184
|
+
console.log('└─────────────────────────────────────────────┘');
|
|
185
|
+
console.log('');
|
|
186
|
+
|
|
187
|
+
if (globalMode) {
|
|
188
|
+
ensureDir(projectRoot);
|
|
189
|
+
console.log(`📁 Global mode: Installing to ${projectRoot}`);
|
|
190
|
+
} else {
|
|
191
|
+
console.log(`📁 Project mode: Installing to ${projectRoot}`);
|
|
192
|
+
}
|
|
193
|
+
console.log('');
|
|
194
|
+
|
|
195
|
+
let installed = 0;
|
|
196
|
+
let detected = 0;
|
|
197
|
+
|
|
198
|
+
for (const [name, adapter] of Object.entries(ADAPTERS)) {
|
|
199
|
+
if (targetAgent && name !== targetAgent) continue;
|
|
200
|
+
|
|
201
|
+
const isDetected = adapter.detect();
|
|
202
|
+
if (isDetected) detected++;
|
|
203
|
+
|
|
204
|
+
if (targetAgent || isDetected) {
|
|
205
|
+
console.log(`⚡ ${adapter.description} ${isDetected ? '(detected)' : '(manual)'}`);
|
|
206
|
+
try {
|
|
207
|
+
adapter.setup(projectRoot, globalMode);
|
|
208
|
+
installed++;
|
|
209
|
+
console.log(` ✅ Tribunal Kit configured for ${adapter.description}`);
|
|
210
|
+
} catch (err) {
|
|
211
|
+
console.error(` ❌ Failed: ${err.message}`);
|
|
212
|
+
}
|
|
213
|
+
console.log('');
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (installed === 0 && !targetAgent) {
|
|
218
|
+
console.log('⚠️ No CLI agents detected on this machine.');
|
|
219
|
+
console.log('');
|
|
220
|
+
console.log(' Supported agents:');
|
|
221
|
+
for (const [name, adapter] of Object.entries(ADAPTERS)) {
|
|
222
|
+
console.log(` • ${name.padEnd(15)} → ${adapter.description}`);
|
|
223
|
+
}
|
|
224
|
+
console.log('');
|
|
225
|
+
console.log(' Install one, then run this command again.');
|
|
226
|
+
console.log(' Or specify manually: node bin/adapter-install.js claude-code');
|
|
227
|
+
} else {
|
|
228
|
+
console.log('─────────────────────────────────────────────');
|
|
229
|
+
console.log(`✅ Configured ${installed} agent(s) (${detected} auto-detected)`);
|
|
230
|
+
console.log('');
|
|
231
|
+
console.log(' Next steps:');
|
|
232
|
+
console.log(' 1. Open your CLI agent normally');
|
|
233
|
+
console.log(' 2. The Tribunal rules are now enforced automatically');
|
|
234
|
+
console.log(' 3. Use /tribunal, /summon, /audit, /debug commands');
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
console.log('');
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
main();
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const os = require('os');
|
|
4
|
+
|
|
5
|
+
const GLOBAL_STORE_PATH = path.join(os.homedir(), '.tribunal-kit');
|
|
6
|
+
const LOCAL_AGENT_PATH = path.join(__dirname, '..', '.agent');
|
|
7
|
+
|
|
8
|
+
function initializeGlobalStore() {
|
|
9
|
+
if (!fs.existsSync(GLOBAL_STORE_PATH)) {
|
|
10
|
+
console.log(`[Tribunal Kit] Initializing global knowledge base at ${GLOBAL_STORE_PATH}...`);
|
|
11
|
+
fs.mkdirSync(GLOBAL_STORE_PATH, { recursive: true });
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Copy .agent folder if it doesn't exist in the global store or if we want to force update
|
|
15
|
+
const globalAgentPath = path.join(GLOBAL_STORE_PATH, '.agent');
|
|
16
|
+
if (!fs.existsSync(globalAgentPath)) {
|
|
17
|
+
console.log(`[Tribunal Kit] Copying specialists and skills to global store...`);
|
|
18
|
+
copyDirectoryRecursiveSync(LOCAL_AGENT_PATH, globalAgentPath);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function copyDirectoryRecursiveSync(source, target) {
|
|
23
|
+
if (!fs.existsSync(target)) {
|
|
24
|
+
fs.mkdirSync(target, { recursive: true });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const files = fs.readdirSync(source);
|
|
28
|
+
for (const file of files) {
|
|
29
|
+
const sourcePath = path.join(source, file);
|
|
30
|
+
const targetPath = path.join(target, file);
|
|
31
|
+
|
|
32
|
+
if (fs.lstatSync(sourcePath).isDirectory()) {
|
|
33
|
+
copyDirectoryRecursiveSync(sourcePath, targetPath);
|
|
34
|
+
} else {
|
|
35
|
+
fs.copyFileSync(sourcePath, targetPath);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function getGlobalAgentPath() {
|
|
41
|
+
return path.join(GLOBAL_STORE_PATH, '.agent');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
module.exports = {
|
|
45
|
+
initializeGlobalStore,
|
|
46
|
+
getGlobalAgentPath,
|
|
47
|
+
GLOBAL_STORE_PATH,
|
|
48
|
+
};
|