Implements Phases 1-8 of the TFTSR implementation plan. Rust backend (Tauri 2.x, src-tauri/): - Multi-provider AI: OpenAI-compatible, Anthropic, Gemini, Mistral, Ollama - PII detection engine: 11 regex patterns with overlap resolution - SQLCipher AES-256 encrypted database with 10 versioned migrations - 28 Tauri IPC commands for triage, analysis, document, and system ops - Ollama: hardware probe, model recommendations, pull/delete with events - RCA and blameless post-mortem Markdown document generators - PDF export via printpdf - Audit log: SHA-256 hash of every external data send - Integration stubs for Confluence, ServiceNow, Azure DevOps (v0.2) Frontend (React 18 + TypeScript + Vite, src/): - 9 pages: full triage workflow NewIssue→LogUpload→Triage→Resolution→RCA→Postmortem→History+Settings - 7 components: ChatWindow, TriageProgress, PiiDiffViewer, DocEditor, HardwareReport, ModelSelector, UI primitives - 3 Zustand stores: session, settings (persisted), history - Type-safe tauriCommands.ts matching Rust backend types exactly - 8 IT domain system prompts (Linux, Windows, Network, K8s, DB, Virt, HW, Obs) DevOps: - .woodpecker/test.yml: rustfmt, clippy, cargo test, tsc, vitest on every push - .woodpecker/release.yml: linux/amd64 + linux/arm64 builds, Gogs release upload Verified: - cargo check: zero errors - tsc --noEmit: zero errors - vitest run: 13/13 unit tests passing Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
101 lines
3.8 KiB
TypeScript
101 lines
3.8 KiB
TypeScript
import type { Capabilities, Options, Services } from '@wdio/types';
|
|
import type { PathService } from '../types.js';
|
|
type Spec = string | string[];
|
|
interface TestrunnerOptionsWithParameters extends Options.Testrunner {
|
|
watch?: boolean;
|
|
coverage?: boolean;
|
|
spec?: string[];
|
|
suite?: string[];
|
|
repeat?: number;
|
|
capabilities?: Capabilities.TestrunnerCapabilities;
|
|
rootDir: string;
|
|
tsConfigPath?: string;
|
|
}
|
|
interface MergeConfig extends Omit<Partial<TestrunnerOptionsWithParameters>, 'specs' | 'exclude'> {
|
|
specs?: Spec[];
|
|
'wdio:specs'?: Spec[];
|
|
exclude?: string[];
|
|
'wdio:exclude'?: string[];
|
|
group?: boolean;
|
|
}
|
|
export default class ConfigParser {
|
|
#private;
|
|
/**
|
|
* config options parsed in via CLI arguments and applied before
|
|
* trying to compile config file
|
|
*/
|
|
private _initialConfig;
|
|
private _pathService;
|
|
private _config;
|
|
private _capabilities?;
|
|
constructor(configFilePath: string,
|
|
/**
|
|
* config options parsed in via CLI arguments and applied before
|
|
* trying to compile config file
|
|
*/
|
|
_initialConfig?: Partial<TestrunnerOptionsWithParameters>, _pathService?: PathService);
|
|
/**
|
|
* initializes the config object
|
|
*/
|
|
initialize(object?: MergeConfig): Promise<void>;
|
|
/**
|
|
* merges config file with default values
|
|
* @param {string} filename path of file relative to current directory
|
|
*/
|
|
private addConfigFile;
|
|
/**
|
|
* merge external object with config object
|
|
* @param {Object} object desired object to merge into the config object
|
|
* @param {boolean} [addPathToSpecs=true] this flag determines whether it is necessary to find paths to specs if the --spec parameter was passed in CLI
|
|
*/
|
|
private merge;
|
|
/**
|
|
* Add hooks from an existing service to the runner config.
|
|
* @param {object} service - an object that contains hook methods.
|
|
*/
|
|
addService(service: Services.Hooks): void;
|
|
/**
|
|
* determine what specs to run based on the spec(s), suite(s), exclude
|
|
* attributes from CLI, config and capabilities
|
|
*/
|
|
getSpecs(capSpecs?: Spec[], capExclude?: Spec[]): Spec[];
|
|
/**
|
|
* sets config attribute with file paths from filtering
|
|
* options from cli argument
|
|
*
|
|
* @param {string[]} cliArgFileList list of files in a string form
|
|
* @param {Object} config config object that stores the spec and exclude attributes
|
|
* cli argument
|
|
* @return {String[]} List of files that should be included or excluded
|
|
*/
|
|
setFilePathToFilterOptions(cliArgFileList: string[], specs: Spec[], group?: boolean): string[];
|
|
/**
|
|
* return configs
|
|
*/
|
|
getConfig(): Required<WebdriverIO.Config>;
|
|
/**
|
|
* return capabilities
|
|
*/
|
|
getCapabilities(i?: number): Capabilities.TestrunnerCapabilities | Capabilities.RequestedStandaloneCapabilities;
|
|
/**
|
|
* returns a flattened list of globbed files
|
|
*
|
|
* @param {String[] | String[][]} patterns list of files to glob
|
|
* @param {Boolean} omitWarnings to indicate omission of warnings
|
|
* @param {FileSystemPathService} findAndGlob system path service for expanding globbed file names
|
|
* @param {number} hierarchyDepth depth to prevent recursive calling beyond a depth of 1
|
|
* @return {String[] | String[][]} list of files
|
|
*/
|
|
static getFilePaths(patterns: Spec[], rootDir: string, findAndGlob?: PathService, hierarchyDepth?: number): Spec[];
|
|
/**
|
|
* returns specs files with the excludes filtered
|
|
*
|
|
* @param {String[] | String[][]} spec files - list of spec files
|
|
* @param {string[]} excludeList files - list of exclude files
|
|
* @return {String[] | String[][]} list of spec files with excludes removed
|
|
*/
|
|
filterSpecs(specs: Spec[], excludeList: string[]): Spec[];
|
|
shard(specs: Spec[]): Spec[];
|
|
}
|
|
export {};
|
|
//# sourceMappingURL=ConfigParser.d.ts.map
|