Initial commit: Flutter 无书应用项目
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# planning-with-files: Pre-tool-use hook for Cursor (PowerShell)
|
||||
# Reads the first 30 lines of task_plan.md to keep goals in context.
|
||||
# Returns {"decision": "allow"} — this hook never blocks tools.
|
||||
|
||||
$PlanFile = "task_plan.md"
|
||||
|
||||
if (Test-Path $PlanFile) {
|
||||
Get-Content $PlanFile -TotalCount 30 | Write-Host
|
||||
}
|
||||
|
||||
Write-Output '{"decision": "allow"}'
|
||||
exit 0
|
||||
Reference in New Issue
Block a user