mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-06-30 16:25:48 +02:00
a5badefc29
Engine:
- Fix: inject IS_SANDBOX=1 so Claude Code's --dangerously-skip-permissions
works under root (real backend runs were exiting rc=1 immediately)
- models: expand to 40 models / 13 providers, tagged CLI vs API
(NVIDIA NIM, DeepSeek, Mistral, Qwen/DashScope, Groq, Together, OpenRouter,
Ollama, Gemini) — Qwen/DeepSeek/Llama usable via API
- backends: on_start callback surfaces the exact argv ("what runs behind it")
- orchestrator: require a Playwright screenshot per confirmed finding; collect
results/activity.json; auto-generate reports after a run
- report.py: HTML always + PDF via Typst engine (.typ source emitted too)
Web dashboard (webgui/, stdlib only — no npm/build):
- Sidebar dashboard (PentAGI-style): Run / Agents / Insights / Reports / Settings
- Multi-target runs; live execution console + per-task activity; finding cards
with screenshots; backend+provider+model pickers (CLI & API)
- Agents tab: browse 213 + add new .md agents from the UI
- Insights: interactive RL-weight + severity charts
- Reports: download/preview PDF + HTML
- Settings/API: execution mode, per-provider API keys, orchestrator, verbosity
- Endpoints: /api/agents (GET/POST), /api/rl, /api/config, /api/reports,
/reports/* + /shots/* static serving
Cleanup: retire replaced web stack (frontend React, FastAPI backend, core
orchestration, old test) to legacy/. Active engine + GUI are fully standalone.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
42 lines
1.2 KiB
TypeScript
Executable File
42 lines
1.2 KiB
TypeScript
Executable File
import { TextareaHTMLAttributes, forwardRef } from 'react'
|
|
import { clsx } from 'clsx'
|
|
|
|
interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
label?: string
|
|
error?: string
|
|
helperText?: string
|
|
}
|
|
|
|
const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(
|
|
({ label, error, helperText, className, ...props }, ref) => {
|
|
return (
|
|
<div className="w-full">
|
|
{label && (
|
|
<label className="block text-sm font-medium text-dark-200 mb-1.5">
|
|
{label}
|
|
</label>
|
|
)}
|
|
<textarea
|
|
ref={ref}
|
|
className={clsx(
|
|
'w-full px-4 py-2.5 bg-dark-900 border rounded-lg text-white placeholder-dark-500',
|
|
'focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent',
|
|
'transition-colors resize-none',
|
|
error ? 'border-red-500' : 'border-dark-700',
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
{error && <p className="mt-1 text-sm text-red-400">{error}</p>}
|
|
{helperText && !error && (
|
|
<p className="mt-1 text-sm text-dark-400">{helperText}</p>
|
|
)}
|
|
</div>
|
|
)
|
|
}
|
|
)
|
|
|
|
Textarea.displayName = 'Textarea'
|
|
|
|
export default Textarea
|