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>
80 lines
3.2 KiB
JavaScript
80 lines
3.2 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
function _export(target, all) {
|
|
for(var name in all)Object.defineProperty(target, name, {
|
|
enumerable: true,
|
|
get: all[name]
|
|
});
|
|
}
|
|
_export(exports, {
|
|
flagEnabled: function() {
|
|
return flagEnabled;
|
|
},
|
|
issueFlagNotices: function() {
|
|
return issueFlagNotices;
|
|
},
|
|
default: function() {
|
|
return _default;
|
|
}
|
|
});
|
|
const _picocolors = /*#__PURE__*/ _interop_require_default(require("picocolors"));
|
|
const _log = /*#__PURE__*/ _interop_require_default(require("./util/log"));
|
|
function _interop_require_default(obj) {
|
|
return obj && obj.__esModule ? obj : {
|
|
default: obj
|
|
};
|
|
}
|
|
let defaults = {
|
|
optimizeUniversalDefaults: false,
|
|
generalizedModifiers: true,
|
|
disableColorOpacityUtilitiesByDefault: false,
|
|
relativeContentPathsByDefault: false
|
|
};
|
|
let featureFlags = {
|
|
future: [
|
|
"hoverOnlyWhenSupported",
|
|
"respectDefaultRingColorOpacity",
|
|
"disableColorOpacityUtilitiesByDefault",
|
|
"relativeContentPathsByDefault"
|
|
],
|
|
experimental: [
|
|
"optimizeUniversalDefaults",
|
|
"generalizedModifiers"
|
|
]
|
|
};
|
|
function flagEnabled(config, flag) {
|
|
if (featureFlags.future.includes(flag)) {
|
|
var _config_future;
|
|
var _config_future_flag, _ref;
|
|
return config.future === "all" || ((_ref = (_config_future_flag = config === null || config === void 0 ? void 0 : (_config_future = config.future) === null || _config_future === void 0 ? void 0 : _config_future[flag]) !== null && _config_future_flag !== void 0 ? _config_future_flag : defaults[flag]) !== null && _ref !== void 0 ? _ref : false);
|
|
}
|
|
if (featureFlags.experimental.includes(flag)) {
|
|
var _config_experimental;
|
|
var _config_experimental_flag, _ref1;
|
|
return config.experimental === "all" || ((_ref1 = (_config_experimental_flag = config === null || config === void 0 ? void 0 : (_config_experimental = config.experimental) === null || _config_experimental === void 0 ? void 0 : _config_experimental[flag]) !== null && _config_experimental_flag !== void 0 ? _config_experimental_flag : defaults[flag]) !== null && _ref1 !== void 0 ? _ref1 : false);
|
|
}
|
|
return false;
|
|
}
|
|
function experimentalFlagsEnabled(config) {
|
|
if (config.experimental === "all") {
|
|
return featureFlags.experimental;
|
|
}
|
|
var _config_experimental;
|
|
return Object.keys((_config_experimental = config === null || config === void 0 ? void 0 : config.experimental) !== null && _config_experimental !== void 0 ? _config_experimental : {}).filter((flag)=>featureFlags.experimental.includes(flag) && config.experimental[flag]);
|
|
}
|
|
function issueFlagNotices(config) {
|
|
if (process.env.JEST_WORKER_ID !== undefined) {
|
|
return;
|
|
}
|
|
if (experimentalFlagsEnabled(config).length > 0) {
|
|
let changes = experimentalFlagsEnabled(config).map((s)=>_picocolors.default.yellow(s)).join(", ");
|
|
_log.default.warn("experimental-flags-enabled", [
|
|
`You have enabled experimental features: ${changes}`,
|
|
"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."
|
|
]);
|
|
}
|
|
}
|
|
const _default = featureFlags;
|