feat: translate plugin hooks for OpenCode

Đang mở
#114 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
22/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
developer-experience

Hướng nghiên cứu

Start with the OpencodeTranslator class, where hooks() currently returns null, and the note that users see when hooks are skipped. Then read the hook scripts shipped by the VGV plugins to see what PreToolUse and PostToolUse expect as input. The work is to design and install a small OpenCode plugin that calls those scripts, and to extend doctor and uninstall to cover it. Done means the hooks run on OpenCode after vgv_ai install and the note is gone.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

feature

Description

vgv_ai install configures OpenCode with the skills, agents and MCP servers, but not the hooks. OpencodeTranslator leaves hooks() null because OpenCode runs hooks as JavaScript/TypeScript plugins (docs), not as shell commands, so users only get a note.

The VGV plugins rely on hooks for enforcement, for example vgv-ai-flutter-plugin runs dart analyze/dart format after edits and blocks flutter test in the shell in favor of the MCP tool. On OpenCode none of that runs.

Add hook support for OpenCode, e.g. by installing a small OpenCode plugin that maps the plugins' PreToolUse/PostToolUse hooks onto OpenCode's plugin events and runs the existing hook scripts.

Requirements

  • OpenCode runs the VGV plugins' hook scripts after vgv_ai install
  • doctor and uninstall cover the installed OpenCode plugin
  • The "no hooks" note is removed for OpenCode

Additional Context

Moved from VeryGoodOpenSource/vgv-ai-flutter-plugin#127.

Ngôn ngữ chính
Dart
Star
3
Fork
0
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
40

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của VeryGoodOpenSource/vgv_ai_cli

Tất cả issue của VeryGoodOpenSource/vgv_ai_cli

Issue tương tự

Thêm issue về Dart

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.