feat: GitHub Release Management v1.3.0 - Version menu, dev-mode, downgrade support

This commit is contained in:
2026-02-16 23:39:41 +01:00
parent 441198dd8d
commit ad4cfaf4ec
10 changed files with 687 additions and 81 deletions

View File

@@ -101,6 +101,23 @@ try {
console.log("✅ Static Analysis Passed: 'appendChild(icon)' found.");
}
// Check for GitHub Release Management functions
const checks = [
[/GITHUB_API/, 'GITHUB_API constant'],
[/function\s+fetchVersions/, 'fetchVersions function'],
[/function\s+isNewer/, 'isNewer function'],
[/function\s+openVersionMenu/, 'openVersionMenu function'],
[/kantine_dev_mode/, 'dev-mode localStorage key']
];
for (const [regex, label] of checks) {
if (!regex.test(code)) {
console.error(`❌ Static Analysis Failed: '${label}' not found.`);
process.exit(1);
}
}
console.log("✅ Static Analysis Passed: All GitHub Release Management functions found.");
// Check dynamic logic usage
// Note: Since we mock fetch to fail for menu data, the app might perform error handling.
// We just want to ensure it doesn't CRASH (exit code) and that our specific feature logic ran.