How vatshal27/sentialai works
SentinelAI’s checked-in product here is a VS Code client for a separately hosted local security backend. The main workflow gates scans on an eligible open workspace, collects files for a backend-supported profile, submits and polls a bounded job, presents findings and coverage, and persists completed results. Separate actions support runtime discovery, project validation, and synthetic Safe Simulation. The README describes backend scanning and runtime capabilities, but backend implementation is not in this tree; those internals are therefore represented only as an external service. The map reflects documented relationships and shown source references, not an inspection of unsampled implementation details.
Main entry points: extension.ts Extension commands · services.ts Backend API client · webview.ts Webview assembly · security-workbench.ts Scan job controller
Components 20
Extension orchestration
- Extension commands
src/extension.ts
Scan and runtime
- Workspace eligibility
src/extension.ts - Workspace collection
src/services.ts - Profile capabilities
src/services.ts - Scan job controller
src/security-workbench.ts - Backend API client
src/services.ts - Runtime discovery
src/services.ts - Project validation
src/extension.ts - Safe Simulation
src/extension.ts
Reporting
- Runtime report adapter
src/webview/runtime-report.ts - Unified report model
src/project-report.ts - Report persistence
src/report-persistence.ts
Workbench interface
- Webview assembly
src/webview.ts - Workbench controls
src/webview/script-workbench.ts - Findings display
src/webview/script-results.ts - Runtime display
src/webview/script-sandbox.ts
Other components
- Developer
- VS Code host
- Local backend
- Project report files
Connections 25
- Developer → Extension commands: invokes commands
README.md - VS Code host → Extension commands: hosts extension
README.md - Extension commands → Workspace eligibility: checks workspace
src/extension.ts - Extension commands → Workspace collection: collects files
src/extension.ts - Extension commands → Scan job controller: configures controller
src/extension.ts - Scan job controller → Profile capabilities: loads profiles
src/security-workbench.ts - Scan job controller → Backend API client: creates and polls jobs
src/security-workbench.ts - Backend API client → Local backend: sends scan requests
src/services.ts - Extension commands → Runtime discovery: requests discovery
src/services.ts - Extension commands → Project validation: starts validation
src/extension.ts - Extension commands → Safe Simulation: starts simulation
README.md - Project validation → Backend API client: submits validation
src/services.ts - Safe Simulation → Backend API client: submits simulation
src/services.ts - Backend API client → Local backend: requests runtime checks
src/services.ts - Project validation → Runtime report adapter: adapts result
src/extension.ts - Extension commands → Report persistence: persists completed result
src/extension.ts - Report persistence → Unified report model: merges and renders
src/report-persistence.ts - Report persistence → Project report files: writes JSON and Markdown
README.md - Extension commands → Webview assembly: opens panel
src/extension.ts - Webview assembly → Workbench controls: includes script
src/webview.ts - Webview assembly → Findings display: includes script
src/webview.ts - Webview assembly → Runtime display: includes script
src/webview.ts - Workbench controls → Extension commands: sends workbench messages
src/webview/script-workbench.ts - Findings display → VS Code host: renders findings in panel
- Runtime display → VS Code host: renders validation report