text
stringlengths
3
8.33k
repo
stringclasses
52 values
path
stringlengths
6
141
language
stringclasses
35 values
sha
stringlengths
64
64
chunk_index
int32
0
273
n_tokens
int32
1
896
immediately to repository health status. ### Repo Card | Element | Spec | |---------|------| | Container | shadcn `Card` with `hover:border-primary/30 transition-colors cursor-pointer` | | Repo name | `text-sm font-semibold` truncated with `truncate` | | Owner | `text-xs text-muted-foreground` above repo name | | Sco...
clawguard
.planning/phases/05-chat-config-dashboard/05-UI-SPEC.md
Markdown
b87124104958e22b2681000eacec4831bce9f4985216a194a50d3d15f5911b31
2
896
separator, current page not linked - **Focal point**: Score column as the horizontal scan line. The grade-colored badges form a vertical stripe of chromatic color in the third column, giving users a fast vertical scan of audit health across all PRs. ### Auth / Sign-In No dedicated sign-in page. Use a modal or redirec...
clawguard
.planning/phases/05-chat-config-dashboard/05-UI-SPEC.md
Markdown
56375023d02944ee84ef4bca90893af01b731f970ee1be6fa401c4bd048091c7
3
896
--|-----------------| | Dashboard overview | 6x Skeleton cards in grid (same dimensions as RepoCard) | | Per-repo detail | Skeleton table with 5 rows, matching column widths | | Nav avatar | Skeleton circle 32px | Use Next.js `loading.tsx` files for route-level loading states (matches Phase 4 pattern in `app/report/[o...
clawguard
.planning/phases/05-chat-config-dashboard/05-UI-SPEC.md
Markdown
45d0df5751a46d6a42e26de8f37a920b4d20112079f046b17964857d33ffe97e
4
896
. | | >= 1024px (desktop) | Repo card grid: 3 columns. Table: full width. Max container: `max-w-6xl`. | Source: Claude's discretion (CONTEXT.md). Matches Phase 4 `max-w-6xl` container width. --- ## Registry Safety | Registry | Blocks Used | Safety Gate | |----------|-------------|-------------| | shadcn official | ...
clawguard
.planning/phases/05-chat-config-dashboard/05-UI-SPEC.md
Markdown
dabe651d68c785bac4c85392b5166ec19dae6fb8c1bff00a38b87a2d77c891ea
5
349
--- phase: 5 slug: chat-config-dashboard status: draft nyquist_compliant: false wave_0_complete: false created: 2026-03-28 --- # Phase 5 — Validation Strategy > Per-phase validation contract for feedback sampling during execution. --- ## Test Infrastructure | Property | Value | |----------|-------| | **Framework**...
clawguard
.planning/phases/05-chat-config-dashboard/05-VALIDATION.md
Markdown
149029f5d1179ee30e50b0e0828de78caa79f90a7825d7f7be819ddbc398a106
0
896
------------------| | GitHub OAuth login flow | DASH-01 | Requires browser + GitHub OAuth callback | 1. Navigate to /dashboard 2. Click "Sign in with GitHub" 3. Authorize 4. Verify redirect to dashboard | | PR thread follow-up | CHAT-01 | Requires GitHub webhook + PR comment | 1. Comment @clawguard on PR 2. Wait for au...
clawguard
.planning/phases/05-chat-config-dashboard/05-VALIDATION.md
Markdown
ee19f65cc7d8cf53df9d4940819b05057a593badf338324bdcdd99af634a9466
1
186
# Architecture Research **Domain:** AI-powered GitHub PR security review agent (single Next.js deployment) **Researched:** 2026-03-27 **Confidence:** MEDIUM-HIGH ## System Overview ``` GitHub PR Thread (@mention / reply) | ...
clawguard
.planning/research/ARCHITECTURE.md
Markdown
b2cfb48201aa1def6f22e73e44600be65f1124e1590083af7708f74f44c04b19
0
896
────────────────────────────┘ │ │ ┌────────────┴───┐ ┌────────┴──────────┐ │ Vercel Sandbox │ │ Upstash Redis │ │ (microVM) │ │ (state store) │ │ - git clone │ │ - audit JSON │ │ - code analysi...
clawguard
.planning/research/ARCHITECTURE.md
Markdown
e45ef5582ad9585bf1ee913c8efd370f551d43c8748fe44403887fe6e231f8cd
1
896
[...nextauth]/ │ └── route.ts # NextAuth.js GitHub OAuth ├── report/ │ └── [owner]/ │ └── [repo]/ │ └── [pr]/ │ └── page.tsx # Public interactive report (SSR) ├── dashboard/ │ ├── layout.tsx # Auth-protected layout │ ├── page.tsx ...
clawguard
.planning/research/ARCHITECTURE.md
Markdown
4e20660a2ec3cd67b7ed0d9f81fd67ade104be8afa489adf5e2ac8f52b04d99a
2
896
What:** Accept webhook POST, return 200 immediately, run long-running AI work in background via Next.js `after()`. **When to use:** Every webhook handler. The GitHub webhook timeout is 10 seconds; your analysis takes 30-120 seconds. **Trade-offs:** Simple and serverless-native. Bounded by `maxDuration` (default 300s, m...
clawguard
.planning/research/ARCHITECTURE.md
Markdown
6e4d87dc894d066bd5efc08e4520d974e1a2145c2a1c1dc4e652af148af640ec
3
896
*When to use:** Every audit invocation. Never reuse sandboxes across different PRs. **Trade-offs:** Clean isolation and security (untrusted code never touches your infra). Cold start is fast (milliseconds per Vercel docs). Costs scale with usage. Sandbox timeout defaults to 5 min, extendable to 45 min (Hobby) or 5 hour...
clawguard
.planning/research/ARCHITECTURE.md
Markdown
77b16b53368ea955ae494472bd878cc3db30f0198b16c56923c661577357e38e
4
896
owner}/{repo}/pr/{number}`, and (2) backs the Chat SDK state adapter for thread subscriptions and conversation context. **When to use:** Always. Both the report pages and the dashboard read from Redis. The Chat SDK requires a state adapter for `thread.subscribe()` to persist across serverless invocations. **Trade-offs:...
clawguard
.planning/research/ARCHITECTURE.md
Markdown
efd500b08ee7b52bfff9107c960896a2aa891577cdf788b4a517037ca09647cd
5
896
─┐ │ Phase 1: Code Quality Review │ │ Agent reads changed files, checks patterns│ │ Output: code quality findings JSON │ ├─────────────────────────────────────────────┤ │ Phase 2: Vulnerability Scan │ │ Agent runs security checks, reads deps │ │...
clawguard
.planning/research/ARCHITECTURE.md
Markdown
5d98fb752cd213e0d8b5405d5438606438dbc8b2aeb01ad46998c8bd13711cfc
6
896
GFM Markdown with tables (native table support on GitHub). ## Scaling Considerations | Scale | Architecture Adjustments | |-------|--------------------------| | Hackathon (1-10 audits) | Current design is perfect. Single deployment, Redis, no queue needed. Sandbox cold starts are fast enough. | | Small team (10-100 a...
clawguard
.planning/research/ARCHITECTURE.md
Markdown
1707c7a7918a2a1befa5884d4bbe586e4043ae7970c66bee21dcbe774d86e893
7
896
() => p) })`. ### Anti-Pattern 5: Calling v0 SDK Synchronously in the Audit Pipeline **What people do:** Block the audit pipeline waiting for v0 to generate report components before posting the summary card. **Why it's wrong:** v0 generation can be slow and unreliable. It adds minutes to time-to-first-response. The u...
clawguard
.planning/research/ARCHITECTURE.md
Markdown
bd8333598c80f4c57b3ee966ebbfb7b6510530abbc71e60d36f4f61014d4f816
8
896
{ auditResult }))`. | ## Build Order Dependencies The following build order reflects component dependencies. A component cannot be meaningfully built until its dependencies exist. ``` Phase 1: Foundation (no dependencies) ├── lib/redis.ts (Redis client + key schema) ├── lib/auth.ts (NextAuth.js co...
clawguard
.planning/research/ARCHITECTURE.md
Markdown
43f52feba980e70e9d18d7576a18bfbdd9a27ceea9b74dda4fcfe892f9a6053b
9
891
# CodeRabbit-style capabilities vs local stack ## Product surface (high level) CodeRabbit combines PR review with static analysis, often including AST-aware rules, dependency/context hints, and configurable review focus. ## What we can replicate locally | Capability | ClawGuard approach | |------------|------------...
clawguard
.planning/research/CODERABBIT.md
Markdown
774fcf9e60b93c26c6119fd46adbc8517775560beb50a6802f83c996ab0d7776
0
460
# Feature Research **Domain:** AI-powered GitHub PR security review agents **Researched:** 2026-03-27 **Confidence:** MEDIUM-HIGH (based on competitor product pages, docs, and established training data for well-known tools) ## Feature Landscape ### Table Stakes (Users Expect These) Features that every AI PR securit...
clawguard
.planning/research/FEATURES.md
Markdown
1f092ae4401cee8690959901864a53d67b0773840d62dc3a8863b20478cf4c84
0
896
be demo-reliable. Vercel Sandbox is critical for safe execution. | | **Interactive web report with visualizations** | No competitor offers a standalone, interactive security report page. CodeRabbit posts markdown comments. Snyk shows findings in their dashboard. SonarCloud has a web dashboard but it is a full SaaS prod...
clawguard
.planning/research/FEATURES.md
Markdown
9229170166e6c285eaba0ac8065c391c84244adb10e80f0f409b054998b64f53
1
896
| Why Problematic | Alternative | |---------|---------------|-----------------|-------------| | **Traditional SAST engine / custom scanner** | "Real" security tools have their own scanners | Building a scanner takes years. Snyk has 25M+ data flow cases. Semgrep has thousands of rules. You cannot compete on detection en...
clawguard
.planning/research/FEATURES.md
Markdown
29f02b37a47027cc4ca8f8d7405ce534d0aea5a7cd0e9b473d4cbec3ddba668f
2
896
v [Interactive Web Report] [Report Link in PR] | v [Compliance Mapping Table] [Auto-Fix Loop] --requires--> [Structured JSON Output (findings)] +--requires--> [Vercel Sandbox (for fix generation + validation)] +--require...
clawguard
.planning/research/FEATURES.md
Markdown
5d640c09991e83bd3ac8cc6eb9f774c11683af77579b2c033caf6f3aca1c8230
3
896
Report)** -- Interactive PR experience ### Future Consideration (v2+ -- post-hackathon) Features to explicitly defer. - [ ] **Dashboard with GitHub OAuth** -- Real product signal but not demo-critical; can be shown as static mockup if needed - [ ] **Per-repo config and custom policies** -- Nice for "looks like a rea...
clawguard
.planning/research/FEATURES.md
Markdown
f0ecb8a8931dff8d76c866e7389aeb47a9aee7a6231e792372a2b7dc45698686
4
896
| Yes | Yes | Yes | Yes | Yes (A-E ratings) | Yes | Yes (0-100 score + A-F grade) | | CWE/OWASP mapping | Partial | Yes (CWE) | Yes (CWE/OWASP) | Yes (CWE) | Partial | Partial | Yes (CWE + OWASP Top 10) | | Auto-fix | 1-click + "Fix with AI" | Agent Fix (~80%) | Suggestions only | Copilot Autofix (suggestions) | No | A...
clawguard
.planning/research/FEATURES.md
Markdown
093c2ef47a048eaccca92cb2df35c253b90894bdb5c6eacee93a0e639b537b6a
5
896
27 - OWASP ASVS project page (owasp.org) -- fetched 2026-03-27 - Training data knowledge for established product features (SonarCloud quality gates, Semgrep rule DSL, Snyk vulnerability DB) -- MEDIUM confidence, well-established products with stable feature sets --- *Feature research for: AI-powered GitHub PR security...
clawguard
.planning/research/FEATURES.md
Markdown
e471867e502dc7395545acda7eb518566c98e6479b3f395dd16d0634f6bf46a8
6
79
# hackingBuddyGPT integration notes ## What it is [hackingBuddyGPT](https://github.com/ipa-lab/hackingBuddyGPT) is a research-oriented framework for LLM-driven security testing. It typically combines: - **Use-case / scenario definitions** — discrete tasks (e.g. privilege escalation, credential discovery) composed in...
clawguard
.planning/research/HACKINGBUDDYGPT.md
Markdown
0cfe88fe24be7c209107ce668fee2b1cdae5ebd53689d2beac568afbca602fcf
0
431
# Pitfalls Research **Domain:** AI-powered GitHub PR security review agent (hackathon build) **Researched:** 2026-03-27 **Confidence:** HIGH (verified against Vercel, GitHub, AI SDK official docs) ## Critical Pitfalls ### Pitfall 1: Serverless Function Timeout vs. Multi-Step Agent Execution **What goes wrong:** The...
clawguard
.planning/research/PITFALLS.md
Markdown
71ba69d6459437eb57f3bec2bcffe9df0c4ae4ce763718db3bc5259217923390
0
896
`.optional()`). 5. Set reasonable `maxTokens` per generation call (4000-6000) to avoid truncation while keeping responses focused. **Warning signs:** - Zod parse errors in function logs - Findings array is empty when it should not be - Scores return as `null` or `undefined` in the report - Inconsistent field names bet...
clawguard
.planning/research/PITFALLS.md
Markdown
0cb1569c5e49812f9d71226d5089b903d4a8c655a18dbe84aabcdde38ac691b7
1
896
.** Create a sandbox snapshot with the demo repo already cloned and dependencies installed. Restoring from a snapshot skips the clone step entirely. 2. **Pre-warm before the demo.** 5 minutes before presenting, trigger a dummy audit to ensure sandbox instances are warm and any cached state is fresh. 3. **Show intermedi...
clawguard
.planning/research/PITFALLS.md
Markdown
c422ae36137fedbfb3e5d4a7d58fcfb3197f2ad0960b3f7561155c638fc2133d
2
896
is slow (see Pitfall 1), GitHub retries the delivery, causing duplicate audit runs that waste API quota, confuse the PR thread with duplicate comments, and potentially create conflicting auto-fix commits. (2) If you skip webhook signature verification, anyone who discovers your webhook URL can trigger arbitrary audits,...
clawguard
.planning/research/PITFALLS.md
Markdown
11e2140e65bd8c444552e218bb558cf361dca581930539a04aaf9290b28e0d12
3
896
30 days with explicit archival. 3. **Truncate code snippets.** Limit code context to 20 lines around the vulnerability. Do not store entire files. 4. **Compress large values.** Use `zlib.gzip`/`zlib.gunzip` on the report JSON before storing. Reduces size by 60-80% for JSON text. 5. **Limit conversation history.** Keep ...
clawguard
.planning/research/PITFALLS.md
Markdown
905354d4b982c843b2abfc71b04a96260fa85cc5fb18aa59a378e29d5294801d
4
896
`, (b) streaming responses via the Chat SDK may conflict with how Next.js handles response flushing, (c) JSX card rendering (for PR summary cards) may need a different setup in the Next.js context, (d) the adapter's event routing may not map cleanly to a single `POST` route handler. **Why it happens:** The Chat SDK is...
clawguard
.planning/research/PITFALLS.md
Markdown
621e103a57a1085789cf3d7d84004e9fd0ff6b45ed2896c3bc8ce29d77ca8f96
5
896
* with the actual deployment, not localhost. Identify and fix each failure point. 6. **Set up the demo repo correctly:** - 3 PRs with planted vulnerabilities of varying severity - Known expected findings for each PR (validate during rehearsal) - Small PRs (< 200 lines diff) to keep analysis fast **Warning sig...
clawguard
.planning/research/PITFALLS.md
Markdown
e61efeea0b2573a82a234bc7e50ffc25983c2e2f3ea9c29384f7028f7eacead3
6
896
parallel promises; compress values >100KB; use split keys so summary views do not load full report data | | AI SDK (generateText) | Not handling `AI_NoObjectGeneratedError` | Wrap structured output calls in try/catch; inspect `error.text` for manual JSON extraction; implement one-retry fallback | | AI SDK (tools) | Not...
clawguard
.planning/research/PITFALLS.md
Markdown
f40db0afcf4387d82293c86bb4ae1ef6b38be150b608de769eaed71f9cf07fa4
7
896
UX Pitfalls | Pitfall | User Impact | Better Approach | |---------|-------------|-----------------| | No visible progress for 30+ seconds after @mention | User thinks bot is broken; may @mention again (causing duplicates) | Post "Analyzing your PR..." comment within 3 seconds; update with phase progress | | Posting on...
clawguard
.planning/research/PITFALLS.md
Markdown
780d9a8861f056896dc25353e5c209a5c284c9bdbd3917e33259ce248ad05e06
8
896
" with whatever was parsed. For demo: fall back to cached results | | Auto-fix breaks the build | MEDIUM | Post a comment explaining the fix attempt failed validation. Do NOT commit broken code. For demo: show the "proposed fix" diff in the PR comment without committing | | Sandbox failure / cold start timeout | LOW | ...
clawguard
.planning/research/PITFALLS.md
Markdown
af39c6183bca8ea8b14972e7acf269b4936a242c3b0be19df0639d7feec81327
9
896
dev/docs/ai-sdk-core/generating-structured-data (Verified 2026-03-27 -- AI_NoObjectGeneratedError, Output.object, Zod schemas, .describe()) - AI SDK Agents and Tools: https://ai-sdk.dev/docs/ai-sdk-core/agents (Verified 2026-03-27 -- stopWhen, stepCountIs, onStepFinish) - AI SDK Tool Calling: https://ai-sdk.dev/docs/ai...
clawguard
.planning/research/PITFALLS.md
Markdown
17556469c556bf8147a382f9e5cf40e1e35a8af91282648af53b6c705387d765
10
478
# Skills.sh and security skills ## What Skills.sh is Skills.sh aggregates **portable skill/instruction packs** (often Markdown or structured prompts) for agents. Content varies by author; there is no single standard library for “OWASP” — discovery is manual. ## How ClawGuard maps this We do not vendor Skills.sh con...
clawguard
.planning/research/SKILLS_SH.md
Markdown
bf60caa4a68b2d5be6607a50563e8084b013effadd3595ad66d4190b80c9d832
0
308
# Technology Stack **Project:** ClawGuard - AI-Powered GitHub PR Security Review Agent **Researched:** 2026-03-27 **Overall Confidence:** HIGH (all packages verified via npm registry; official docs consulted for key APIs) ## Recommended Stack ### Core Framework | Technology | Version | Purpose | Why | |------------...
clawguard
.planning/research/STACK.md
Markdown
c65556c8d6339fdb74ab5390d9dac84998dcb607ba24a7a0b8eed8b7a9cc7b6b
0
896
Vercel OIDC token. 5-minute default timeout (extendable to 45min on Hobby, 5hr on Pro). | ### Report Generation | Technology | Version | Purpose | Why | |------------|---------|---------|-----| | v0-sdk | 0.16.4 | v0 Platform API client | Generates/refines report UI components from templates via `v0.chats.init({ type...
clawguard
.planning/research/STACK.md
Markdown
069388d62ad347ecb3d93712adccefd31f01a85da008aacf8d8adc3286fa8b78
1
896
## Data Storage | Technology | Version | Purpose | Why | |------------|---------|---------|-----| | @upstash/redis | 1.37.0 | Audit result storage, dashboard data | HTTP REST-based Redis client. Serverless-optimized (no TCP connection management). Stores audit JSON keyed by `{owner}/{repo}/pr/{number}`. | ### GitHub ...
clawguard
.planning/research/STACK.md
Markdown
b67a859d1d9bf0280315b0836d5af33d84f5a447595f122ca84f580d3db3ce22
2
896
Install: `npm install tailwindcss @tailwindcss/postcss postcss` - Config: `postcss.config.mjs` with `{ plugins: { "@tailwindcss/postcss": {} } }` - CSS: `@import "tailwindcss";` instead of `@tailwind base; @tailwind components; @tailwind utilities;` - Theme: CSS custom properties (`@theme { --color-primary: ... }`) ins...
clawguard
.planning/research/STACK.md
Markdown
cf58e294cd991a5ef1fb09e1aa65d7dd3bdf9645bcc853ff9b537c8f2d09b47f
3
896
----|-------------|---------| | Framework | Next.js 16 | Next.js 15 (15.5.14) | v16 is stable, better React 19 support, latest App Router features. v15 would also work if v16 causes issues. | | Auth | next-auth 4.24.13 | Auth.js v5 (next-auth@5-beta) | v5 is still beta (5.0.0-beta.30). v4 is battle-tested, supports Nex...
clawguard
.planning/research/STACK.md
Markdown
200d464c3aa662bfa02ad49a8e852e6581dd146341101e0aa65be9a01c2dab2e
4
896
4.1.1 add button card badge tabs accordion dialog dropdown-menu ``` ## Package Dependency Graph (Simplified) ``` next@16.2.1 +-- react@19.2.4 +-- react-dom@19.2.4 ai@6.0.141 +-- @ai-sdk/gateway@3.0.83 | +-- @vercel/oidc@3.1.0 +-- zod@4.3.6 (peer) chat@4.23.0 +-- @chat-adapter/github@4.23.0 | +...
clawguard
.planning/research/STACK.md
Markdown
b932ab316c04f922a99ed6ec54fcc1412935e5f7761d6d929daed3f7e7b78ad5
5
396
# Stack quality additions (proposed) These are optional follow-ups; the core stack is documented in `CLAUDE.md` / `research/STACK.md`. | Area | Addition | Why | |------|-----------|-----| | Static analysis | Semgrep rules in-repo (already partially via SARIF) | Repeatable rules beyond LLM | | TS/JS AST | `typescript`...
clawguard
.planning/research/STACK_QUALITY.md
Markdown
6ab97723319d45ad50d66501fedd004d57d1c67fdcdb87a14a854bd5a8b5711e
0
184
# Project Research Summary **Project:** ClawGuard -- AI-Powered GitHub PR Security Review Agent **Domain:** AI-powered code security analysis with agentic remediation **Researched:** 2026-03-27 **Confidence:** MEDIUM-HIGH ## Executive Summary ClawGuard is an AI-powered GitHub PR security agent that runs a 3-phase au...
clawguard
.planning/research/SUMMARY.md
Markdown
d7a136b3141efa8773d001fa0f82f76d191fe92efacf7888695edf43c78698ea
0
896
from v3) **Critical compatibility notes:** - Redis requires TWO connection strategies: `@upstash/redis` (HTTP) for audit data, `redis@5` (TCP) for Chat SDK state adapter - Mermaid is browser-only; must use `'use client'` + `dynamic(() => import(...), { ssr: false })` - Tailwind v4 replaces `tailwind.config.js` with CS...
clawguard
.planning/research/SUMMARY.md
Markdown
a533679f371a4d728b84ef188010b0dc05a8fce5757f31d3b982ef3a20b97f87
1
896
*Chat SDK + Next.js adapter mismatch** -- The GitHub adapter examples target Hono, not Next.js. Test the round-trip (webhook receive, post PR comment) in the first 2 hours. If it fights Next.js, fall back to direct Octokit + raw webhook handling (50 lines of code). Do not spend more than 2 hours on adapter debugging. ...
clawguard
.planning/research/SUMMARY.md
Markdown
ffd4d7ac4b76fd543effb8b28538a1bf7025d0ab7411a7f7e1d9d040b09bf33c
2
896
it, commits to PR branch via Octokit, re-runs full audit, posts updated Card with new score. The complete find-fix-validate-commit-re-audit cycle. **Addresses:** Auto-fix generation and validation, commit to PR branch, re-audit with updated score, action buttons in summary card **Avoids:** Pitfall 3 (broken auto-fix co...
clawguard
.planning/research/SUMMARY.md
Markdown
51ba0cb96bc0be7badfdbd18656f47480f1a5bf04da5fb57e58b8ef35b16b9d0
3
896
sample audit JSON in Redis, even before Phase 3 is complete. A designer/frontend developer could work on P4 while the agent developer finishes P3. - **Demo hardening is a phase, not a task:** Every pitfall related to demo reliability compounds. Dedicating Phase 6 to demo prep ensures it gets real attention, not last-mi...
clawguard
.planning/research/SUMMARY.md
Markdown
e95e2e6e2a4d3afe46d1a5eda34ef2b7f734b41c007364a12dc4ad318ee207a5
4
896
issues. Test the exact audit result schema in Phase 2 before building consumers. - **v0 SDK rate limits and reliability:** Rate limits for the v0 Platform API are not publicly documented. The recommendation to use v0 for dev-time generation only (not runtime) mitigates this, but initial component generation sessions ma...
clawguard
.planning/research/SUMMARY.md
Markdown
f178bb5afd91d9014e4471532a1e897ee3d41bef762658698da7f9af4f3a5601
5
703
import { ImageResponse } from "next/og"; import { siteConfig } from "@/lib/site"; export const size = { width: 180, height: 180 }; export const contentType = "image/png"; function logoAbsoluteUrl(): string { const base = process.env.NEXT_PUBLIC_APP_URL?.replace(/\/$/, "") || (process.env.VERCEL_URL ? ...
clawguard
app/apple-icon.tsx
TypeScript
bf9016d8f3cb0df40ae9ffe6fdf01744be5e3d58510248016ed863bc6e0bc40a
0
265
@import "tailwindcss"; @import "tw-animate-css"; @import "shadcn/tailwind.css"; @custom-variant dark (&:where(.dark, .dark *)); @theme inline { --color-background: var(--background); --color-foreground: var(--foreground); --font-sans: var(--font-geist-sans); --font-mono: var(--font-geist-mono); --color-side...
clawguard
app/globals.css
CSS
315e87b5f7e40c5b7471af50c7c07bee8b5603496a2839aca5fcfe774ca61222
0
896
; --enterFromLeft: enterFromLeft 250ms ease; --enterFromRight: enterFromRight 250ms ease; --exitToLeft: exitToLeft 250ms ease; --exitToRight: exitToRight 250ms ease; --animate-elliptical-orbit: elliptical-orbit 20s linear infinite; @keyframes orbit { 0% { transform: rotate(calc(var(--angle) * 1deg...
clawguard
app/globals.css
CSS
b72d8d3b8752304e9cffad1e4148ce9bdb831cf87e0a9182b933f095975bd344
1
896
1 0 0); --popover-foreground: oklch(0.145 0 0); --primary: oklch(0.205 0 0); --primary-foreground: oklch(0.985 0 0); /* Neutral secondary (zinc-style), not blue */ --secondary: oklch(0.96 0 0); --secondary-foreground: oklch(0.205 0 0); --muted: oklch(0.97 0 0); --muted-foreground: oklch(0.556 0 0); --...
clawguard
app/globals.css
CSS
fd08bf38a76f16f6568f24eda679544fa1a33c12de843ba5b1829a5ae4ea6f86
2
896
} } /* * Landing page only: blue fill from reference_landing (oklch(54.65% 0.246 262.87)). * Does not override --primary, so text-primary / headings stay the app default. */ .landing-page-scope { --landing-brand-fill: oklch(54.65% 0.246 262.87); } /* Hash links (#features, #faq, …) respect sticky nav when scroll...
clawguard
app/globals.css
CSS
a4000e0faaaca1a7e2871ca7dd30954f1473c170017f6018af3be31c09cc428c
3
329
import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import { ThemeProvider } from "@/components/theme-provider"; import { TooltipProvider } from "@/components/ui/tooltip"; import { OG_IMAGE_PATH, siteConfig } from "@/lib/site"; import "./globals.css"; const geistSans = Geist({ ...
clawguard
app/layout.tsx
TypeScript
2514eb761a601de2d7a50a9b6267e542426df7f452002927bb28a2d41175cb21
0
547
import { ImageResponse } from "next/og"; import { siteConfig } from "@/lib/site"; export const alt = `${siteConfig.name} — ${siteConfig.description}`; export const size = { width: 1200, height: 630 }; export const contentType = "image/png"; function logoAbsoluteUrl(): string { const base = process.env.NEXT_PUBL...
clawguard
app/opengraph-image.tsx
TypeScript
21458752a5e3f9db4f6d197f5eb9be902964a381a7a755228e5635562299cf53
0
436
import { LandingHashScroll } from "@/components/landing-hash-scroll"; import { BentoSection } from "@/components/sections/bento-section"; import { CompanyShowcase } from "@/components/sections/company-showcase"; import { CTASection } from "@/components/sections/cta-section"; import { FAQSection } from "@/components/sec...
clawguard
app/page.tsx
TypeScript
6f026fe1edc900e1617c616bf01cd8d0baa3f6ce01ae91c65b83a366e3edfb9d
0
373
import NextAuth from "next-auth"; import { authOptions } from "@/lib/auth-options"; const handler = NextAuth(authOptions); export { handler as GET, handler as POST };
clawguard
app/api/auth/[...nextauth]/route.ts
TypeScript
20de7faed4421470e1dd8d7cc4e2c0f840228a836cd0859545e8b09d8126ec1a
0
43
import { NextResponse } from "next/server"; import { getAuditResult } from "@/lib/redis"; export async function GET( _request: Request, { params }: { params: Promise<{ owner: string; repo: string; pr: string }> }, ) { const { owner, repo, pr } = await params; const key = `${owner}/${repo}/pr/${pr}`; const da...
clawguard
app/api/report/[owner]/[repo]/[pr]/route.ts
TypeScript
f0775c9b1f99a0d6f23bcd5ddb97dde1775e5a3dd34c7cf30cb0fa3602cd2eac
0
140
import { redis } from "@/lib/redis"; export const dynamic = "force-dynamic"; export const runtime = "nodejs"; interface Params { owner: string; repo: string; pr: string; } export async function GET( request: Request, { params }: { params: Promise<Params> }, ): Promise<Response> { const { owner, repo, pr ...
clawguard
app/api/report/[owner]/[repo]/[pr]/stream/route.ts
TypeScript
0b25493ed94381ddd432b192d9fb494afe38888160577e33a22fa15754fe6ae6
0
608
/** * Discord adapter pulls native optional deps (zlib-sync) that conflict with Turbopack. * Deploy a separate worker or use GitHub/Slack until we split the Chat instance. */ export async function POST() { return Response.json( { ok: false, error: "Discord adapter is not bundled in this dep...
clawguard
app/api/webhooks/discord/route.ts
TypeScript
9cf01231ae7b6b687509261224150581b14959c40d208112fc18de8b96cb050e
0
99
import { after } from "next/server"; import { clawguardWebhookDebug } from "@/lib/clawguard-debug"; import { isClawGuardAutomatedCommentBody } from "@/lib/github-automated-comment"; import { getGithubTokenUserId } from "@/lib/github-pat-user"; import { redis } from "@/lib/redis"; export const maxDuration = 300; funct...
clawguard
app/api/webhooks/github/route.ts
TypeScript
994bfacdcc5a59900793dba22949ed3f85aa121b8e3565944da692a1a558cb67
0
896
deliveryId}`; const isNew = await redis.set(key, "1", { nx: true, ex: 3600 }); clawguardWebhookDebug("redis delivery dedup", { deliveryId, isNew, key }); if (!isNew) { console.log("[webhook] Duplicate delivery, skipping:", deliveryId); return new Response("OK", { status: 200 }); } } if ...
clawguard
app/api/webhooks/github/route.ts
TypeScript
f3541d47afd05d368527cc8bf6af023c595203f57ef97888ed36250005c17621
1
619
import { handleChatPlatformWebhook } from "@/lib/platform-webhook"; export const maxDuration = 300; export async function POST(request: Request) { return handleChatPlatformWebhook(request, "linear"); }
clawguard
app/api/webhooks/linear/route.ts
TypeScript
470dc16109816c0be75c37bcbd56ecc6251cbc2dbeeec7a78da6b45ee5deb7d9
0
42
import { handleChatPlatformWebhook } from "@/lib/platform-webhook"; export const maxDuration = 300; export async function POST(request: Request) { return handleChatPlatformWebhook(request, "slack"); }
clawguard
app/api/webhooks/slack/route.ts
TypeScript
0af61537105bae1dddd3c99cd365a206bc3c2f975ba90ee3d43d99c1ab5b4b12
0
42
import { handleChatPlatformWebhook } from "@/lib/platform-webhook"; export const maxDuration = 300; export async function POST(request: Request) { return handleChatPlatformWebhook(request, "teams"); }
clawguard
app/api/webhooks/teams/route.ts
TypeScript
c2c93ea505990d8c0a2490a2d7234f53ad8c85747e1c162e2cbba768cc57160f
0
42
import { headers } from "next/headers"; import { redirect } from "next/navigation"; import { DashboardShell } from "@/components/dashboard/dashboard-shell"; import { getSession } from "@/lib/auth"; import { DEMO_OWNER, DEMO_REPO, isPublicDemoDashboardPath } from "@/lib/public-demo-dashboard"; import { listReposWithAudi...
clawguard
app/dashboard/layout.tsx
TypeScript
981fa3e124e14422c7f20c7b8917f67740bb9dab18bf559d30bdc58dcd36c9cf
0
304
import { Shield } from "lucide-react"; import { ChartAreaInteractive } from "@/components/chart-area-interactive"; import type { AuditTableRow } from "@/components/data-table"; import { DataTable } from "@/components/data-table"; import { SectionCards } from "@/components/section-cards"; import { getSession } from "@/l...
clawguard
app/dashboard/page.tsx
TypeScript
a3e032f4778dffd44164df662212a8953d76cf030e52efe88cc875fa98e2db84
0
896
div> <h1 className="text-2xl font-semibold tracking-tight">Dashboard</h1> <p className="mt-1 text-sm text-muted-foreground"> Signed in as {session?.user?.name ?? session?.user?.email} </p> </div> {totalAudits === 0 ? ( <div className="flex flex-col items-center jus...
clawguard
app/dashboard/page.tsx
TypeScript
c854fd8fdd028a5c8041e61a4affd7c9abd54d60b5df166e211663d1e81157cb
1
265
import { Shield } from "lucide-react"; import Link from "next/link"; import { DemoShowcaseHub } from "@/components/dashboard/demo-showcase-hub"; import { TrendChart } from "@/components/dashboard/trend-chart"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent, CardDescription, CardHeader, CardTi...
clawguard
app/dashboard/[owner]/[repo]/page.tsx
TypeScript
84402755b2d25619b119adb0ad13262171306ae8ebbc121c28a4b5463b2f90cc
0
896
"> {owner}/{repo} </h1> <p className="mt-1 text-sm text-muted-foreground">Pull request audits and score trend</p> </div> <div className="grid gap-4 sm:grid-cols-3"> <Card> <CardHeader className="pb-2"> <CardDescription>Audits</CardDescription> ...
clawguard
app/dashboard/[owner]/[repo]/page.tsx
TypeScript
7fa829bc045f4bc5abc962fa2ecd07a8411d4a0b8ec2ffe054d818dbd35c996d
1
735
import { Activity, AlertTriangle, CheckCircle, XCircle } from "lucide-react"; import { EmptyState } from "@/components/dashboard/empty-state"; import { PrecisionStatCard } from "@/components/dashboard/precision-stat-card"; import { TrackingDistributionChart } from "@/components/dashboard/tracking-chart"; import { Card...
clawguard
app/dashboard/[owner]/[repo]/tracking/page.tsx
TypeScript
21f86843d77da9d0b77d954164766ddc70bc8313c32ebb9b07519fdadc81401f
0
896
"> <div className="flex items-center gap-2 text-red-600 dark:text-red-400"> <AlertTriangle className="size-4 shrink-0" aria-hidden /> <CardDescription>Misses</CardDescription> </div> <CardTitle className="text-3xl tabular-nums text-red-...
clawguard
app/dashboard/[owner]/[repo]/tracking/page.tsx
TypeScript
a6d9eed96a66144bcdb57b0ae6b6c7acfde6ce0cd6d655977adb1ee4c76d0147
1
229
import { KnowledgeView } from "@/components/dashboard/knowledge-view"; import { getSession } from "@/lib/auth"; import { demoKnowledgeEntries } from "@/lib/demo-dashboard-data"; import { listKnowledgeOrg } from "@/lib/knowledge"; import { isDemoDashboardOwner } from "@/lib/public-demo-dashboard"; interface PageProps {...
clawguard
app/dashboard/[owner]/knowledge/page.tsx
TypeScript
d23f3771a7dac0587d85a07325b7fbbca0c17934c57fac2213046ca17b1a9e6d
0
250
import { LearningsView } from "@/components/dashboard/learnings-view"; import { getSession } from "@/lib/auth"; import { demoOrgLearnings, demoRepoLearnings } from "@/lib/demo-dashboard-data"; import { listLearningsOrg, listLearningsRepo } from "@/lib/learnings"; import { DEMO_REPO, isDemoDashboardOwner } from "@/lib/p...
clawguard
app/dashboard/[owner]/learnings/page.tsx
TypeScript
770fc5af3d836416f383c37f7a41e16c6361aa4dea5e95a1843ff08916fd4123
0
421
import { redirect } from "next/navigation"; import { DEMO_DASHBOARD_HUB_PATH } from "@/lib/public-demo-dashboard"; /** Old showcase URL — canonical hub is julian-at/clawguard. */ export default function LegacyDemoPathRedirect() { redirect(DEMO_DASHBOARD_HUB_PATH); }
clawguard
app/dashboard/demo/demo/page.tsx
TypeScript
b3f400aa728f807f87cc633acfbc16f1e1d815690596000c5fb7c142e346ec42
0
59
import Link from "next/link"; import { redirect } from "next/navigation"; import { LoginForm } from "@/components/login-form"; import { ClawGuardLogo } from "@/components/logo"; import { getSession } from "@/lib/auth"; export default async function LoginPage() { const session = await getSession(); if (session?.us...
clawguard
app/login/page.tsx
TypeScript
8020e508d827b7d2ed76730dea4e9f911c215e63999aa4098816ed6b6f144bce
0
239
import Link from "next/link"; import { redirect } from "next/navigation"; import { ClawGuardLogo } from "@/components/logo"; import { LogoutForm } from "@/components/logout-form"; import { getSession } from "@/lib/auth"; type Props = { searchParams: Promise<{ callbackUrl?: string | string[] }>; }; export default as...
clawguard
app/logout/page.tsx
TypeScript
b79f40a8446c3fab26d12b973298a02dc16121bf1e40d58a6d5768dd5d8b4943
0
341
"use client"; import { ShieldAlert } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; export default function ReportError({ reset, }: { error: Error & { digest?: string }; reset: () => void; })...
clawguard
app/report/[owner]/[repo]/[pr]/error.tsx
TypeScript
58f18c3d09dc399010cfb8946ed2f39773b7a7c0b6cfab609e7c05f4794d60b9
0
267
import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { Skeleton } from "@/components/ui/skeleton"; export default function ReportLoading() { return ( <div className="min-h-screen bg-background text-foreground p-8"> <div className="max-w-6xl mx-auto space-y-8"> <div className...
clawguard
app/report/[owner]/[repo]/[pr]/loading.tsx
TypeScript
3d7d7cf1336dfbb3d577f32f415bfd27b184ddfb6f7a3de15159010d112e822f
0
621
import { ShieldAlert } from "lucide-react"; import Link from "next/link"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; export default function ReportNotFound() { return ( <div className="flex min-h-svh items-cen...
clawguard
app/report/[owner]/[repo]/[pr]/not-found.tsx
TypeScript
4a498ba30d7010a36d0ab0a280a1fb1a4260daea10a23cc3c463ed754d8a150f
0
293
import { notFound } from "next/navigation"; import { ErrorView } from "@/components/report/error-view"; import { ProcessingView } from "@/components/report/processing-view"; import { ReportView } from "@/components/report/report-view"; import { parseAuditResult } from "@/lib/analysis/types"; import { getAuditResult } f...
clawguard
app/report/[owner]/[repo]/[pr]/page.tsx
TypeScript
d73563902e674f27dd3e568c483f060988ef1161577e7a394c190c77418d73f2
0
349
import { ReportView } from "@/components/report/report-view"; import { parseAuditResult } from "@/lib/analysis/types"; import { getDemoAuditData } from "@/lib/demo-audit"; /** Single canonical interactive report demo (same payload as Redis `demo/clawguard-showcase/pr/1`). */ export default function DemoReportPage() { ...
clawguard
app/report/demo/page.tsx
TypeScript
89785cbe02e3afc8d365461944d6b9b44a98efd766ba50555686561f1bae9e06
0
168
"use client"; import { BookOpen, Brain, CircleHelpIcon, ExternalLinkIcon, LayoutDashboardIcon, LineChart, PlayCircle, } from "lucide-react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import * as React from "react"; import type { DashboardRepo, DashboardUser } from "@/c...
clawguard
components/app-sidebar.tsx
TypeScript
068cf1368113d8f0b6c5188760d7fc7482113ff79754bc25abfb48267095506b
0
896
(raw) as { owner?: string; repo?: string }; if ( typeof parsed.owner === "string" && typeof parsed.repo === "string" && repoListIncludes(sortedRepos, parsed.owner, parsed.repo) ) { setPersistedRepo({ owner: parsed.owner, repo: parsed.repo }); } else { setPersist...
clawguard
components/app-sidebar.tsx
TypeScript
53283a5210560ab368163da588a4aaaace4e9cb26701dd03f5328a90aee5c14b
1
896
> <SidebarSeparator /> <NavMain showQuickActions={false} items={[demoItem]} /> </> ) : null} {repoNavItems.length > 0 ? ( <> <SidebarSeparator /> <NavMain showQuickActions={false} items={repoNavItems} /> </> ) : null}...
clawguard
components/app-sidebar.tsx
TypeScript
cec82c06bd6d0c1c5431d4cd8465284a18077802d27b26f730b82d4ca308c3d6
2
526
"use client"; import * as React from "react"; import { CartesianGrid, Line, LineChart, XAxis, YAxis } from "recharts"; import { Card, CardAction, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { type ChartConfig, ChartContainer, ChartTooltip, ChartTooltip...
clawguard
components/chart-area-interactive.tsx
TypeScript
5c8e23890309c264fedf0b5b9b14dfde547fd72756be267c76cd6ae70a350afd
0
896
{ date: "2024-05-05", desktop: 481, mobile: 390 }, { date: "2024-05-06", desktop: 498, mobile: 520 }, { date: "2024-05-07", desktop: 388, mobile: 300 }, { date: "2024-05-08", desktop: 149, mobile: 210 }, { date: "2024-05-09", desktop: 227, mobile: 180 }, { date: "2024-05-10", desktop: 293, mobile: 330 }, { ...
clawguard
components/chart-area-interactive.tsx
TypeScript
0e459335828288cacd7e2d44e3b113efc930abed42989d7cf7aa60fe3c2c6499
1
896
: 307, mobile: 350 }, { date: "2024-06-16", desktop: 371, mobile: 310 }, { date: "2024-06-17", desktop: 475, mobile: 520 }, { date: "2024-06-18", desktop: 107, mobile: 170 }, { date: "2024-06-19", desktop: 341, mobile: 290 }, { date: "2024-06-20", desktop: 408, mobile: 450 }, { date: "2024-06-21", desktop: ...
clawguard
components/chart-area-interactive.tsx
TypeScript
b5deb77c6c64498949bfcf58e09e2642bd54d2490182163902d308c18e047031
2
896
useAudit ? "Average score by completion day" : "Demo data until you have audits"} </span> <span className="@[540px]/card:hidden"> {useAudit ? "Scores over time" : "Sample chart"} </span> </CardDescription> <CardAction> <ToggleGroup type="si...
clawguard
components/chart-area-interactive.tsx
TypeScript
1fc16bfbb0767f3b7257f9134d455665f03b9eb16984d7d3582ca857fbef1df0
3
896
<CartesianGrid vertical={false} strokeDasharray="3 3" className="stroke-border/50" /> <XAxis dataKey="date" tickLine={false} axisLine={false} tickMargin={10} minTickGap={28} tick={{ fontSize: 11 }} ...
clawguard
components/chart-area-interactive.tsx
TypeScript
0c9c42ce27f529e284fd654555e94c877494ca572837b4d71cc56090da6ab599
4
374
"use client"; import Link from "next/link"; import { useEffect, useState } from "react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import { GRADE_BA...
clawguard
components/data-table.tsx
TypeScript
dc895b30c3e654b644a84af7cf87a15a8a8a6473393d5a9783483f9d3e07419e
0
896
(row).map((cell, i) => ( <TableCell key={`${row.id}-${HEADERS[i]}`}>{cell}</TableCell> ))} </TableRow> )) ) : ( <TableRow> <TableCell colSpan={HEADERS.length} className="h-24 text-center"> No ...
clawguard
components/data-table.tsx
TypeScript
0ae315df9e19914ed8f1c3a3e506b3831783e61f6dc524830ef052060918f0ef
1
261
/* eslint-disable @next/next/no-img-element */ "use client"; import { AnimatePresence, motion, useInView } from "motion/react"; import { useEffect, useRef, useState } from "react"; import { Icons } from "@/components/landing-icons"; import { Reasoning, ReasoningContent, ReasoningResponse } from "@/components/ui/reason...
clawguard
components/first-bento-animation.tsx
TypeScript
4bcc9ba716271177b8f7821640769064e834fcb4a5262cdd1d3de43e2a1f7389
0
896
x: 0 }} exit={{ opacity: 0, x: -10 }} transition={{ duration: 0.2, ease: "easeOut", }} > <div className="flex gap-1"> {[0, 1, 2].map((index) => ( <mot...
clawguard
components/first-bento-animation.tsx
TypeScript
08915042f64cce1781771d79475d03efced9b525e9cf0717cfba8ae6f4bf39af
1
327
"use client"; import { AnimatePresence, motion, useInView, useMotionValue, useSpring } from "motion/react"; import { useEffect, useRef, useState } from "react"; interface BoxConfig { title: string; className: string; } const boxConfigs: BoxConfig[] = [ { title: "PR audit", className: "bg-(--landing-bra...
clawguard
components/fourth-bento-animation.tsx
TypeScript
f124a0df80b72d56280c8b5f3ff16925730227cf4047950f649d75734ffc9479
0
896
className=" w-1/2 h-full flex items-start justify-between"> {Array.from({ length: 5 }).map((_, index) => ( <div key={index} className="h-5 w-px bg-(--landing-brand-fill)/55 first:bg-transparent" ></div> ))} </div> <div className="fl...
clawguard
components/fourth-bento-animation.tsx
TypeScript
f7ac92bff2eb5d479b474f1f5e63a6726fbd9248aa881141358788c8fd148fa0
1
896
motion.div className="absolute top-14 z-20 flex h-6 items-center justify-center rounded-md bg-(--landing-brand-fill) p-2 text-xs shadow-[0px_2px_8px_rgba(0,0,0,0.12),inset_0_1px_0_rgba(255,255,255,0.15)]" style={{ x: smoothX, translateX: "-50%", }} initial={{ opacity:...
clawguard
components/fourth-bento-animation.tsx
TypeScript
2e811311b2021bc0a9c4874392fe406fdb1edf180dce1a85018f6cadb7f62ddf
2
479
import type * as React from "react"; import { cn } from "@/lib/utils"; /** GitHub mark (Lucide dropped brand icons; use this for repo rows). */ export function GithubMarkIcon({ className, ...props }: React.SVGProps<SVGSVGElement>) { return ( <svg viewBox="0 0 24 24" fill="currentColor" aria-hi...
clawguard
components/github-mark-icon.tsx
TypeScript
b8d08327c8cbd097c2166a26b4ed1e89fafccf083a82ec57980dd7ec432d72a4
0
368