feat: translate plugin hooks for OpenCode
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
- Công nghệ
- dart, flutter, javascript, typescript
- 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ả
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 -
doctoranduninstallcover 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của VeryGoodOpenSource/vgv_ai_cli
-
feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
VeryGoodOpenSource/vgv_ai_cli#142 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
VeryGoodOpenSource/vgv_ai_cli#141 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
VeryGoodOpenSource/vgv_ai_cli#140 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
VeryGoodOpenSource/vgv_ai_cli#139 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
VeryGoodOpenSource/vgv_ai_cli#138 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của VeryGoodOpenSource/vgv_ai_cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Vinillian/book_tracker#208 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 2 ngày
-
CI: a superseded Quality run keeps its test shards running and the new head waits behind themĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fdittgen-png/deskilo#3753 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày