tribunal-kit 9.2.1 → 9.2.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.
- package/.agent/agents/orchestrator.md +2 -0
- package/.agent/config/claude.json +1 -1
- package/.agent/config/plugin.json +1 -1
- package/.agent/history/architecture-explorer.html +352 -0
- package/.agent/history/architecture-graph.yaml +181 -1
- package/.agent/history/graph-cache.json +323 -13
- package/.agent/history/integrity_manifest.json +3937 -299
- package/.agent/history/memory/.memory.idx +50 -50
- package/.agent/history/snapshots/.opencode__plugins__tribunal.js.json +12 -0
- package/.agent/history/snapshots/.pi__extensions__tribunal.ts.json +12 -0
- package/.agent/history/snapshots/bin__adapter-install.js.json +1 -1
- package/.agent/history/snapshots/bin__mcp-server.js.json +4 -2
- package/.agent/history/snapshots/bin__proxy-server.js.json +1 -1
- package/.agent/history/snapshots/bin__spawn-agent.js.json +1 -1
- package/.agent/history/snapshots/bin__wrapper.js.json +1 -1
- package/.agent/history/snapshots/eslint.config.js.json +1 -1
- package/.agent/history/snapshots/hooks__session-start.js.json +11 -0
- package/.agent/history/snapshots/scripts__apply-version.js.json +11 -0
- package/.agent/history/snapshots/scripts__audit_skill_sdo.js.json +11 -0
- package/.agent/history/snapshots/scripts__clean-pycache.js.json +11 -0
- package/.agent/history/snapshots/scripts__context_compiler.js.json +17 -0
- package/.agent/history/snapshots/scripts__modernize_skills.js.json +11 -0
- package/.agent/history/snapshots/scripts__package-cores.js.json +12 -0
- package/.agent/history/snapshots/scripts__skill_enhancement_engine.js.json +11 -0
- package/.agent/history/snapshots/scripts__sync-skills.js.json +11 -0
- package/.agent/history/snapshots/scripts__telemetry_gc.js.json +11 -0
- package/.agent/history/snapshots/scripts__validate-payload.js.json +1 -1
- package/.agent/history/snapshots/test__integration__browser_cli.test.js.json +12 -0
- package/.agent/history/snapshots/test__integration__sync_status.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__ast_context_loader.test.js.json +12 -0
- package/.agent/history/snapshots/test__unit__browser_case_bridge.test.js.json +11 -0
- package/.agent/history/snapshots/test__unit__browser_discovery.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__browser_idpi.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__browser_sentinel.test.js.json +11 -0
- package/.agent/history/snapshots/test__unit__browser_synapse.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__browser_trimmer.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__context_compiler.test.js.json +26 -0
- package/.agent/history/snapshots/test__unit__init.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__learn.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__mcp_server.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__platform_download_audit.test.js.json +11 -0
- package/.agent/history/snapshots/test__unit__prompt_compiler.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__sdd_integration.test.js.json +12 -0
- package/.agent/history/snapshots/test__unit__stress.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__token_budget_broker.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__tui.test.js.json +10 -0
- package/.agent/routing_index.json +1 -1
- package/.agent/rules/kernel.md +86 -0
- package/.agent/scripts/_utils.js +78 -0
- package/.agent/scripts/context_broker.js +0 -8
- package/.agent/scripts/context_compiler.js +1106 -3
- package/.agent/scripts/guardrail_engine.js +48 -11
- package/.agent/scripts/memory_engine.js +490 -329
- package/.agent/scripts/pipeline_engine.js +29 -106
- package/.agent/scripts/swarm_dispatcher.js +123 -48
- package/.agent/skill_topic_map.json +71 -22
- package/.agent/skills/12-principles-of-animation/SKILL.md +1 -76
- package/.agent/skills/60fps-animation/SKILL.md +1 -76
- package/.agent/skills/accessible-animation/SKILL.md +1 -76
- package/.agent/skills/adapt/SKILL.md +1 -76
- package/.agent/skills/advanced-rag-pipelines/SKILL.md +1 -76
- package/.agent/skills/agent-organizer/SKILL.md +1 -76
- package/.agent/skills/agentic-patterns/SKILL.md +1 -76
- package/.agent/skills/agentic-workflows-2026/SKILL.md +1 -76
- package/.agent/skills/ai-app-hardening/SKILL.md +1 -76
- package/.agent/skills/ai-prompt-injection-defense/SKILL.md +1 -76
- package/.agent/skills/animation-on-scroll/SKILL.md +1 -76
- package/.agent/skills/animation-systems/SKILL.md +1 -76
- package/.agent/skills/antfu-conventions/SKILL.md +0 -75
- package/.agent/skills/api-patterns/SKILL.md +1 -76
- package/.agent/skills/api-security-auditor/SKILL.md +1 -76
- package/.agent/skills/app-builder/SKILL.md +1 -76
- package/.agent/skills/appflow-wireframe/SKILL.md +1 -76
- package/.agent/skills/apple-design/SKILL.md +1 -76
- package/.agent/skills/architecture/SKILL.md +1 -76
- package/.agent/skills/audit-and-fix/SKILL.md +41 -77
- package/.agent/skills/authentication-best-practices/SKILL.md +1 -76
- package/.agent/skills/backend-security-expert/SKILL.md +1 -76
- package/.agent/skills/baseline-ui/SKILL.md +1 -76
- package/.agent/skills/bash-linux/SKILL.md +1 -76
- package/.agent/skills/behavioral-modes/SKILL.md +1 -76
- package/.agent/skills/better-colors/SKILL.md +1 -76
- package/.agent/skills/better-typography/SKILL.md +1 -76
- package/.agent/skills/better-ui/SKILL.md +1 -76
- package/.agent/skills/bolder/SKILL.md +1 -76
- package/.agent/skills/brainstorming/SKILL.md +1 -76
- package/.agent/skills/browser-audit/SKILL.md +1 -76
- package/.agent/skills/browser-native-ai/SKILL.md +1 -76
- package/.agent/skills/build-primitive/SKILL.md +1 -76
- package/.agent/skills/building-native-ui/SKILL.md +1 -76
- package/.agent/skills/cicd-pro/SKILL.md +1 -76
- package/.agent/skills/clarify/SKILL.md +1 -76
- package/.agent/skills/clean-code/SKILL.md +1 -76
- package/.agent/skills/cloud-architect/SKILL.md +1 -76
- package/.agent/skills/cobejs/SKILL.md +1 -76
- package/.agent/skills/code-review-checklist/SKILL.md +1 -76
- package/.agent/skills/codebase-design/SKILL.md +1 -76
- package/.agent/skills/colorize/SKILL.md +1 -76
- package/.agent/skills/compact-landing/SKILL.md +1 -76
- package/.agent/skills/company-logos/SKILL.md +1 -76
- package/.agent/skills/config-validator/SKILL.md +1 -76
- package/.agent/skills/containerization-pro/SKILL.md +1 -76
- package/.agent/skills/context-engineering-pro/SKILL.md +1 -76
- package/.agent/skills/create-design-md/SKILL.md +1 -76
- package/.agent/skills/critique/SKILL.md +1 -76
- package/.agent/skills/csharp-developer/SKILL.md +1 -76
- package/.agent/skills/data-validation-schemas/SKILL.md +1 -76
- package/.agent/skills/database-design/SKILL.md +1 -76
- package/.agent/skills/delight/SKILL.md +1 -76
- package/.agent/skills/deployment-procedures/SKILL.md +1 -76
- package/.agent/skills/design-lab/SKILL.md +1 -76
- package/.agent/skills/devops-engineer/SKILL.md +1 -76
- package/.agent/skills/devops-incident-responder/SKILL.md +1 -76
- package/.agent/skills/diagnosing-bugs/SKILL.md +1 -76
- package/.agent/skills/distill/SKILL.md +1 -76
- package/.agent/skills/documentation-templates/SKILL.md +1 -76
- package/.agent/skills/domain-modeling/SKILL.md +1 -76
- package/.agent/skills/duckdb-analytical-sql/SKILL.md +1 -76
- package/.agent/skills/edge-ai-mobile/SKILL.md +1 -76
- package/.agent/skills/edge-computing/SKILL.md +1 -76
- package/.agent/skills/emil-design-eng/SKILL.md +1 -76
- package/.agent/skills/error-resilience/SKILL.md +1 -76
- package/.agent/skills/expo-router-v4/SKILL.md +1 -76
- package/.agent/skills/extract-design-system/SKILL.md +1 -76
- package/.agent/skills/fabel-protocol/SKILL.md +1 -76
- package/.agent/skills/fixing-accessibility/SKILL.md +1 -76
- package/.agent/skills/fixing-metadata/SKILL.md +1 -76
- package/.agent/skills/fixing-motion-performance/SKILL.md +1 -76
- package/.agent/skills/framer-motion-expert/SKILL.md +1 -76
- package/.agent/skills/frontend-design/SKILL.md +1 -76
- package/.agent/skills/frontend-security-expert/SKILL.md +1 -76
- package/.agent/skills/game-design-expert/SKILL.md +1 -76
- package/.agent/skills/game-engineering-expert/SKILL.md +1 -76
- package/.agent/skills/generative-ui-expert/SKILL.md +1 -76
- package/.agent/skills/geo-fundamentals/SKILL.md +1 -76
- package/.agent/skills/git-pro/SKILL.md +1 -76
- package/.agent/skills/github-operations/SKILL.md +1 -76
- package/.agent/skills/gpt-taste/SKILL.md +1 -76
- package/.agent/skills/gsap-core/SKILL.md +1 -76
- package/.agent/skills/gsap-frameworks/SKILL.md +1 -76
- package/.agent/skills/gsap-performance/SKILL.md +1 -76
- package/.agent/skills/gsap-plugins/SKILL.md +1 -76
- package/.agent/skills/gsap-react/SKILL.md +1 -76
- package/.agent/skills/gsap-scrolltrigger/SKILL.md +1 -76
- package/.agent/skills/gsap-timeline/SKILL.md +1 -76
- package/.agent/skills/gsap-utils/SKILL.md +1 -76
- package/.agent/skills/harden/SKILL.md +1 -76
- package/.agent/skills/harness-protocol/SKILL.md +1 -76
- package/.agent/skills/i18n-localization/SKILL.md +1 -76
- package/.agent/skills/impeccable/SKILL.md +1 -76
- package/.agent/skills/improve-codebase-architecture/SKILL.md +1 -76
- package/.agent/skills/improve-ui/SKILL.md +1 -76
- package/.agent/skills/intelligent-routing/SKILL.md +2 -88
- package/.agent/skills/knowledge-graph/SKILL.md +1 -76
- package/.agent/skills/landing-page/SKILL.md +1 -76
- package/.agent/skills/lint-and-validate/SKILL.md +1 -76
- package/.agent/skills/llm-engineering/SKILL.md +1 -76
- package/.agent/skills/local-first/SKILL.md +1 -76
- package/.agent/skills/local-first-architecture/SKILL.md +1 -76
- package/.agent/skills/lottie-animation/SKILL.md +1 -76
- package/.agent/skills/marquee-loop/SKILL.md +1 -76
- package/.agent/skills/masked-reveal/SKILL.md +1 -76
- package/.agent/skills/mcp-builder/SKILL.md +1 -76
- package/.agent/skills/micro-interaction/SKILL.md +1 -76
- package/.agent/skills/mobile-design/SKILL.md +1 -76
- package/.agent/skills/monorepo-management/SKILL.md +1 -76
- package/.agent/skills/morphing-icons/SKILL.md +1 -76
- package/.agent/skills/motion-engineering/SKILL.md +1 -76
- package/.agent/skills/nextjs-react-expert/SKILL.md +1 -76
- package/.agent/skills/nodejs-best-practices/SKILL.md +1 -76
- package/.agent/skills/observability/SKILL.md +1 -76
- package/.agent/skills/opentelemetry-observability/SKILL.md +1 -76
- package/.agent/skills/page-transition-animation/SKILL.md +1 -76
- package/.agent/skills/parallel-agents/SKILL.md +1 -76
- package/.agent/skills/performance-profiling/SKILL.md +1 -76
- package/.agent/skills/plan-writing/SKILL.md +1 -76
- package/.agent/skills/platform-engineer/SKILL.md +1 -76
- package/.agent/skills/platform-engineering-opentofu/SKILL.md +1 -76
- package/.agent/skills/playwright-ai-e2e/SKILL.md +1 -76
- package/.agent/skills/playwright-best-practices/SKILL.md +1 -76
- package/.agent/skills/polish/SKILL.md +1 -76
- package/.agent/skills/powershell-windows/SKILL.md +1 -76
- package/.agent/skills/pricing-page/SKILL.md +1 -76
- package/.agent/skills/product-aware-heuristics/SKILL.md +1 -76
- package/.agent/skills/progressive-blur/SKILL.md +1 -76
- package/.agent/skills/project-idioms/SKILL.md +1 -76
- package/.agent/skills/property-based-testing/SKILL.md +1 -76
- package/.agent/skills/python-patterns/SKILL.md +1 -76
- package/.agent/skills/python-pro/SKILL.md +1 -76
- package/.agent/skills/quieter/SKILL.md +1 -76
- package/.agent/skills/react-doctor/SKILL.md +1 -76
- package/.agent/skills/react-specialist/SKILL.md +1 -76
- package/.agent/skills/readme-builder/SKILL.md +1 -76
- package/.agent/skills/realtime-patterns/SKILL.md +1 -76
- package/.agent/skills/red-team-tactics/SKILL.md +1 -76
- package/.agent/skills/redesign-skill/SKILL.md +1 -76
- package/.agent/skills/review-animations/SKILL.md +1 -76
- package/.agent/skills/rust-pro/SKILL.md +1 -76
- package/.agent/skills/seo-fundamentals/SKILL.md +1 -76
- package/.agent/skills/server-management/SKILL.md +1 -76
- package/.agent/skills/shadcn-ui-expert/SKILL.md +1 -76
- package/.agent/skills/shape/SKILL.md +1 -76
- package/.agent/skills/skill-creator/SKILL.md +124 -90
- package/.agent/skills/soft-skill/SKILL.md +1 -76
- package/.agent/skills/sounds-on-the-web/SKILL.md +1 -76
- package/.agent/skills/sql-pro/SKILL.md +1 -76
- package/.agent/skills/supabase-postgres-best-practices/SKILL.md +1 -76
- package/.agent/skills/svg-animation/SKILL.md +1 -76
- package/.agent/skills/swiftui-expert/SKILL.md +1 -76
- package/.agent/skills/swiss-design/SKILL.md +1 -76
- package/.agent/skills/system-design-pro/SKILL.md +1 -76
- package/.agent/skills/systematic-debugging/SKILL.md +1 -76
- package/.agent/skills/tailwind-patterns/SKILL.md +1 -76
- package/.agent/skills/taste-skill/SKILL.md +1 -76
- package/.agent/skills/tdd-workflow/SKILL.md +1 -76
- package/.agent/skills/test-result-analyzer/SKILL.md +1 -76
- package/.agent/skills/testing-patterns/SKILL.md +1 -76
- package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
- package/.agent/skills/thinking-protocol/SKILL.md +1 -78
- package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
- package/.agent/skills/transitions-dev/SKILL.md +1 -76
- package/.agent/skills/trend-researcher/SKILL.md +1 -76
- package/.agent/skills/typescript-advanced/SKILL.md +1 -76
- package/.agent/skills/typeset/SKILL.md +1 -76
- package/.agent/skills/ui-reasoning-engine/SKILL.md +1 -76
- package/.agent/skills/ui-skill-packs/SKILL.md +1 -76
- package/.agent/skills/ui-skills-root/SKILL.md +1 -76
- package/.agent/skills/ui-ux-pro-max/SKILL.md +1 -76
- package/.agent/skills/ui-ux-researcher/SKILL.md +1 -76
- package/.agent/skills/vector-search-pgvector/SKILL.md +1 -76
- package/.agent/skills/verification-before-completion/SKILL.md +1 -76
- package/.agent/skills/vue-expert/SKILL.md +1 -76
- package/.agent/skills/vulnerability-scanner/SKILL.md +1 -76
- package/.agent/skills/web-accessibility-auditor/SKILL.md +1 -76
- package/.agent/skills/web-design-guidelines/SKILL.md +1 -76
- package/.agent/skills/web-quality-audit/SKILL.md +1 -76
- package/.agent/skills/webapp-testing/SKILL.md +1 -76
- package/.agent/skills/webgpu-performance/SKILL.md +1 -76
- package/.agent/skills/whimsy-injector/SKILL.md +1 -76
- package/.agent/skills/workflow-optimizer/SKILL.md +1 -76
- package/.agent/skills/zero-trust-passkeys/SKILL.md +1 -76
- package/.agent/workflows/generate.md +1 -1
- package/.agent/workflows/orchestrate.md +1 -1
- package/.agent/workflows/review-ai.md +1 -1
- package/.agent/workflows/skill-enhancement-engine.md +6 -10
- package/.agent/workflows/swarm.md +1 -1
- package/.agent/workflows/tribunal-backend.md +1 -1
- package/.agent/workflows/tribunal-cicd.md +1 -1
- package/.agent/workflows/tribunal-database.md +1 -1
- package/.agent/workflows/tribunal-frontend.md +1 -1
- package/.agent/workflows/tribunal-full.md +9 -9
- package/.agent/workflows/tribunal-mobile.md +1 -1
- package/.agent/workflows/tribunal-speed.md +1 -1
- package/.agent/workflows/tribunal-ui.md +1 -1
- package/.agents/skills/12-principles-of-animation/SKILL.md +1 -76
- package/.agents/skills/60fps-animation/SKILL.md +1 -76
- package/.agents/skills/accessible-animation/SKILL.md +1 -76
- package/.agents/skills/adapt/SKILL.md +1 -76
- package/.agents/skills/advanced-rag-pipelines/SKILL.md +1 -76
- package/.agents/skills/agent-organizer/SKILL.md +1 -76
- package/.agents/skills/agentic-patterns/SKILL.md +1 -76
- package/.agents/skills/agentic-workflows-2026/SKILL.md +1 -76
- package/.agents/skills/ai-app-hardening/SKILL.md +1 -76
- package/.agents/skills/ai-prompt-injection-defense/SKILL.md +1 -76
- package/.agents/skills/animation-on-scroll/SKILL.md +1 -76
- package/.agents/skills/animation-systems/SKILL.md +1 -76
- package/.agents/skills/antfu-conventions/SKILL.md +0 -75
- package/.agents/skills/api-patterns/SKILL.md +1 -76
- package/.agents/skills/api-security-auditor/SKILL.md +1 -76
- package/.agents/skills/app-builder/SKILL.md +1 -76
- package/.agents/skills/appflow-wireframe/SKILL.md +1 -76
- package/.agents/skills/apple-design/SKILL.md +1 -76
- package/.agents/skills/architecture/SKILL.md +1 -76
- package/.agents/skills/audit-and-fix/SKILL.md +41 -77
- package/.agents/skills/authentication-best-practices/SKILL.md +1 -76
- package/.agents/skills/backend-security-expert/SKILL.md +1 -76
- package/.agents/skills/baseline-ui/SKILL.md +1 -76
- package/.agents/skills/bash-linux/SKILL.md +1 -76
- package/.agents/skills/behavioral-modes/SKILL.md +1 -76
- package/.agents/skills/better-colors/SKILL.md +1 -76
- package/.agents/skills/better-typography/SKILL.md +1 -76
- package/.agents/skills/better-ui/SKILL.md +1 -76
- package/.agents/skills/bolder/SKILL.md +1 -76
- package/.agents/skills/brainstorming/SKILL.md +1 -76
- package/.agents/skills/browser-audit/SKILL.md +1 -76
- package/.agents/skills/browser-native-ai/SKILL.md +1 -76
- package/.agents/skills/build-primitive/SKILL.md +1 -76
- package/.agents/skills/building-native-ui/SKILL.md +1 -76
- package/.agents/skills/cicd-pro/SKILL.md +1 -76
- package/.agents/skills/clarify/SKILL.md +1 -76
- package/.agents/skills/clean-code/SKILL.md +1 -76
- package/.agents/skills/cloud-architect/SKILL.md +1 -76
- package/.agents/skills/cobejs/SKILL.md +1 -76
- package/.agents/skills/code-review-checklist/SKILL.md +1 -76
- package/.agents/skills/codebase-design/SKILL.md +1 -76
- package/.agents/skills/colorize/SKILL.md +1 -76
- package/.agents/skills/compact-landing/SKILL.md +1 -76
- package/.agents/skills/company-logos/SKILL.md +1 -76
- package/.agents/skills/config-validator/SKILL.md +1 -76
- package/.agents/skills/containerization-pro/SKILL.md +1 -76
- package/.agents/skills/context-engineering-pro/SKILL.md +1 -76
- package/.agents/skills/create-design-md/SKILL.md +1 -76
- package/.agents/skills/critique/SKILL.md +1 -76
- package/.agents/skills/csharp-developer/SKILL.md +1 -76
- package/.agents/skills/data-validation-schemas/SKILL.md +1 -76
- package/.agents/skills/database-design/SKILL.md +1 -76
- package/.agents/skills/delight/SKILL.md +1 -76
- package/.agents/skills/deployment-procedures/SKILL.md +1 -76
- package/.agents/skills/design-lab/SKILL.md +1 -76
- package/.agents/skills/devops-engineer/SKILL.md +1 -76
- package/.agents/skills/devops-incident-responder/SKILL.md +1 -76
- package/.agents/skills/diagnosing-bugs/SKILL.md +1 -76
- package/.agents/skills/distill/SKILL.md +1 -76
- package/.agents/skills/documentation-templates/SKILL.md +1 -76
- package/.agents/skills/domain-modeling/SKILL.md +1 -76
- package/.agents/skills/duckdb-analytical-sql/SKILL.md +1 -76
- package/.agents/skills/edge-ai-mobile/SKILL.md +1 -76
- package/.agents/skills/edge-computing/SKILL.md +1 -76
- package/.agents/skills/emil-design-eng/SKILL.md +1 -76
- package/.agents/skills/error-resilience/SKILL.md +1 -76
- package/.agents/skills/expo-router-v4/SKILL.md +1 -76
- package/.agents/skills/extract-design-system/SKILL.md +1 -76
- package/.agents/skills/fabel-protocol/SKILL.md +1 -76
- package/.agents/skills/fixing-accessibility/SKILL.md +1 -76
- package/.agents/skills/fixing-metadata/SKILL.md +1 -76
- package/.agents/skills/fixing-motion-performance/SKILL.md +1 -76
- package/.agents/skills/framer-motion-expert/SKILL.md +1 -76
- package/.agents/skills/frontend-design/SKILL.md +1 -76
- package/.agents/skills/frontend-security-expert/SKILL.md +1 -76
- package/.agents/skills/game-design-expert/SKILL.md +1 -76
- package/.agents/skills/game-engineering-expert/SKILL.md +1 -76
- package/.agents/skills/generative-ui-expert/SKILL.md +1 -76
- package/.agents/skills/geo-fundamentals/SKILL.md +1 -76
- package/.agents/skills/git-pro/SKILL.md +1 -76
- package/.agents/skills/github-operations/SKILL.md +1 -76
- package/.agents/skills/gpt-taste/SKILL.md +1 -76
- package/.agents/skills/gsap-core/SKILL.md +1 -76
- package/.agents/skills/gsap-frameworks/SKILL.md +1 -76
- package/.agents/skills/gsap-performance/SKILL.md +1 -76
- package/.agents/skills/gsap-plugins/SKILL.md +1 -76
- package/.agents/skills/gsap-react/SKILL.md +1 -76
- package/.agents/skills/gsap-scrolltrigger/SKILL.md +1 -76
- package/.agents/skills/gsap-timeline/SKILL.md +1 -76
- package/.agents/skills/gsap-utils/SKILL.md +1 -76
- package/.agents/skills/harden/SKILL.md +1 -76
- package/.agents/skills/harness-protocol/SKILL.md +1 -76
- package/.agents/skills/i18n-localization/SKILL.md +1 -76
- package/.agents/skills/impeccable/SKILL.md +1 -76
- package/.agents/skills/improve-codebase-architecture/SKILL.md +1 -76
- package/.agents/skills/improve-ui/SKILL.md +1 -76
- package/.agents/skills/intelligent-routing/SKILL.md +2 -88
- package/.agents/skills/knowledge-graph/SKILL.md +1 -76
- package/.agents/skills/landing-page/SKILL.md +1 -76
- package/.agents/skills/lint-and-validate/SKILL.md +1 -76
- package/.agents/skills/llm-engineering/SKILL.md +1 -76
- package/.agents/skills/local-first/SKILL.md +1 -76
- package/.agents/skills/local-first-architecture/SKILL.md +1 -76
- package/.agents/skills/lottie-animation/SKILL.md +1 -76
- package/.agents/skills/marquee-loop/SKILL.md +1 -76
- package/.agents/skills/masked-reveal/SKILL.md +1 -76
- package/.agents/skills/mcp-builder/SKILL.md +1 -76
- package/.agents/skills/micro-interaction/SKILL.md +1 -76
- package/.agents/skills/mobile-design/SKILL.md +1 -76
- package/.agents/skills/monorepo-management/SKILL.md +1 -76
- package/.agents/skills/morphing-icons/SKILL.md +1 -76
- package/.agents/skills/motion-engineering/SKILL.md +1 -76
- package/.agents/skills/nextjs-react-expert/SKILL.md +1 -76
- package/.agents/skills/nodejs-best-practices/SKILL.md +1 -76
- package/.agents/skills/observability/SKILL.md +1 -76
- package/.agents/skills/opentelemetry-observability/SKILL.md +1 -76
- package/.agents/skills/page-transition-animation/SKILL.md +1 -76
- package/.agents/skills/parallel-agents/SKILL.md +1 -76
- package/.agents/skills/performance-profiling/SKILL.md +1 -76
- package/.agents/skills/plan-writing/SKILL.md +1 -76
- package/.agents/skills/platform-engineer/SKILL.md +1 -76
- package/.agents/skills/platform-engineering-opentofu/SKILL.md +1 -76
- package/.agents/skills/playwright-ai-e2e/SKILL.md +1 -76
- package/.agents/skills/playwright-best-practices/SKILL.md +1 -76
- package/.agents/skills/polish/SKILL.md +1 -76
- package/.agents/skills/powershell-windows/SKILL.md +1 -76
- package/.agents/skills/pricing-page/SKILL.md +1 -76
- package/.agents/skills/product-aware-heuristics/SKILL.md +1 -76
- package/.agents/skills/progressive-blur/SKILL.md +1 -76
- package/.agents/skills/project-idioms/SKILL.md +1 -76
- package/.agents/skills/property-based-testing/SKILL.md +1 -76
- package/.agents/skills/python-patterns/SKILL.md +1 -76
- package/.agents/skills/python-pro/SKILL.md +1 -76
- package/.agents/skills/quieter/SKILL.md +1 -76
- package/.agents/skills/react-doctor/SKILL.md +1 -76
- package/.agents/skills/react-specialist/SKILL.md +1 -76
- package/.agents/skills/readme-builder/SKILL.md +1 -76
- package/.agents/skills/realtime-patterns/SKILL.md +1 -76
- package/.agents/skills/red-team-tactics/SKILL.md +1 -76
- package/.agents/skills/redesign-skill/SKILL.md +1 -76
- package/.agents/skills/review-animations/SKILL.md +1 -76
- package/.agents/skills/rust-pro/SKILL.md +1 -76
- package/.agents/skills/seo-fundamentals/SKILL.md +1 -76
- package/.agents/skills/server-management/SKILL.md +1 -76
- package/.agents/skills/shadcn-ui-expert/SKILL.md +1 -76
- package/.agents/skills/shape/SKILL.md +1 -76
- package/.agents/skills/skill-creator/SKILL.md +124 -90
- package/.agents/skills/soft-skill/SKILL.md +1 -76
- package/.agents/skills/sounds-on-the-web/SKILL.md +1 -76
- package/.agents/skills/sql-pro/SKILL.md +1 -76
- package/.agents/skills/supabase-postgres-best-practices/SKILL.md +1 -76
- package/.agents/skills/svg-animation/SKILL.md +1 -76
- package/.agents/skills/swiftui-expert/SKILL.md +1 -76
- package/.agents/skills/swiss-design/SKILL.md +1 -76
- package/.agents/skills/system-design-pro/SKILL.md +1 -76
- package/.agents/skills/systematic-debugging/SKILL.md +1 -76
- package/.agents/skills/tailwind-patterns/SKILL.md +1 -76
- package/.agents/skills/taste-skill/SKILL.md +1 -76
- package/.agents/skills/tdd-workflow/SKILL.md +1 -76
- package/.agents/skills/test-result-analyzer/SKILL.md +1 -76
- package/.agents/skills/testing-patterns/SKILL.md +1 -76
- package/.agents/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
- package/.agents/skills/thinking-protocol/SKILL.md +1 -78
- package/.agents/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
- package/.agents/skills/transitions-dev/SKILL.md +1 -76
- package/.agents/skills/trend-researcher/SKILL.md +1 -76
- package/.agents/skills/typescript-advanced/SKILL.md +1 -76
- package/.agents/skills/typeset/SKILL.md +1 -76
- package/.agents/skills/ui-reasoning-engine/SKILL.md +1 -76
- package/.agents/skills/ui-skill-packs/SKILL.md +1 -76
- package/.agents/skills/ui-skills-root/SKILL.md +1 -76
- package/.agents/skills/ui-ux-pro-max/SKILL.md +1 -76
- package/.agents/skills/ui-ux-researcher/SKILL.md +1 -76
- package/.agents/skills/vector-search-pgvector/SKILL.md +1 -76
- package/.agents/skills/verification-before-completion/SKILL.md +1 -76
- package/.agents/skills/vue-expert/SKILL.md +1 -76
- package/.agents/skills/vulnerability-scanner/SKILL.md +1 -76
- package/.agents/skills/web-accessibility-auditor/SKILL.md +1 -76
- package/.agents/skills/web-design-guidelines/SKILL.md +1 -76
- package/.agents/skills/web-quality-audit/SKILL.md +1 -76
- package/.agents/skills/webapp-testing/SKILL.md +1 -76
- package/.agents/skills/webgpu-performance/SKILL.md +1 -76
- package/.agents/skills/whimsy-injector/SKILL.md +1 -76
- package/.agents/skills/workflow-optimizer/SKILL.md +1 -76
- package/.agents/skills/zero-trust-passkeys/SKILL.md +1 -76
- package/README.md +542 -542
- package/bin/adapter-install.js +263 -263
- package/bin/mcp-server.js +71 -46
- package/bin/wrapper.js +10 -1
- package/dist/commands/init.js +25 -11
- package/dist/tui/banner.js +1 -1
- package/gemini-extension.json +1 -1
- package/package.json +13 -10
- package/plugin.json +1 -1
- package/scripts/context_compiler.js +49 -0
- package/scripts/skill_enhancement_engine.js +5 -31
- package/scripts/telemetry_gc.js +3 -1
- package/scripts/validate-payload.js +1 -6
- package/skills/12-principles-of-animation/SKILL.md +1 -76
- package/skills/60fps-animation/SKILL.md +1 -76
- package/skills/accessible-animation/SKILL.md +1 -76
- package/skills/adapt/SKILL.md +1 -76
- package/skills/advanced-rag-pipelines/SKILL.md +1 -76
- package/skills/agent-organizer/SKILL.md +1 -76
- package/skills/agentic-patterns/SKILL.md +1 -76
- package/skills/agentic-workflows-2026/SKILL.md +1 -76
- package/skills/ai-app-hardening/SKILL.md +1 -76
- package/skills/ai-prompt-injection-defense/SKILL.md +1 -76
- package/skills/animation-on-scroll/SKILL.md +1 -76
- package/skills/animation-systems/SKILL.md +1 -76
- package/skills/antfu-conventions/SKILL.md +0 -75
- package/skills/api-patterns/SKILL.md +1 -76
- package/skills/api-security-auditor/SKILL.md +1 -76
- package/skills/app-builder/SKILL.md +1 -76
- package/skills/appflow-wireframe/SKILL.md +1 -76
- package/skills/apple-design/SKILL.md +1 -76
- package/skills/architecture/SKILL.md +1 -76
- package/skills/audit-and-fix/SKILL.md +41 -77
- package/skills/authentication-best-practices/SKILL.md +1 -76
- package/skills/backend-security-expert/SKILL.md +1 -76
- package/skills/baseline-ui/SKILL.md +1 -76
- package/skills/bash-linux/SKILL.md +1 -76
- package/skills/behavioral-modes/SKILL.md +1 -76
- package/skills/better-colors/SKILL.md +1 -76
- package/skills/better-typography/SKILL.md +1 -76
- package/skills/better-ui/SKILL.md +1 -76
- package/skills/bolder/SKILL.md +1 -76
- package/skills/brainstorming/SKILL.md +1 -76
- package/skills/browser-audit/SKILL.md +1 -76
- package/skills/browser-native-ai/SKILL.md +1 -76
- package/skills/build-primitive/SKILL.md +1 -76
- package/skills/building-native-ui/SKILL.md +1 -76
- package/skills/cicd-pro/SKILL.md +1 -76
- package/skills/clarify/SKILL.md +1 -76
- package/skills/clean-code/SKILL.md +1 -76
- package/skills/cloud-architect/SKILL.md +1 -76
- package/skills/cobejs/SKILL.md +1 -76
- package/skills/code-review-checklist/SKILL.md +1 -76
- package/skills/codebase-design/SKILL.md +1 -76
- package/skills/colorize/SKILL.md +1 -76
- package/skills/compact-landing/SKILL.md +1 -76
- package/skills/company-logos/SKILL.md +1 -76
- package/skills/config-validator/SKILL.md +1 -76
- package/skills/containerization-pro/SKILL.md +1 -76
- package/skills/context-engineering-pro/SKILL.md +1 -76
- package/skills/create-design-md/SKILL.md +1 -76
- package/skills/critique/SKILL.md +1 -76
- package/skills/csharp-developer/SKILL.md +1 -76
- package/skills/data-validation-schemas/SKILL.md +1 -76
- package/skills/database-design/SKILL.md +1 -76
- package/skills/delight/SKILL.md +1 -76
- package/skills/deployment-procedures/SKILL.md +1 -76
- package/skills/design-lab/SKILL.md +1 -76
- package/skills/devops-engineer/SKILL.md +1 -76
- package/skills/devops-incident-responder/SKILL.md +1 -76
- package/skills/diagnosing-bugs/SKILL.md +1 -76
- package/skills/distill/SKILL.md +1 -76
- package/skills/documentation-templates/SKILL.md +1 -76
- package/skills/domain-modeling/SKILL.md +1 -76
- package/skills/duckdb-analytical-sql/SKILL.md +1 -76
- package/skills/edge-ai-mobile/SKILL.md +1 -76
- package/skills/edge-computing/SKILL.md +1 -76
- package/skills/emil-design-eng/SKILL.md +1 -76
- package/skills/error-resilience/SKILL.md +1 -76
- package/skills/expo-router-v4/SKILL.md +1 -76
- package/skills/extract-design-system/SKILL.md +1 -76
- package/skills/fabel-protocol/SKILL.md +1 -76
- package/skills/fixing-accessibility/SKILL.md +1 -76
- package/skills/fixing-metadata/SKILL.md +1 -76
- package/skills/fixing-motion-performance/SKILL.md +1 -76
- package/skills/framer-motion-expert/SKILL.md +1 -76
- package/skills/frontend-design/SKILL.md +1 -76
- package/skills/frontend-security-expert/SKILL.md +1 -76
- package/skills/game-design-expert/SKILL.md +1 -76
- package/skills/game-engineering-expert/SKILL.md +1 -76
- package/skills/generative-ui-expert/SKILL.md +1 -76
- package/skills/geo-fundamentals/SKILL.md +1 -76
- package/skills/git-pro/SKILL.md +1 -76
- package/skills/github-operations/SKILL.md +1 -76
- package/skills/gpt-taste/SKILL.md +1 -76
- package/skills/gsap-core/SKILL.md +1 -76
- package/skills/gsap-frameworks/SKILL.md +1 -76
- package/skills/gsap-performance/SKILL.md +1 -76
- package/skills/gsap-plugins/SKILL.md +1 -76
- package/skills/gsap-react/SKILL.md +1 -76
- package/skills/gsap-scrolltrigger/SKILL.md +1 -76
- package/skills/gsap-timeline/SKILL.md +1 -76
- package/skills/gsap-utils/SKILL.md +1 -76
- package/skills/harden/SKILL.md +1 -76
- package/skills/harness-protocol/SKILL.md +1 -76
- package/skills/i18n-localization/SKILL.md +1 -76
- package/skills/impeccable/SKILL.md +1 -76
- package/skills/improve-codebase-architecture/SKILL.md +1 -76
- package/skills/improve-ui/SKILL.md +1 -76
- package/skills/intelligent-routing/SKILL.md +2 -88
- package/skills/knowledge-graph/SKILL.md +1 -76
- package/skills/landing-page/SKILL.md +1 -76
- package/skills/lint-and-validate/SKILL.md +1 -76
- package/skills/llm-engineering/SKILL.md +1 -76
- package/skills/local-first/SKILL.md +1 -76
- package/skills/local-first-architecture/SKILL.md +1 -76
- package/skills/lottie-animation/SKILL.md +1 -76
- package/skills/marquee-loop/SKILL.md +1 -76
- package/skills/masked-reveal/SKILL.md +1 -76
- package/skills/mcp-builder/SKILL.md +1 -76
- package/skills/micro-interaction/SKILL.md +1 -76
- package/skills/mobile-design/SKILL.md +1 -76
- package/skills/monorepo-management/SKILL.md +1 -76
- package/skills/morphing-icons/SKILL.md +1 -76
- package/skills/motion-engineering/SKILL.md +1 -76
- package/skills/nextjs-react-expert/SKILL.md +1 -76
- package/skills/nodejs-best-practices/SKILL.md +1 -76
- package/skills/observability/SKILL.md +1 -76
- package/skills/opentelemetry-observability/SKILL.md +1 -76
- package/skills/page-transition-animation/SKILL.md +1 -76
- package/skills/parallel-agents/SKILL.md +1 -76
- package/skills/performance-profiling/SKILL.md +1 -76
- package/skills/plan-writing/SKILL.md +1 -76
- package/skills/platform-engineer/SKILL.md +1 -76
- package/skills/platform-engineering-opentofu/SKILL.md +1 -76
- package/skills/playwright-ai-e2e/SKILL.md +1 -76
- package/skills/playwright-best-practices/SKILL.md +1 -76
- package/skills/polish/SKILL.md +1 -76
- package/skills/powershell-windows/SKILL.md +1 -76
- package/skills/pricing-page/SKILL.md +1 -76
- package/skills/product-aware-heuristics/SKILL.md +1 -76
- package/skills/progressive-blur/SKILL.md +1 -76
- package/skills/project-idioms/SKILL.md +1 -76
- package/skills/property-based-testing/SKILL.md +1 -76
- package/skills/python-patterns/SKILL.md +1 -76
- package/skills/python-pro/SKILL.md +1 -76
- package/skills/quieter/SKILL.md +1 -76
- package/skills/react-doctor/SKILL.md +1 -76
- package/skills/react-specialist/SKILL.md +1 -76
- package/skills/readme-builder/SKILL.md +1 -76
- package/skills/realtime-patterns/SKILL.md +1 -76
- package/skills/red-team-tactics/SKILL.md +1 -76
- package/skills/redesign-skill/SKILL.md +1 -76
- package/skills/review-animations/SKILL.md +1 -76
- package/skills/rust-pro/SKILL.md +1 -76
- package/skills/seo-fundamentals/SKILL.md +1 -76
- package/skills/server-management/SKILL.md +1 -76
- package/skills/shadcn-ui-expert/SKILL.md +1 -76
- package/skills/shape/SKILL.md +1 -76
- package/skills/skill-creator/SKILL.md +124 -90
- package/skills/soft-skill/SKILL.md +1 -76
- package/skills/sounds-on-the-web/SKILL.md +1 -76
- package/skills/sql-pro/SKILL.md +1 -76
- package/skills/supabase-postgres-best-practices/SKILL.md +1 -76
- package/skills/svg-animation/SKILL.md +1 -76
- package/skills/swiftui-expert/SKILL.md +1 -76
- package/skills/swiss-design/SKILL.md +1 -76
- package/skills/system-design-pro/SKILL.md +1 -76
- package/skills/systematic-debugging/SKILL.md +1 -76
- package/skills/tailwind-patterns/SKILL.md +1 -76
- package/skills/taste-skill/SKILL.md +1 -76
- package/skills/tdd-workflow/SKILL.md +1 -76
- package/skills/test-result-analyzer/SKILL.md +1 -76
- package/skills/testing-patterns/SKILL.md +1 -76
- package/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
- package/skills/thinking-protocol/SKILL.md +1 -78
- package/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
- package/skills/transitions-dev/SKILL.md +1 -76
- package/skills/trend-researcher/SKILL.md +1 -76
- package/skills/typescript-advanced/SKILL.md +1 -76
- package/skills/typeset/SKILL.md +1 -76
- package/skills/ui-reasoning-engine/SKILL.md +1 -76
- package/skills/ui-skill-packs/SKILL.md +1 -76
- package/skills/ui-skills-root/SKILL.md +1 -76
- package/skills/ui-ux-pro-max/SKILL.md +1 -76
- package/skills/ui-ux-researcher/SKILL.md +1 -76
- package/skills/vector-search-pgvector/SKILL.md +1 -76
- package/skills/verification-before-completion/SKILL.md +1 -76
- package/skills/vue-expert/SKILL.md +1 -76
- package/skills/vulnerability-scanner/SKILL.md +1 -76
- package/skills/web-accessibility-auditor/SKILL.md +1 -76
- package/skills/web-design-guidelines/SKILL.md +1 -76
- package/skills/web-quality-audit/SKILL.md +1 -76
- package/skills/webapp-testing/SKILL.md +1 -76
- package/skills/webgpu-performance/SKILL.md +1 -76
- package/skills/whimsy-injector/SKILL.md +1 -76
- package/skills/workflow-optimizer/SKILL.md +1 -76
- package/skills/zero-trust-passkeys/SKILL.md +1 -76
package/bin/adapter-install.js
CHANGED
|
@@ -1,264 +1,264 @@
|
|
|
1
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
|
-
const rootTarget = path.join(projectRoot, 'CLAUDE.md');
|
|
35
|
-
if (fs.existsSync(source) && !fs.existsSync(rootTarget)) {
|
|
36
|
-
fs.copyFileSync(source, rootTarget);
|
|
37
|
-
}
|
|
38
|
-
// Also install MCP server config
|
|
39
|
-
installMcpConfig(projectRoot, 'claude');
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
aider: {
|
|
44
|
-
detect: () => commandExists('aider'),
|
|
45
|
-
rulesFile: '.aider.conf.yml',
|
|
46
|
-
description: 'Aider CLI',
|
|
47
|
-
setup: projectRoot => {
|
|
48
|
-
const conventionsPath = path.join(projectRoot, 'CONVENTIONS.md');
|
|
49
|
-
const systemPrompt = fs.readFileSync(
|
|
50
|
-
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
51
|
-
'utf8',
|
|
52
|
-
);
|
|
53
|
-
fs.writeFileSync(conventionsPath, systemPrompt);
|
|
54
|
-
console.log(` ✓ Wrote ${conventionsPath}`);
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
codex: {
|
|
59
|
-
detect: () => commandExists('codex'),
|
|
60
|
-
rulesFile: 'AGENTS.md',
|
|
61
|
-
description: 'OpenAI Codex CLI',
|
|
62
|
-
setup: projectRoot => {
|
|
63
|
-
const agentsPath = path.join(projectRoot, 'AGENTS.md');
|
|
64
|
-
const rootAgentsSource = path.join(__dirname, '..', 'AGENTS.md');
|
|
65
|
-
let systemPrompt = '';
|
|
66
|
-
if (fs.existsSync(rootAgentsSource)) {
|
|
67
|
-
systemPrompt = fs.readFileSync(rootAgentsSource, 'utf8');
|
|
68
|
-
} else {
|
|
69
|
-
systemPrompt = fs.readFileSync(
|
|
70
|
-
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
71
|
-
'utf8',
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
fs.writeFileSync(agentsPath, systemPrompt);
|
|
75
|
-
console.log(` ✓ Wrote ${agentsPath}`);
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
'gemini-cli': {
|
|
80
|
-
detect: () => commandExists('gemini'),
|
|
81
|
-
rulesFile: '.gemini/rules/GEMINI.md',
|
|
82
|
-
description: 'Google Gemini CLI',
|
|
83
|
-
setup: projectRoot => {
|
|
84
|
-
const geminiDir = path.join(projectRoot, '.gemini', 'rules');
|
|
85
|
-
ensureDir(geminiDir);
|
|
86
|
-
const systemPrompt = fs.readFileSync(
|
|
87
|
-
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
88
|
-
'utf8',
|
|
89
|
-
);
|
|
90
|
-
fs.writeFileSync(path.join(geminiDir, 'GEMINI.md'), systemPrompt);
|
|
91
|
-
console.log(` ✓ Wrote ${path.join(geminiDir, 'GEMINI.md')}`);
|
|
92
|
-
// Also install MCP config
|
|
93
|
-
installMcpConfig(projectRoot, 'gemini');
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
opencode: {
|
|
98
|
-
detect: () => commandExists('opencode'),
|
|
99
|
-
rulesFile: '.opencode/rules.md',
|
|
100
|
-
description: 'OpenCode CLI',
|
|
101
|
-
setup: projectRoot => {
|
|
102
|
-
const opencodeDir = path.join(projectRoot, '.opencode');
|
|
103
|
-
ensureDir(opencodeDir);
|
|
104
|
-
const systemPrompt = fs.readFileSync(
|
|
105
|
-
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
106
|
-
'utf8',
|
|
107
|
-
);
|
|
108
|
-
fs.writeFileSync(path.join(opencodeDir, 'rules.md'), systemPrompt);
|
|
109
|
-
console.log(` ✓ Wrote ${path.join(opencodeDir, 'rules.md')}`);
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
'copilot-cli': {
|
|
114
|
-
detect: () => commandExists('gh') && hasGhExtension('copilot'),
|
|
115
|
-
rulesFile: '.github/copilot-instructions.md',
|
|
116
|
-
description: 'GitHub Copilot CLI',
|
|
117
|
-
setup: projectRoot => {
|
|
118
|
-
const ghDir = path.join(projectRoot, '.github');
|
|
119
|
-
ensureDir(ghDir);
|
|
120
|
-
const systemPrompt = fs.readFileSync(
|
|
121
|
-
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
122
|
-
'utf8',
|
|
123
|
-
);
|
|
124
|
-
fs.writeFileSync(path.join(ghDir, 'copilot-instructions.md'), systemPrompt);
|
|
125
|
-
console.log(` ✓ Wrote ${path.join(ghDir, 'copilot-instructions.md')}`);
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
// --- Utility Functions ---
|
|
131
|
-
|
|
132
|
-
function commandExists(cmd) {
|
|
133
|
-
try {
|
|
134
|
-
const isWin = os.platform() === 'win32';
|
|
135
|
-
const check = isWin ? `where ${cmd}` : `which ${cmd}`;
|
|
136
|
-
execSync(check, { stdio: 'ignore' });
|
|
137
|
-
return true;
|
|
138
|
-
} catch {
|
|
139
|
-
return false;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
function hasGhExtension(ext) {
|
|
144
|
-
try {
|
|
145
|
-
const output = execSync('gh extension list', { encoding: 'utf8' });
|
|
146
|
-
return output.includes(ext);
|
|
147
|
-
} catch {
|
|
148
|
-
return false;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
function ensureDir(dirPath) {
|
|
153
|
-
if (!fs.existsSync(dirPath)) {
|
|
154
|
-
fs.mkdirSync(dirPath, { recursive: true });
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
function installMcpConfig(projectRoot, target) {
|
|
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
|
-
ensureDir(path.dirname(configPath));
|
|
169
|
-
|
|
170
|
-
let existing = {};
|
|
171
|
-
if (fs.existsSync(configPath)) {
|
|
172
|
-
try {
|
|
173
|
-
existing = JSON.parse(fs.readFileSync(configPath, 'utf8'));
|
|
174
|
-
} catch {
|
|
175
|
-
existing = {};
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
if (!existing || typeof existing !== 'object') {
|
|
180
|
-
existing = {};
|
|
181
|
-
}
|
|
182
|
-
if (!existing.mcpServers || typeof existing.mcpServers !== 'object') {
|
|
183
|
-
existing.mcpServers = {};
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
existing.mcpServers['tribunal-kit'] = {
|
|
187
|
-
command: 'node',
|
|
188
|
-
args: [path.join(__dirname, '..', 'bin', 'mcp-server.js')],
|
|
189
|
-
env: { NODE_ENV: 'production' },
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
fs.writeFileSync(configPath, JSON.stringify(existing, null, 2));
|
|
193
|
-
console.log(` ✓ MCP server registered at ${configPath}`);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
// --- Main ---
|
|
197
|
-
|
|
198
|
-
function main() {
|
|
199
|
-
const args = process.argv.slice(2);
|
|
200
|
-
const globalMode = args.includes('--global');
|
|
201
|
-
const targetAgent = args.find(a => !a.startsWith('-'));
|
|
202
|
-
const projectRoot = globalMode ? path.join(os.homedir(), '.tribunal-kit') : process.cwd();
|
|
203
|
-
|
|
204
|
-
console.log('');
|
|
205
|
-
console.log('┌─────────────────────────────────────────────┐');
|
|
206
|
-
console.log('│ 🔱 Tribunal Kit — Universal Agent Adapter │');
|
|
207
|
-
console.log('│ v9.2.
|
|
208
|
-
console.log('└─────────────────────────────────────────────┘');
|
|
209
|
-
console.log('');
|
|
210
|
-
|
|
211
|
-
if (globalMode) {
|
|
212
|
-
ensureDir(projectRoot);
|
|
213
|
-
console.log(`📁 Global mode: Installing to ${projectRoot}`);
|
|
214
|
-
} else {
|
|
215
|
-
console.log(`📁 Project mode: Installing to ${projectRoot}`);
|
|
216
|
-
}
|
|
217
|
-
console.log('');
|
|
218
|
-
|
|
219
|
-
let installed = 0;
|
|
220
|
-
let detected = 0;
|
|
221
|
-
|
|
222
|
-
for (const [name, adapter] of Object.entries(ADAPTERS)) {
|
|
223
|
-
if (targetAgent && name !== targetAgent) continue;
|
|
224
|
-
|
|
225
|
-
const isDetected = adapter.detect();
|
|
226
|
-
if (isDetected) detected++;
|
|
227
|
-
|
|
228
|
-
if (targetAgent || isDetected) {
|
|
229
|
-
console.log(`⚡ ${adapter.description} ${isDetected ? '(detected)' : '(manual)'}`);
|
|
230
|
-
try {
|
|
231
|
-
adapter.setup(projectRoot, globalMode);
|
|
232
|
-
installed++;
|
|
233
|
-
console.log(` ✅ Tribunal Kit configured for ${adapter.description}`);
|
|
234
|
-
} catch (err) {
|
|
235
|
-
console.error(` ❌ Failed: ${err.message}`);
|
|
236
|
-
}
|
|
237
|
-
console.log('');
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
if (installed === 0 && !targetAgent) {
|
|
242
|
-
console.log('⚠️ No CLI agents detected on this machine.');
|
|
243
|
-
console.log('');
|
|
244
|
-
console.log(' Supported agents:');
|
|
245
|
-
for (const [name, adapter] of Object.entries(ADAPTERS)) {
|
|
246
|
-
console.log(` • ${name.padEnd(15)} → ${adapter.description}`);
|
|
247
|
-
}
|
|
248
|
-
console.log('');
|
|
249
|
-
console.log(' Install one, then run this command again.');
|
|
250
|
-
console.log(' Or specify manually: node bin/adapter-install.js claude-code');
|
|
251
|
-
} else {
|
|
252
|
-
console.log('─────────────────────────────────────────────');
|
|
253
|
-
console.log(`✅ Configured ${installed} agent(s) (${detected} auto-detected)`);
|
|
254
|
-
console.log('');
|
|
255
|
-
console.log(' Next steps:');
|
|
256
|
-
console.log(' 1. Open your CLI agent normally');
|
|
257
|
-
console.log(' 2. The Tribunal rules are now enforced automatically');
|
|
258
|
-
console.log(' 3. Use /tribunal, /summon, /audit, /debug commands');
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
console.log('');
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
main();
|
|
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
|
+
const rootTarget = path.join(projectRoot, 'CLAUDE.md');
|
|
35
|
+
if (fs.existsSync(source) && !fs.existsSync(rootTarget)) {
|
|
36
|
+
fs.copyFileSync(source, rootTarget);
|
|
37
|
+
}
|
|
38
|
+
// Also install MCP server config
|
|
39
|
+
installMcpConfig(projectRoot, 'claude');
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
aider: {
|
|
44
|
+
detect: () => commandExists('aider'),
|
|
45
|
+
rulesFile: '.aider.conf.yml',
|
|
46
|
+
description: 'Aider CLI',
|
|
47
|
+
setup: projectRoot => {
|
|
48
|
+
const conventionsPath = path.join(projectRoot, 'CONVENTIONS.md');
|
|
49
|
+
const systemPrompt = fs.readFileSync(
|
|
50
|
+
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
51
|
+
'utf8',
|
|
52
|
+
);
|
|
53
|
+
fs.writeFileSync(conventionsPath, systemPrompt);
|
|
54
|
+
console.log(` ✓ Wrote ${conventionsPath}`);
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
codex: {
|
|
59
|
+
detect: () => commandExists('codex'),
|
|
60
|
+
rulesFile: 'AGENTS.md',
|
|
61
|
+
description: 'OpenAI Codex CLI',
|
|
62
|
+
setup: projectRoot => {
|
|
63
|
+
const agentsPath = path.join(projectRoot, 'AGENTS.md');
|
|
64
|
+
const rootAgentsSource = path.join(__dirname, '..', 'AGENTS.md');
|
|
65
|
+
let systemPrompt = '';
|
|
66
|
+
if (fs.existsSync(rootAgentsSource)) {
|
|
67
|
+
systemPrompt = fs.readFileSync(rootAgentsSource, 'utf8');
|
|
68
|
+
} else {
|
|
69
|
+
systemPrompt = fs.readFileSync(
|
|
70
|
+
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
71
|
+
'utf8',
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
fs.writeFileSync(agentsPath, systemPrompt);
|
|
75
|
+
console.log(` ✓ Wrote ${agentsPath}`);
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
'gemini-cli': {
|
|
80
|
+
detect: () => commandExists('gemini'),
|
|
81
|
+
rulesFile: '.gemini/rules/GEMINI.md',
|
|
82
|
+
description: 'Google Gemini CLI',
|
|
83
|
+
setup: projectRoot => {
|
|
84
|
+
const geminiDir = path.join(projectRoot, '.gemini', 'rules');
|
|
85
|
+
ensureDir(geminiDir);
|
|
86
|
+
const systemPrompt = fs.readFileSync(
|
|
87
|
+
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
88
|
+
'utf8',
|
|
89
|
+
);
|
|
90
|
+
fs.writeFileSync(path.join(geminiDir, 'GEMINI.md'), systemPrompt);
|
|
91
|
+
console.log(` ✓ Wrote ${path.join(geminiDir, 'GEMINI.md')}`);
|
|
92
|
+
// Also install MCP config
|
|
93
|
+
installMcpConfig(projectRoot, 'gemini');
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
opencode: {
|
|
98
|
+
detect: () => commandExists('opencode'),
|
|
99
|
+
rulesFile: '.opencode/rules.md',
|
|
100
|
+
description: 'OpenCode CLI',
|
|
101
|
+
setup: projectRoot => {
|
|
102
|
+
const opencodeDir = path.join(projectRoot, '.opencode');
|
|
103
|
+
ensureDir(opencodeDir);
|
|
104
|
+
const systemPrompt = fs.readFileSync(
|
|
105
|
+
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
106
|
+
'utf8',
|
|
107
|
+
);
|
|
108
|
+
fs.writeFileSync(path.join(opencodeDir, 'rules.md'), systemPrompt);
|
|
109
|
+
console.log(` ✓ Wrote ${path.join(opencodeDir, 'rules.md')}`);
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
'copilot-cli': {
|
|
114
|
+
detect: () => commandExists('gh') && hasGhExtension('copilot'),
|
|
115
|
+
rulesFile: '.github/copilot-instructions.md',
|
|
116
|
+
description: 'GitHub Copilot CLI',
|
|
117
|
+
setup: projectRoot => {
|
|
118
|
+
const ghDir = path.join(projectRoot, '.github');
|
|
119
|
+
ensureDir(ghDir);
|
|
120
|
+
const systemPrompt = fs.readFileSync(
|
|
121
|
+
path.join(__dirname, '..', '.agent', 'config', 'system-prompt.md'),
|
|
122
|
+
'utf8',
|
|
123
|
+
);
|
|
124
|
+
fs.writeFileSync(path.join(ghDir, 'copilot-instructions.md'), systemPrompt);
|
|
125
|
+
console.log(` ✓ Wrote ${path.join(ghDir, 'copilot-instructions.md')}`);
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
// --- Utility Functions ---
|
|
131
|
+
|
|
132
|
+
function commandExists(cmd) {
|
|
133
|
+
try {
|
|
134
|
+
const isWin = os.platform() === 'win32';
|
|
135
|
+
const check = isWin ? `where ${cmd}` : `which ${cmd}`;
|
|
136
|
+
execSync(check, { stdio: 'ignore' });
|
|
137
|
+
return true;
|
|
138
|
+
} catch {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function hasGhExtension(ext) {
|
|
144
|
+
try {
|
|
145
|
+
const output = execSync('gh extension list', { encoding: 'utf8' });
|
|
146
|
+
return output.includes(ext);
|
|
147
|
+
} catch {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function ensureDir(dirPath) {
|
|
153
|
+
if (!fs.existsSync(dirPath)) {
|
|
154
|
+
fs.mkdirSync(dirPath, { recursive: true });
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function installMcpConfig(projectRoot, target) {
|
|
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
|
+
ensureDir(path.dirname(configPath));
|
|
169
|
+
|
|
170
|
+
let existing = {};
|
|
171
|
+
if (fs.existsSync(configPath)) {
|
|
172
|
+
try {
|
|
173
|
+
existing = JSON.parse(fs.readFileSync(configPath, 'utf8'));
|
|
174
|
+
} catch {
|
|
175
|
+
existing = {};
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (!existing || typeof existing !== 'object') {
|
|
180
|
+
existing = {};
|
|
181
|
+
}
|
|
182
|
+
if (!existing.mcpServers || typeof existing.mcpServers !== 'object') {
|
|
183
|
+
existing.mcpServers = {};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
existing.mcpServers['tribunal-kit'] = {
|
|
187
|
+
command: 'node',
|
|
188
|
+
args: [path.join(__dirname, '..', 'bin', 'mcp-server.js')],
|
|
189
|
+
env: { NODE_ENV: 'production' },
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
fs.writeFileSync(configPath, JSON.stringify(existing, null, 2));
|
|
193
|
+
console.log(` ✓ MCP server registered at ${configPath}`);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// --- Main ---
|
|
197
|
+
|
|
198
|
+
function main() {
|
|
199
|
+
const args = process.argv.slice(2);
|
|
200
|
+
const globalMode = args.includes('--global');
|
|
201
|
+
const targetAgent = args.find(a => !a.startsWith('-'));
|
|
202
|
+
const projectRoot = globalMode ? path.join(os.homedir(), '.tribunal-kit') : process.cwd();
|
|
203
|
+
|
|
204
|
+
console.log('');
|
|
205
|
+
console.log('┌─────────────────────────────────────────────┐');
|
|
206
|
+
console.log('│ 🔱 Tribunal Kit — Universal Agent Adapter │');
|
|
207
|
+
console.log('│ v9.2.3 · 52 specialists · 185 skills │');
|
|
208
|
+
console.log('└─────────────────────────────────────────────┘');
|
|
209
|
+
console.log('');
|
|
210
|
+
|
|
211
|
+
if (globalMode) {
|
|
212
|
+
ensureDir(projectRoot);
|
|
213
|
+
console.log(`📁 Global mode: Installing to ${projectRoot}`);
|
|
214
|
+
} else {
|
|
215
|
+
console.log(`📁 Project mode: Installing to ${projectRoot}`);
|
|
216
|
+
}
|
|
217
|
+
console.log('');
|
|
218
|
+
|
|
219
|
+
let installed = 0;
|
|
220
|
+
let detected = 0;
|
|
221
|
+
|
|
222
|
+
for (const [name, adapter] of Object.entries(ADAPTERS)) {
|
|
223
|
+
if (targetAgent && name !== targetAgent) continue;
|
|
224
|
+
|
|
225
|
+
const isDetected = adapter.detect();
|
|
226
|
+
if (isDetected) detected++;
|
|
227
|
+
|
|
228
|
+
if (targetAgent || isDetected) {
|
|
229
|
+
console.log(`⚡ ${adapter.description} ${isDetected ? '(detected)' : '(manual)'}`);
|
|
230
|
+
try {
|
|
231
|
+
adapter.setup(projectRoot, globalMode);
|
|
232
|
+
installed++;
|
|
233
|
+
console.log(` ✅ Tribunal Kit configured for ${adapter.description}`);
|
|
234
|
+
} catch (err) {
|
|
235
|
+
console.error(` ❌ Failed: ${err.message}`);
|
|
236
|
+
}
|
|
237
|
+
console.log('');
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
if (installed === 0 && !targetAgent) {
|
|
242
|
+
console.log('⚠️ No CLI agents detected on this machine.');
|
|
243
|
+
console.log('');
|
|
244
|
+
console.log(' Supported agents:');
|
|
245
|
+
for (const [name, adapter] of Object.entries(ADAPTERS)) {
|
|
246
|
+
console.log(` • ${name.padEnd(15)} → ${adapter.description}`);
|
|
247
|
+
}
|
|
248
|
+
console.log('');
|
|
249
|
+
console.log(' Install one, then run this command again.');
|
|
250
|
+
console.log(' Or specify manually: node bin/adapter-install.js claude-code');
|
|
251
|
+
} else {
|
|
252
|
+
console.log('─────────────────────────────────────────────');
|
|
253
|
+
console.log(`✅ Configured ${installed} agent(s) (${detected} auto-detected)`);
|
|
254
|
+
console.log('');
|
|
255
|
+
console.log(' Next steps:');
|
|
256
|
+
console.log(' 1. Open your CLI agent normally');
|
|
257
|
+
console.log(' 2. The Tribunal rules are now enforced automatically');
|
|
258
|
+
console.log(' 3. Use /tribunal, /summon, /audit, /debug commands');
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
console.log('');
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
main();
|