gpt-engineer-app[bot] nextgenframes commited on
Commit Β·
0ecb196
1
Parent(s): 7023b23
Changes
Browse filesCo-authored-by: nextgenframes <281320089+nextgenframes@users.noreply.github.com>
- QUICKSTART.md +1 -1
- README.md +2 -2
- cli/eventdash-debug.mjs +1 -1
- src/components/sidebar.tsx +1 -1
- src/components/upload-dialog.tsx +1 -1
- src/routes/__root.tsx +1 -1
- src/routes/auth.tsx +2 -2
- src/routes/index.tsx +2 -2
- src/server/incidents.functions.ts +1 -1
QUICKSTART.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
# Quick Start Guide
|
| 2 |
|
| 3 |
-
Get
|
| 4 |
|
| 5 |
---
|
| 6 |
|
|
|
|
| 1 |
# Quick Start Guide
|
| 2 |
|
| 3 |
+
Get DriveCore running in **under 5 minutes**.
|
| 4 |
|
| 5 |
---
|
| 6 |
|
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
An AI-powered incident response, forensic analysis, and branch debugging platform.
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
- **Triage incidents** with an AI agent pipeline (intake β enrichment β analysis β response).
|
| 8 |
- **Run forensic analysis** on suspicious URLs and uploaded files with built-in SSRF protection.
|
|
|
|
| 1 |
+
# DriveCore
|
| 2 |
|
| 3 |
An AI-powered incident response, forensic analysis, and branch debugging platform.
|
| 4 |
|
| 5 |
+
DriveCore helps engineering and security teams:
|
| 6 |
|
| 7 |
- **Triage incidents** with an AI agent pipeline (intake β enrichment β analysis β response).
|
| 8 |
- **Run forensic analysis** on suspicious URLs and uploaded files with built-in SSRF protection.
|
cli/eventdash-debug.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
#!/usr/bin/env node
|
| 2 |
-
//
|
| 3 |
//
|
| 4 |
// Usage (from your repo root, in the VS Code terminal):
|
| 5 |
// node ./cli/eventdash-debug.mjs "API throws 500 on /checkout for Amex cards"
|
|
|
|
| 1 |
#!/usr/bin/env node
|
| 2 |
+
// DriveCore Branch Debug CLI
|
| 3 |
//
|
| 4 |
// Usage (from your repo root, in the VS Code terminal):
|
| 5 |
// node ./cli/eventdash-debug.mjs "API throws 500 on /checkout for Amex cards"
|
src/components/sidebar.tsx
CHANGED
|
@@ -30,7 +30,7 @@ export function Sidebar({ user }: { user: User | null }) {
|
|
| 30 |
<Radar className="h-5 w-5" />
|
| 31 |
</div>
|
| 32 |
<div>
|
| 33 |
-
<div className="font-bold tracking-tight leading-none">
|
| 34 |
<div className="text-[10px] uppercase tracking-widest text-muted-foreground mt-1">Safety Console</div>
|
| 35 |
</div>
|
| 36 |
</Link>
|
|
|
|
| 30 |
<Radar className="h-5 w-5" />
|
| 31 |
</div>
|
| 32 |
<div>
|
| 33 |
+
<div className="font-bold tracking-tight leading-none">DriveCore</div>
|
| 34 |
<div className="text-[10px] uppercase tracking-widest text-muted-foreground mt-1">Safety Console</div>
|
| 35 |
</div>
|
| 36 |
</Link>
|
src/components/upload-dialog.tsx
CHANGED
|
@@ -93,7 +93,7 @@ export function UploadDialog({ onCreated }: { onCreated?: (id: string) => void }
|
|
| 93 |
<DialogHeader>
|
| 94 |
<DialogTitle>Submit incident for analysis</DialogTitle>
|
| 95 |
<DialogDescription>
|
| 96 |
-
Paste a report/transcript or upload sensor logs, PDF reports, or video evidence.
|
| 97 |
</DialogDescription>
|
| 98 |
</DialogHeader>
|
| 99 |
|
|
|
|
| 93 |
<DialogHeader>
|
| 94 |
<DialogTitle>Submit incident for analysis</DialogTitle>
|
| 95 |
<DialogDescription>
|
| 96 |
+
Paste a report/transcript or upload sensor logs, PDF reports, or video evidence. DriveCore will route it through Event, Safety, Risk, and Documentation agents.
|
| 97 |
</DialogDescription>
|
| 98 |
</DialogHeader>
|
| 99 |
|
src/routes/__root.tsx
CHANGED
|
@@ -27,7 +27,7 @@ export const Route = createRootRoute({
|
|
| 27 |
meta: [
|
| 28 |
{ charSet: "utf-8" },
|
| 29 |
{ name: "viewport", content: "width=device-width, initial-scale=1" },
|
| 30 |
-
{ title: "
|
| 31 |
{ name: "description", content: "AI-powered analysis of autonomous vehicle incidents, near misses, and safety logs." },
|
| 32 |
],
|
| 33 |
links: [{ rel: "stylesheet", href: appCss }, { rel: "preconnect", href: "https://fonts.googleapis.com" }, { rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap" }],
|
|
|
|
| 27 |
meta: [
|
| 28 |
{ charSet: "utf-8" },
|
| 29 |
{ name: "viewport", content: "width=device-width, initial-scale=1" },
|
| 30 |
+
{ title: "DriveCore β AV Safety Incident Analysis" },
|
| 31 |
{ name: "description", content: "AI-powered analysis of autonomous vehicle incidents, near misses, and safety logs." },
|
| 32 |
],
|
| 33 |
links: [{ rel: "stylesheet", href: appCss }, { rel: "preconnect", href: "https://fonts.googleapis.com" }, { rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap" }],
|
src/routes/auth.tsx
CHANGED
|
@@ -60,7 +60,7 @@ function AuthPage() {
|
|
| 60 |
<div className="h-10 w-10 rounded-lg bg-primary text-primary-foreground flex items-center justify-center">
|
| 61 |
<Radar className="h-5 w-5" />
|
| 62 |
</div>
|
| 63 |
-
<span className="text-xl font-bold tracking-tight">
|
| 64 |
</div>
|
| 65 |
</div>
|
| 66 |
<div className="relative space-y-6 max-w-md">
|
|
@@ -69,7 +69,7 @@ function AuthPage() {
|
|
| 69 |
Multi-agent safety analysis for autonomous fleets.
|
| 70 |
</h1>
|
| 71 |
<p className="text-muted-foreground text-lg">
|
| 72 |
-
Upload incident reports, telemetry transcripts, or sensor logs.
|
| 73 |
</p>
|
| 74 |
<div className="flex gap-2 pt-4 font-mono text-xs text-muted-foreground">
|
| 75 |
<span className="px-2 py-1 rounded bg-surface border border-border">EVENT</span>
|
|
|
|
| 60 |
<div className="h-10 w-10 rounded-lg bg-primary text-primary-foreground flex items-center justify-center">
|
| 61 |
<Radar className="h-5 w-5" />
|
| 62 |
</div>
|
| 63 |
+
<span className="text-xl font-bold tracking-tight">DriveCore</span>
|
| 64 |
</div>
|
| 65 |
</div>
|
| 66 |
<div className="relative space-y-6 max-w-md">
|
|
|
|
| 69 |
Multi-agent safety analysis for autonomous fleets.
|
| 70 |
</h1>
|
| 71 |
<p className="text-muted-foreground text-lg">
|
| 72 |
+
Upload incident reports, telemetry transcripts, or sensor logs. DriveCore extracts events, identifies root causes, flags compliance risks, and drafts coaching plans β in seconds.
|
| 73 |
</p>
|
| 74 |
<div className="flex gap-2 pt-4 font-mono text-xs text-muted-foreground">
|
| 75 |
<span className="px-2 py-1 rounded bg-surface border border-border">EVENT</span>
|
src/routes/index.tsx
CHANGED
|
@@ -11,7 +11,7 @@ function Landing() {
|
|
| 11 |
<header className="relative max-w-7xl mx-auto px-6 py-6 flex items-center justify-between">
|
| 12 |
<div className="flex items-center gap-3">
|
| 13 |
<div className="h-9 w-9 rounded-lg bg-primary text-primary-foreground flex items-center justify-center shadow-[var(--shadow-glow)]"><Radar className="h-5 w-5"/></div>
|
| 14 |
-
<span className="font-bold tracking-tight">
|
| 15 |
</div>
|
| 16 |
<Link to="/auth" className="text-sm font-medium text-muted-foreground hover:text-foreground">Sign in β</Link>
|
| 17 |
</header>
|
|
@@ -24,7 +24,7 @@ function Landing() {
|
|
| 24 |
Turn raw incident logs into <span className="text-primary">actionable safety intelligence</span>.
|
| 25 |
</h1>
|
| 26 |
<p className="mt-6 text-lg text-muted-foreground max-w-2xl mx-auto">
|
| 27 |
-
|
| 28 |
</p>
|
| 29 |
<div className="mt-10 flex items-center justify-center gap-3">
|
| 30 |
<Link to="/auth" className="inline-flex items-center gap-2 px-6 py-3 rounded-lg bg-primary text-primary-foreground font-semibold hover:bg-primary/90 shadow-[var(--shadow-glow)]">
|
|
|
|
| 11 |
<header className="relative max-w-7xl mx-auto px-6 py-6 flex items-center justify-between">
|
| 12 |
<div className="flex items-center gap-3">
|
| 13 |
<div className="h-9 w-9 rounded-lg bg-primary text-primary-foreground flex items-center justify-center shadow-[var(--shadow-glow)]"><Radar className="h-5 w-5"/></div>
|
| 14 |
+
<span className="font-bold tracking-tight">DriveCore</span>
|
| 15 |
</div>
|
| 16 |
<Link to="/auth" className="text-sm font-medium text-muted-foreground hover:text-foreground">Sign in β</Link>
|
| 17 |
</header>
|
|
|
|
| 24 |
Turn raw incident logs into <span className="text-primary">actionable safety intelligence</span>.
|
| 25 |
</h1>
|
| 26 |
<p className="mt-6 text-lg text-muted-foreground max-w-2xl mx-auto">
|
| 27 |
+
DriveCore routes every autonomous vehicle event, near miss, and sensor log through four specialized AI agents β surfacing root causes, compliance concerns, and operator coaching plans in seconds.
|
| 28 |
</p>
|
| 29 |
<div className="mt-10 flex items-center justify-center gap-3">
|
| 30 |
<Link to="/auth" className="inline-flex items-center gap-2 px-6 py-3 rounded-lg bg-primary text-primary-foreground font-semibold hover:bg-primary/90 shadow-[var(--shadow-glow)]">
|
src/server/incidents.functions.ts
CHANGED
|
@@ -52,7 +52,7 @@ const analysisTool = {
|
|
| 52 |
},
|
| 53 |
};
|
| 54 |
|
| 55 |
-
const SYSTEM_PROMPT = `You are
|
| 56 |
|
| 57 |
1. EVENT EXTRACTION AGENT β pulls discrete timeline events from logs, transcripts, or sensor data.
|
| 58 |
2. SAFETY AGENT β identifies compliance concerns referencing standards (NHTSA AV Policy, ISO 26262, SAE J3016, FMVSS, UN R157).
|
|
|
|
| 52 |
},
|
| 53 |
};
|
| 54 |
|
| 55 |
+
const SYSTEM_PROMPT = `You are DriveCore, a multi-agent AI safety analyst for autonomous vehicle (AV) fleets. You orchestrate four specialised agents on every input:
|
| 56 |
|
| 57 |
1. EVENT EXTRACTION AGENT β pulls discrete timeline events from logs, transcripts, or sensor data.
|
| 58 |
2. SAFETY AGENT β identifies compliance concerns referencing standards (NHTSA AV Policy, ISO 26262, SAE J3016, FMVSS, UN R157).
|