rtk-ai/rtk

Support for Flutter & Dart commands (flutter pub, flutter analyze, dart analyze)

Open

#1,098 创建于 2026年4月9日

在 GitHub 查看
 (6 评论) (11 反应) (0 负责人)Rust (2,914 fork)batch import
area:clieffort-mediumenhancementhelp wantedpriority:medium

仓库指标

Star
 (48,085 star)
PR 合并指标
 (平均合并 11天 1小时) (30 天内合并 45 个 PR)

描述

Feature Request: Flutter & Dart Support

Context

I'm using RTK extensively and ran rtk discover, which showed significant missed savings from Flutter and Dart commands.

Unhandled Commands

  • flutter pub (30x)
  • flutter analyze (30x)
  • dart analyze (5x)

Example usage:

  • flutter pub get 2>&1
  • flutter analyze --no-pub 2>&1
  • dart analyze lib/... 2>&1

Problem

These commands generate large outputs, especially:

  • flutter analyze → very verbose lint + diagnostics
  • dart analyze → similar static analysis output

Currently RTK does not optimize or filter these outputs, leading to unnecessary token usage.

Suggested Solution

Add support similar to existing commands like rtk grep / rtk read, for example:

  • rtk flutter analyze

    • Summarize issues (errors, warnings, info)
    • Group by file
    • Collapse repeated diagnostics
    • Show counts + top issues
  • rtk flutter pub

    • Filter install logs
    • Highlight only:
      • errors
      • dependency conflicts
      • version changes
  • rtk dart analyze

    • Same approach as flutter analyze

Expected Benefit

From rtk discover: ~65 executions → significant token savings (flutter analyze alone is very heavy)

Additional Notes

Flutter/Dart workflows are common, so this could benefit a large number of developers using RTK.

Happy to help test or provide sample outputs if needed.

贡献者指南