gpt-engineer-app[bot] nextgenframes commited on
Commit Β·
58360ec
1
Parent(s): 0b4f921
Changes
Browse filesCo-authored-by: nextgenframes <281320089+nextgenframes@users.noreply.github.com>
- src/components/upload-dialog.tsx +1 -1
- src/lib/branch-debug.functions.ts +1 -1
- src/lib/forensic.functions.ts +1 -1
- src/lib/incidents.functions.ts +2 -2
- src/routeTree.gen.ts +9 -0
- src/routes/api/public/branch-debug.ts +1 -1
- src/routes/dashboard.branch-debug.tsx +1 -1
- src/routes/dashboard.forensic.tsx +1 -1
- src/routes/dashboard.index.tsx +1 -1
src/components/upload-dialog.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import { Upload, FileText, FileType, Video, Loader2 } from "lucide-react";
|
|
| 9 |
import { supabase } from "@/integrations/supabase/client";
|
| 10 |
import { toast } from "sonner";
|
| 11 |
import { useServerFn } from "@tanstack/react-start";
|
| 12 |
-
import { analyzeIncident } from "@/
|
| 13 |
|
| 14 |
export function UploadDialog({ onCreated }: { onCreated?: (id: string) => void }) {
|
| 15 |
const [open, setOpen] = useState(false);
|
|
|
|
| 9 |
import { supabase } from "@/integrations/supabase/client";
|
| 10 |
import { toast } from "sonner";
|
| 11 |
import { useServerFn } from "@tanstack/react-start";
|
| 12 |
+
import { analyzeIncident } from "@/lib/incidents.functions";
|
| 13 |
|
| 14 |
export function UploadDialog({ onCreated }: { onCreated?: (id: string) => void }) {
|
| 15 |
const [open, setOpen] = useState(false);
|
src/lib/branch-debug.functions.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import { createServerFn } from "@tanstack/react-start";
|
| 2 |
-
import { fetchAIWithFallback, getAIConfig } from "./ai-config";
|
| 3 |
import { z } from "zod";
|
| 4 |
|
| 5 |
const InputSchema = z.object({
|
|
|
|
| 1 |
import { createServerFn } from "@tanstack/react-start";
|
| 2 |
+
import { fetchAIWithFallback, getAIConfig } from "./ai-config.server";
|
| 3 |
import { z } from "zod";
|
| 4 |
|
| 5 |
const InputSchema = z.object({
|
src/lib/forensic.functions.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import { createServerFn } from "@tanstack/react-start";
|
| 2 |
import { z } from "zod";
|
| 3 |
import { sanitize, restore } from "./branch-debug.functions";
|
| 4 |
-
import { fetchAIWithFallback, getAIConfig } from "./ai-config";
|
| 5 |
|
| 6 |
// βββββββββββββββββββββββββ SSRF Guard βββββββββββββββββββββββββ
|
| 7 |
// Reject loopback, private (RFC1918), link-local, and cloud metadata addresses
|
|
|
|
| 1 |
import { createServerFn } from "@tanstack/react-start";
|
| 2 |
import { z } from "zod";
|
| 3 |
import { sanitize, restore } from "./branch-debug.functions";
|
| 4 |
+
import { fetchAIWithFallback, getAIConfig } from "./ai-config.server";
|
| 5 |
|
| 6 |
// βββββββββββββββββββββββββ SSRF Guard βββββββββββββββββββββββββ
|
| 7 |
// Reject loopback, private (RFC1918), link-local, and cloud metadata addresses
|
src/lib/incidents.functions.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import { createServerFn } from "@tanstack/react-start";
|
| 2 |
import { supabaseAdmin } from "@/integrations/supabase/client.server";
|
| 3 |
-
import { fetchAIWithFallback, getAIConfig } from "./ai-config";
|
| 4 |
-
import { AV_KNOWLEDGE_BASE } from "./av-knowledge";
|
| 5 |
import { z } from "zod";
|
| 6 |
|
| 7 |
const InputSchema = z.object({
|
|
|
|
| 1 |
import { createServerFn } from "@tanstack/react-start";
|
| 2 |
import { supabaseAdmin } from "@/integrations/supabase/client.server";
|
| 3 |
+
import { fetchAIWithFallback, getAIConfig } from "./ai-config.server";
|
| 4 |
+
import { AV_KNOWLEDGE_BASE } from "./av-knowledge.server";
|
| 5 |
import { z } from "zod";
|
| 6 |
|
| 7 |
const InputSchema = z.object({
|
src/routeTree.gen.ts
CHANGED
|
@@ -237,3 +237,12 @@ const rootRouteChildren: RootRouteChildren = {
|
|
| 237 |
export const routeTree = rootRouteImport
|
| 238 |
._addFileChildren(rootRouteChildren)
|
| 239 |
._addFileTypes<FileRouteTypes>()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 237 |
export const routeTree = rootRouteImport
|
| 238 |
._addFileChildren(rootRouteChildren)
|
| 239 |
._addFileTypes<FileRouteTypes>()
|
| 240 |
+
|
| 241 |
+
import type { getRouter } from './router.tsx'
|
| 242 |
+
import type { createStart } from '@tanstack/react-start'
|
| 243 |
+
declare module '@tanstack/react-start' {
|
| 244 |
+
interface Register {
|
| 245 |
+
ssr: true
|
| 246 |
+
router: Awaited<ReturnType<typeof getRouter>>
|
| 247 |
+
}
|
| 248 |
+
}
|
src/routes/api/public/branch-debug.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import { createFileRoute } from "@tanstack/react-router";
|
| 2 |
import { createHash, timingSafeEqual } from "node:crypto";
|
| 3 |
-
import { analyzeDiff } from "@/
|
| 4 |
|
| 5 |
// This endpoint exists for the VS Code / CLI helper. It is no longer open to
|
| 6 |
// the world: every request must carry a shared bearer token that matches the
|
|
|
|
| 1 |
import { createFileRoute } from "@tanstack/react-router";
|
| 2 |
import { createHash, timingSafeEqual } from "node:crypto";
|
| 3 |
+
import { analyzeDiff } from "@/lib/branch-debug.functions";
|
| 4 |
|
| 5 |
// This endpoint exists for the VS Code / CLI helper. It is no longer open to
|
| 6 |
// the world: every request must carry a shared bearer token that matches the
|
src/routes/dashboard.branch-debug.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { createFileRoute } from "@tanstack/react-router";
|
|
| 2 |
import { useState, useEffect, useRef } from "react";
|
| 3 |
import { GitBranch, Play, RotateCcw, Shield, ChevronLeft, ChevronRight, Check, Loader2, Sparkles, FileCode, ExternalLink, Copy, Eye, ArrowRight, Download, FileJson, FileText, Terminal, Edit3, Lock, Send, Brain, Unlock, Target, Ticket, Link2, Paperclip, type LucideIcon } from "lucide-react";
|
| 4 |
import { useServerFn } from "@tanstack/react-start";
|
| 5 |
-
import { debugBranch, debugSnippet, type DebugResult, type Suspect } from "@/
|
| 6 |
import { Button } from "@/components/ui/button";
|
| 7 |
import { Textarea } from "@/components/ui/textarea";
|
| 8 |
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, DialogDescription } from "@/components/ui/dialog";
|
|
|
|
| 2 |
import { useState, useEffect, useRef } from "react";
|
| 3 |
import { GitBranch, Play, RotateCcw, Shield, ChevronLeft, ChevronRight, Check, Loader2, Sparkles, FileCode, ExternalLink, Copy, Eye, ArrowRight, Download, FileJson, FileText, Terminal, Edit3, Lock, Send, Brain, Unlock, Target, Ticket, Link2, Paperclip, type LucideIcon } from "lucide-react";
|
| 4 |
import { useServerFn } from "@tanstack/react-start";
|
| 5 |
+
import { debugBranch, debugSnippet, type DebugResult, type Suspect } from "@/lib/branch-debug.functions";
|
| 6 |
import { Button } from "@/components/ui/button";
|
| 7 |
import { Textarea } from "@/components/ui/textarea";
|
| 8 |
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, DialogDescription } from "@/components/ui/dialog";
|
src/routes/dashboard.forensic.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
| 9 |
type Stage1Result,
|
| 10 |
type Stage2Result,
|
| 11 |
type Stage3Result,
|
| 12 |
-
} from "@/
|
| 13 |
import { Button } from "@/components/ui/button";
|
| 14 |
import { Textarea } from "@/components/ui/textarea";
|
| 15 |
import { Input } from "@/components/ui/input";
|
|
|
|
| 9 |
type Stage1Result,
|
| 10 |
type Stage2Result,
|
| 11 |
type Stage3Result,
|
| 12 |
+
} from "@/lib/forensic.functions";
|
| 13 |
import { Button } from "@/components/ui/button";
|
| 14 |
import { Textarea } from "@/components/ui/textarea";
|
| 15 |
import { Input } from "@/components/ui/input";
|
src/routes/dashboard.index.tsx
CHANGED
|
@@ -11,7 +11,7 @@ import { Button } from "@/components/ui/button";
|
|
| 11 |
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
|
| 12 |
import { Loader2, AlertTriangle, FileText, Cpu, Shield, Activity, BookText, Download, RefreshCw, Trash2 } from "lucide-react";
|
| 13 |
import { useServerFn } from "@tanstack/react-start";
|
| 14 |
-
import { analyzeIncident } from "@/
|
| 15 |
import { toast } from "sonner";
|
| 16 |
import { cn } from "@/lib/utils";
|
| 17 |
|
|
|
|
| 11 |
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
|
| 12 |
import { Loader2, AlertTriangle, FileText, Cpu, Shield, Activity, BookText, Download, RefreshCw, Trash2 } from "lucide-react";
|
| 13 |
import { useServerFn } from "@tanstack/react-start";
|
| 14 |
+
import { analyzeIncident } from "@/lib/incidents.functions";
|
| 15 |
import { toast } from "sonner";
|
| 16 |
import { cn } from "@/lib/utils";
|
| 17 |
|