36 lines
1.6 KiB
JSON
36 lines
1.6 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"WebFetch(domain:portless.sh)",
|
|
"WebFetch(domain:github.com)",
|
|
"Bash(pnpm -v)",
|
|
"Bash(npm -v)",
|
|
"Bash(docker -v)",
|
|
"Bash(docker compose *)",
|
|
"Bash(pnpm config *)",
|
|
"Bash(pnpm install *)",
|
|
"Bash(echo \"EXIT=$?\")",
|
|
"Bash(pnpm --filter cms generate:importmap)",
|
|
"Bash(pnpm --filter cms generate:types)",
|
|
"Bash(pnpm --filter web typecheck)",
|
|
"Bash(pnpm --filter web build)",
|
|
"Bash(pnpm --filter cms build)",
|
|
"Bash(PORT=3000 pnpm --filter cms dev)",
|
|
"Bash(curl -s --retry-connrefused --retry 40 --retry-delay 2 -o /dev/null -w \"connect ok, http=%{http_code}\\\\n\" \"http://localhost:3000/api/posts\")",
|
|
"Bash(curl -s \"http://localhost:3000/api/posts\")",
|
|
"Bash(docker exec *)",
|
|
"Bash(python3 -c \"import sys,json;d=json.load\\(sys.stdin\\);print\\('totalDocs',d['totalDocs']\\);[print\\('-',p['title'],'/',p['slug']\\) for p in d['docs']]\")",
|
|
"Bash(PORT=4321 pnpm --filter web dev:plain)",
|
|
"Bash(echo \"started web dev \\(pid $!\\)\")",
|
|
"Bash(curl -s --retry-connrefused --retry 30 --retry-delay 1 -o /dev/null -w \"home http=%{http_code}\\\\n\" \"http://localhost:4321/\")",
|
|
"Bash(curl -s \"http://localhost:4321/\")",
|
|
"Bash(curl -s \"http://localhost:4321/posts/hello-from-payload\")",
|
|
"Bash(pkill -f \"next dev\")",
|
|
"Bash(pkill -f \"astro dev\")",
|
|
"Bash(pkill -f \"next-server\")",
|
|
"Bash(pnpm exec *)",
|
|
"Bash(python3 -c \"import sys,json;d=json.load\\(sys.stdin\\);[print\\('-',t['taskId']\\) for t in d['tasks']]\")"
|
|
]
|
|
}
|
|
}
|