settings.local.json 1.3 KB

12345678910111213
  1. {
  2. "permissions": {
  3. "allow": [
  4. "Bash(curl -sS -m 8 -o /dev/null -w \"snapshot HTTP %{http_code} time=%{time_total}s size=%{size_download}\\\\n\" http://localhost:9999/api/dashboard/snapshot)",
  5. "Bash(curl -sS -m 8 -o /dev/null -w \"requirement HTTP %{http_code} time=%{time_total}s size=%{size_download}\\\\n\" \"http://localhost:9999/api/requirement?limit=1000&offset=0\")",
  6. "Bash(curl -sS -m 8 -o /dev/null -w \"tool HTTP %{http_code} time=%{time_total}s size=%{size_download}\\\\n\" \"http://localhost:9999/api/tool?limit=1000&offset=0\")",
  7. "Bash(curl -sS -m 8 http://localhost:9999/api/dashboard/snapshot)",
  8. "Bash(python3 -c \"import json,sys; d=json.load\\(sys.stdin\\); print\\('keys:', list\\(d.keys\\(\\)\\)\\); print\\('tree type:', type\\(d.get\\('tree'\\)\\).__name__\\); t=d.get\\('tree'\\); print\\('tree.name:', \\(t or {}\\).get\\('name'\\) if isinstance\\(t,dict\\) else None\\); print\\('reqs:', len\\(d.get\\('reqs'\\) or []\\)\\); print\\('caps:', len\\(d.get\\('caps'\\) or []\\)\\); print\\('tools:', len\\(d.get\\('tools'\\) or []\\)\\); print\\('procs:', len\\(d.get\\('procs'\\) or []\\)\\); print\\('know:', len\\(d.get\\('know'\\) or []\\)\\)\")",
  9. "Bash(python3 *)",
  10. "Bash(curl -sS -X POST -m 5 http://localhost:9999/api/dashboard/invalidate)"
  11. ]
  12. }
  13. }