mirror of
https://github.com/flutter/agent-plugins.git
synced 2026-09-14 16:19:33 +08:00
42 lines
858 B
JSON
42 lines
858 B
JSON
{
|
|
"dart-format": {
|
|
"Stop": [
|
|
{
|
|
"type": "command",
|
|
"command": "../tool/dart_hooks/bin/agent_dart_format.dart --source hook --log",
|
|
"timeout": 30
|
|
}
|
|
]
|
|
},
|
|
"dart-analyze": {
|
|
"Stop": [
|
|
{
|
|
"type": "command",
|
|
"command": "../tool/dart_hooks/bin/agent_dart_analyze.dart --source hook --log",
|
|
"timeout": 90
|
|
}
|
|
]
|
|
},
|
|
"flutter-app-runtime": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "write_to_file|replace_file_content|multi_replace_file_content",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "hooks/flag-dart-edit",
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PreInvocation": [
|
|
{
|
|
"type": "command",
|
|
"command": "hooks/flutter-app-runtime",
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
}
|