Files
xingrin/frontend/types/engine.types.ts
yyhuni 3a6d8775a4 chore: update CI workflows and add new test configurations
- Added a new test workflow to run comprehensive tests for the worker, server, and agent components.
- Updated the main CI configuration to include the new test workflow.
- Added a new Makefile for the agent to manage build, run, test, and lint tasks.
- Updated .gitignore to exclude additional IDE files.
- Removed redundant test steps from the CI configuration for cleaner execution.
2026-02-02 23:25:09 +08:00

38 lines
1.0 KiB
TypeScript

/**
* Scan engine type definitions
*
* Backend actual return fields: id, name, configuration, created_at, updated_at
*/
// Scan engine interface (user-created, stored in database)
export interface ScanEngine {
id: number
name: string
configuration?: string // YAML configuration content
isValid?: boolean // Whether configuration is compatible with current schema
createdAt: string
updatedAt: string
}
// Preset engine interface (system-defined, read from files)
// Note: enabledFeatures is parsed by frontend from configuration using parseEngineCapabilities()
export interface PresetEngine {
id: string // e.g., "full_scan", "quick_scan"
name: string // Display name
description?: string // Brief description
configuration: string // YAML configuration content
}
// Create engine request
export interface CreateEngineRequest {
name: string
configuration: string
}
// Update engine request
export interface UpdateEngineRequest {
name?: string
configuration?: string
}