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>
75 lines
2.7 KiB
TypeScript
75 lines
2.7 KiB
TypeScript
import { SevereServiceError } from 'webdriverio';
|
|
import type { Capabilities, Services } from '@wdio/types';
|
|
import type { OnCompleteResult, ReplCommandArguments } from './types.js';
|
|
export declare class HookError extends SevereServiceError {
|
|
origin: string;
|
|
constructor(message: string, origin: string);
|
|
}
|
|
/**
|
|
* run service launch sequences
|
|
*/
|
|
export declare function runServiceHook(launcher: Services.ServiceInstance[], hookName: keyof Services.HookFunctions, ...args: unknown[]): Promise<undefined>;
|
|
/**
|
|
* Run hook in service launcher
|
|
* @param {Array|Function} hook - can be array of functions or single function
|
|
* @param {object} config
|
|
* @param {object} capabilities
|
|
*/
|
|
export declare function runLauncherHook(hook: Function | Function[], ...args: unknown[]): Promise<void | any[]>;
|
|
/**
|
|
* Run onCompleteHook in Launcher
|
|
* @param {Array|Function} onCompleteHook - can be array of functions or single function
|
|
* @param {*} config
|
|
* @param {*} capabilities
|
|
* @param {*} exitCode
|
|
* @param {*} results
|
|
*/
|
|
export declare function runOnCompleteHook(onCompleteHook: Function | Function[], config: WebdriverIO.Config, capabilities: Capabilities.TestrunnerCapabilities, exitCode: number, results: OnCompleteResult): Promise<(0 | 1)[]>;
|
|
/**
|
|
* get runner identification by caps
|
|
*/
|
|
export declare function getRunnerName(caps?: WebdriverIO.Capabilities): string;
|
|
export declare function findInConfig(config: string, type: string): RegExpMatchArray | null;
|
|
export declare function getCapabilities(arg: ReplCommandArguments): Promise<{
|
|
capabilities: {
|
|
deviceName: string;
|
|
platformVersion: string;
|
|
udid: string;
|
|
platformName: string;
|
|
automationName: string;
|
|
app: string;
|
|
browserName?: undefined;
|
|
};
|
|
} | {
|
|
capabilities: {
|
|
deviceName: string;
|
|
platformVersion: string;
|
|
udid: string;
|
|
platformName: string;
|
|
automationName: string;
|
|
browserName: string;
|
|
};
|
|
} | {
|
|
capabilities: {
|
|
alwaysMatch: WebdriverIO.Capabilities;
|
|
firstMatch: WebdriverIO.Capabilities[];
|
|
browserName?: undefined;
|
|
};
|
|
} | {
|
|
capabilities: {
|
|
browserName: string;
|
|
};
|
|
}>;
|
|
type CLIParams = {
|
|
[x: string]: boolean | string | number | (string | boolean | number)[];
|
|
};
|
|
export declare function coerceOpts(types: Record<string, string>, opts: CLIParams): CLIParams;
|
|
export declare function coerceOptsFor(framework: 'cucumber' | 'mocha' | 'jasmine'): (opts: CLIParams) => CLIParams;
|
|
declare enum NodeVersion {
|
|
'major' = 0,
|
|
'minor' = 1,
|
|
'patch' = 2
|
|
}
|
|
export declare function nodeVersion(type: keyof typeof NodeVersion): number;
|
|
export {};
|
|
//# sourceMappingURL=utils.d.ts.map
|