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>
76 lines
2.5 KiB
JavaScript
76 lines
2.5 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.RE_URL_WITH_PORT = exports.RE_URL = exports.RE_ZONE_STRING = exports.RE_SUBNET_STRING = exports.RE_BAD_ADDRESS = exports.RE_BAD_CHARACTERS = exports.TYPES = exports.SCOPES = exports.GROUPS = exports.BITS = void 0;
|
|
exports.BITS = 128;
|
|
exports.GROUPS = 8;
|
|
/**
|
|
* Represents IPv6 address scopes
|
|
* @memberof Address6
|
|
* @static
|
|
*/
|
|
exports.SCOPES = {
|
|
0: 'Reserved',
|
|
1: 'Interface local',
|
|
2: 'Link local',
|
|
4: 'Admin local',
|
|
5: 'Site local',
|
|
8: 'Organization local',
|
|
14: 'Global',
|
|
15: 'Reserved',
|
|
};
|
|
/**
|
|
* Represents IPv6 address types
|
|
* @memberof Address6
|
|
* @static
|
|
*/
|
|
exports.TYPES = {
|
|
'ff01::1/128': 'Multicast (All nodes on this interface)',
|
|
'ff01::2/128': 'Multicast (All routers on this interface)',
|
|
'ff02::1/128': 'Multicast (All nodes on this link)',
|
|
'ff02::2/128': 'Multicast (All routers on this link)',
|
|
'ff05::2/128': 'Multicast (All routers in this site)',
|
|
'ff02::5/128': 'Multicast (OSPFv3 AllSPF routers)',
|
|
'ff02::6/128': 'Multicast (OSPFv3 AllDR routers)',
|
|
'ff02::9/128': 'Multicast (RIP routers)',
|
|
'ff02::a/128': 'Multicast (EIGRP routers)',
|
|
'ff02::d/128': 'Multicast (PIM routers)',
|
|
'ff02::16/128': 'Multicast (MLDv2 reports)',
|
|
'ff01::fb/128': 'Multicast (mDNSv6)',
|
|
'ff02::fb/128': 'Multicast (mDNSv6)',
|
|
'ff05::fb/128': 'Multicast (mDNSv6)',
|
|
'ff02::1:2/128': 'Multicast (All DHCP servers and relay agents on this link)',
|
|
'ff05::1:2/128': 'Multicast (All DHCP servers and relay agents in this site)',
|
|
'ff02::1:3/128': 'Multicast (All DHCP servers on this link)',
|
|
'ff05::1:3/128': 'Multicast (All DHCP servers in this site)',
|
|
'::/128': 'Unspecified',
|
|
'::1/128': 'Loopback',
|
|
'ff00::/8': 'Multicast',
|
|
'fe80::/10': 'Link-local unicast',
|
|
};
|
|
/**
|
|
* A regular expression that matches bad characters in an IPv6 address
|
|
* @memberof Address6
|
|
* @static
|
|
*/
|
|
exports.RE_BAD_CHARACTERS = /([^0-9a-f:/%])/gi;
|
|
/**
|
|
* A regular expression that matches an incorrect IPv6 address
|
|
* @memberof Address6
|
|
* @static
|
|
*/
|
|
exports.RE_BAD_ADDRESS = /([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi;
|
|
/**
|
|
* A regular expression that matches an IPv6 subnet
|
|
* @memberof Address6
|
|
* @static
|
|
*/
|
|
exports.RE_SUBNET_STRING = /\/\d{1,3}(?=%|$)/;
|
|
/**
|
|
* A regular expression that matches an IPv6 zone
|
|
* @memberof Address6
|
|
* @static
|
|
*/
|
|
exports.RE_ZONE_STRING = /%.*$/;
|
|
exports.RE_URL = /^\[{0,1}([0-9a-f:]+)\]{0,1}/;
|
|
exports.RE_URL_WITH_PORT = /\[([0-9a-f:]+)\]:([0-9]{1,5})/;
|
|
//# sourceMappingURL=constants.js.map
|