71 Commits

Author SHA1 Message Date
PrimeBuild-pc 2e98dda635 Fix git-cliff installation in release workflow v1.1.3 2026-05-09 23:49:09 +02:00
PrimeBuild-pc fbced16e56 Prepare v1.1.3 release metadata 2026-05-09 23:32:53 +02:00
Prime Build 4fceda163d Perf/professional hardening (#4)
* Improve background refresh and process detection

* Harden affinity and power plan automation

* Fix passive process refresh failures

* Improve UX terminology and process layout

* Polish UX layout and empty states

* Expand core service test coverage
2026-05-09 23:15:49 +02:00
PrimeBuild-pc 2382c47789 Reduce background refresh overhead 2026-05-09 12:02:42 +02:00
PrimeBuild-pc d0f38aa914 Fix package manager release manifests 2026-05-09 12:02:36 +02:00
PrimeBuild-pc 30a572a9da Update Chocolatey package to v1.1.2.1
Bump threadpilot Chocolatey package to 1.1.2.1 and include fix artifact. Adds threadpilot-1.1.2.1-fix.zip and placeholder chocolatey files (cd, choco). Simplifies silent install arguments and adds exit code 1 to validExitCodes in chocolateyInstall.ps1 to better handle installer return values. Also add CHOCOLATEY_MODERATOR_NOTICE.md to .gitignore.
2026-05-07 02:10:04 +02:00
PrimeBuild-pc b0bfe6ee18 setup .exe checksum update chocolatey-fix-1.1.2.1 2026-05-07 00:26:33 +02:00
PrimeBuild-pc 88caa61f08 Add ThreadPilot v1.1.2 installer URL and checksum
Replace placeholder installer metadata in chocolatey/tools/chocolateyInstall.ps1 with the actual ThreadPilot v1.1.2 installer URL and SHA256 checksum. Also add a short comment indicating the installer version. This ensures the Chocolatey package installs the correct release rather than relying on automation-time substitutions.
2026-05-06 18:33:40 +02:00
PrimeBuild-pc 69cc510bc1 Harden services and release coverage pipeline 2026-04-21 19:50:56 +02:00
PrimeBuild-pc 8901150818 Add winget and Chocolatey publish automation
Add automated publish jobs to the release workflow and supporting scripts/docs. .github/workflows/release.yml gains publish-winget and publish-chocolatey jobs that gate on repository secrets, download release artifacts, and either submit a winget-pkgs PR or push a Chocolatey package when the release succeeds. Added build/submit-winget-pr.ps1 to create a fork branch, add manifests and open a PR to microsoft/winget-pkgs, and build/publish-chocolatey.ps1 to pack and push a Chocolatey nupkg (handling idempotent already-exists cases). README.md and docs/release/PACKAGING.md updated to document the new automation and required secrets (WINGET_GITHUB_TOKEN, WINGET_FORK_OWNER, CHOCOLATEY_API_KEY).
2026-04-21 03:01:07 +02:00
PrimeBuild-pc a27906291c Pin git-cliff; remove vendored gitleaks-bin
Replace Docker/action-based changelog generation with a runner-native, pinned git-cliff install (GIT_CLIFF_VERSION=2.10.0) and checksum verification in the release workflow. Update the changelog step to run git-cliff and emit release notes to GITHUB_OUTPUT.

Add .gitignore patterns to prevent committing gitleaks binaries/archives and remove the vendored gitleaks-bin directory and files. Add build/close-secret-scanning-alerts.ps1: a gh-cli-driven PowerShell tool to list and optionally resolve open GitHub secret-scanning alerts (dry-run by default).

Update CONTRIBUTING, RELEASE_RUNBOOK, COMPLIANCE_AUDIT, and SECURITY_CHECKLIST docs with a security tooling policy: do not vendor scanner binaries, install scanners at CI runtime, and document the remediation rationale. These changes address recurring secret-scanning false positives and improve release reproducibility and supply-chain hygiene.
2026-04-21 02:49:38 +02:00
PrimeBuild-pc 6c5f4e0e54 Update README.md 2026-04-21 01:20:31 +02:00
PrimeBuild-pc 0639e0858c chore(release): prepare v1.1.2 release alignment v1.1.2 2026-04-21 01:12:41 +02:00
PrimeBuild-pc 8adea37188 Make installers unattended; add release asset validation
Switch the release job runner to ubuntu-latest and add a validation step to ensure required release artifacts exist (installer .exe, package .zip, SHA256SUMS, winget manifests, and SBOM). Update Installer/setup.iss to disable the Ready page and remove the post-install auto-launch so package-manager installs remain unattended. Improve Chocolatey scripts: add additional silent flags and include common restart exit codes (3010, 1641) for both install and uninstall; make uninstall parsing robust by extracting the executable and base args from the registry UninstallString before invoking Uninstall-ChocolateyPackage.
2026-04-20 22:26:56 +02:00
Prime Build 88faf8a28e Update README title to remove version number
Removed version number from the project title.
2026-04-20 21:51:21 +02:00
PrimeBuild-pc 63886b497f fix(release): resolve sbom manifest path under artifacts 2026-04-16 02:18:06 +02:00
PrimeBuild-pc 4897aa25db fix(release): stabilize sbom artifact path and upload 2026-04-16 02:07:04 +02:00
PrimeBuild-pc fc2d26e324 fix(ci): track publish profiles for release workflow 2026-04-16 01:57:57 +02:00
PrimeBuild-pc cae2764803 chore(release): prepare 1.1.2 manifests for winget and chocolatey 2026-04-16 01:54:18 +02:00
PrimeBuild-pc f97bf16d52 Merge branch 'main' of https://github.com/PrimeBuild-pc/ThreadPilot 2026-04-16 01:32:46 +02:00
PrimeBuild-pc 606065475d Update LogViewerView.xaml 2026-04-16 01:32:42 +02:00
PrimeBuild-pc a5a832c80b Require admin privileges at startup
Switch the application to require administrator elevation at launch (change manifest to requireAdministrator) and enforce early exit when not elevated. Update App.xaml.cs to log elevation failures, show an elevation-required message, and shut down non-elevated instances (preserving a smoke-test conditional). Update user-facing dialogs and README/TROUBLESHOOTING/SECURITY/PACKAGING docs to reflect the new startup privilege model and packaging requirement.
2026-04-16 01:21:04 +02:00
Prime Build a920abe1d3 Delete RELEASE_PLAN.md 2026-04-16 00:54:03 +02:00
PrimeBuild-pc 25ecb54646 Make Windows 11 first-class, add security policy
Update project to emphasize Windows 11 support and add a security policy, plus small runtime and packaging fixes.

Changes:
- README: simplify Windows badge and update requirements to Windows 11 (Build 22000+).
- Installer (setup.iss): set MinVersion=10.0.22000.
- app.manifest: remove legacy Windows supportedOS IDs and keep PerMonitorV2 DPI setting.
- docs/TROUBLESHOOTING.md: remove Windows 10-specific startup troubleshooting (Windows 11-first messaging).
- Add SECURITY.md pointing to docs/SECURITY.md for the full policy and disclosure process.
- .gitignore: ignore FINAL_RELEASE_PLAN.md and RELEASE_PLAN.md.
- Services/SecurityService.cs: introduce MaxLogTokenLength constant and replace hard-coded 200 when truncating log tokens.
- App.xaml.cs: await settingsService.LoadSettingsAsync() with ConfigureAwait(false) and adjust service activations.
2026-04-16 00:53:12 +02:00
PrimeBuild-pc efb757d733 Add ElevatedTaskService and remove MSIX packaging
Introduce IElevatedTaskService and ElevatedTaskService to manage scheduled-task based elevated launch and autostart. Update App.xaml.cs to bootstrap elevation, attempt managed elevated launch, and handle task registration markers. Refactor AutostartService to delegate autostart operations to the elevated task service, remove legacy registry usage where appropriate, add logging, and update DI registration and unit tests. Remove MSIX packaging support and related tooling: delete build/build-msix.ps1, remove MSIX publish/validation/upload steps from GitHub Actions, drop MSIX-related csproj targets and EnableMsixTooling, and update docs/README/.gitignore to no longer reference MSIX artifacts.
2026-04-16 00:31:19 +02:00
PrimeBuild-pc 2806662072 Use RUNNER_TEMP for gitleaks and add flags
Download and extract gitleaks into a temporary RUNNER_TEMP directory ($toolDir) and remove any existing copy before extraction. Adjust Expand-Archive/tar commands to use $toolDir and resolve the executable from that path. Add a step to remove vendored tool docs from the scan scope to avoid known false positives. Run gitleaks with --no-git and --exit-code 1 so the scan targets the working tree and fails the job on findings.
2026-04-15 23:47:18 +02:00
PrimeBuild-pc 594a3c4b85 Refactor MainWindow behaviors into partial class
Move and centralize MainWindow behavior/logic into a new partial file and tidy related viewmodel/service code.

- Add MainWindow.Behaviors.partial.cs containing initialization, loading overlay, view model loading, service setup, system tray management, monitoring lifecycle, keyboard shortcuts, elevation/performance overlays, graceful shutdown and related helpers (moved out of MainWindow.xaml.cs).
- Remove duplicated behavior code from MainWindow.xaml.cs.
- Add ProcessViewModel.Behaviors.partial.cs and update ViewModels/ProcessViewModel.cs to separate behavior logic from core viewmodel.
- Update Models/ProcessModel.cs and services (GameDetectionService.cs, ProcessMonitorService.cs, ProcessService.cs) to align with the refactor and improve robustness (timeouts, fallbacks, logging and error handling).

Reason: reduce MainWindow.xaml.cs size, improve separation of concerns and maintainability, and introduce more resilient startup/shutdown and tray/update logic.
2026-04-15 23:13:11 +02:00
PrimeBuild-pc c9253f879d Enhance CI/release workflow and app robustness
Add comprehensive CI and release improvements (coverage collection, Codecov upload, SBOM generation), split release workflow into build/smoke-test/release stages with deterministic version resolution, artifact uploads, winget manifest updates and changelog generation. Add a pre-commit hook to block large or unwanted artifacts. Introduce runtime improvements: smoke-test startup mode, improved unhandled/dispatcher/task-exception reporting, ThreadPilotException error codes, single-instance behavior adjustments, and logging enhancements. UI and UX changes include a new Logs tab and LogViewer wiring, DWM title-bar theming helper, navigation serialization/unsaved-changes guard, system-tray update backoff logic, and related viewmodel/service integrations. Also add installer template, helper classes, tests, docs, packaging and build scripts, and minor .gitignore updates.
2026-04-15 22:38:35 +02:00
PrimeBuild-pc 275ac72fa9 Add installer build script, docs; tweak UI/theme
Add a PowerShell installer builder (build/build-installer.ps1) and a pre-tag release checklist (docs/plans/PRE_TAG_RELEASE_CHECKLIST.md); update packaging docs to recommend the new script and document Inno Setup theming. Make Inno Setup scripts (Installer/setup.iss and Installer/Installer.iss) more configurable by introducing MyWizardStyle and guarding MyAppBuildDir so WizardStyle can use dynamic Windows theming. Persist system theme preference when the user has no explicit preference (App.xaml.cs and MainWindow.xaml.cs) and switch to IsHitTestVisible for the performance-overlay blur to avoid disabling input globally. Prevent closing the app while the performance intro is visible with a user-facing message. Minor .gitignore cleanup and packaging text updates.
2026-04-15 02:25:36 +02:00
PrimeBuild-pc f6f9822828 Elevation modal, overlay refactor and perf tweaks
Refactor UI overlays and add an elevation warning modal; improve performance monitoring and refresh behavior.

- UI: Reworked MainWindow XAML to consolidate content into UIContent, replaced AppContentLayer/backdrop animations with style-driven blur, added ElevationWarningOverlay (shell-style elevation prompt), reorganized PerformanceIntro and Loading overlays, and added popup overlay in PerformanceView.
- MainWindow logic: Added ApplyUIContentBlur/ClearUIContentBlur helpers, elevation warning show/dismiss/request handlers (with persisted HasSeenElevationWarning), suspend/resume logic for system-tray and background refreshes when hidden, and concurrency guards for system-tray updates.
- Services/API: IPerformanceMonitoringService now supports a lightweight GetSystemMetricsAsync(bool lightweight) call. PerformanceMonitoringService caches total physical memory, skips expensive metrics for lightweight calls, increases monitoring interval to 2s, and adds re-entrancy guards.
- ViewModels: PerformanceViewModel gains popup state/commands and blur binding; PowerPlanViewModel can pause/resume auto-refresh, increased refresh interval to 10s and added concurrency protection.

These changes reduce startup and background resource usage, prevent timer overlap, and introduce a clear user-facing elevation prompt while preserving existing behavior via settings.
2026-04-15 00:59:49 +02:00
PrimeBuild-pc 1ab85b21bd Release 1.1.1: installer, elevation & onboarding
Bump release to v1.1.1 and add release/build packaging, installer and onboarding enhancements. Key changes:

- Version bump across csproj, README and release assets to 1.1.1.
- CI/workflow: copy bundled Powerplans into single-file output, install Inno Setup, build Inno Setup installer, include installer artifacts in GitHub release, and stage unified package zips with uninstall/license files.
- Installer: update InstallScript (setup.iss) to point to staged artifacts, include Powerplans folder, and output installer to artifacts/release/installer.
- App startup/elevation: requireAdministrator manifest and App.xaml.cs now requests elevation early, terminating non-elevated instance when elevation is requested/declined.
- UX: add Performance first-run onboarding overlay (modal with blurred background), updated loading overlay visuals, and related MainWindow logic to show/hide intro and persist seen state.
- Settings & config: implement export/import configuration bundle (JSON) with Save/Open dialogs, add ReplaceConfigurationAsync and CloneConfiguration in association service, and adjust settings view labels.
- Power plan features: add PowerPlanService.AddCustomPowerPlanFileAsync and UI/command to add .pow files; adjust Import/Apply button labels.
- Performance tweaks: reduce power plan change delay from 1000ms to 250ms in config, models and viewmodels.
- Theme detection: improve ThemeService to resolve registry values and fallback to system theme helper.
- Misc: various logging/status improvements, packaging script fixes (build-release/build-msix), and added package-release-zips script.

These changes prepare the project for a formal 1.1.1 release with installer distribution, improved elevation handling and onboarding, plus enhanced import/export and custom power plan support.
2026-04-14 03:22:06 +02:00
PrimeBuild-pc 2965c9049b Merge branch 'main' of https://github.com/PrimeBuild-pc/ThreadPilot v1.1.1 2026-04-13 18:26:38 +02:00
PrimeBuild-pc 679d66afaf fix of the CodeQL warning 2026-04-13 18:26:36 +02:00
Prime Build 6357fd2457 Delete docs/CHANGELOG.md 2026-04-13 12:48:03 +02:00
Prime Build 585893e11f Delete CHANGELOG.md 2026-04-13 12:47:45 +02:00
Prime Build a478bba9e3 Delete CODE_OF_CONDUCT.md 2026-04-13 12:47:35 +02:00
Prime Build 15546c37d9 Delete SECURITY.md 2026-04-13 12:47:15 +02:00
Prime Build 70b25a6fc0 Delete CONTRIBUTING.md 2026-04-13 12:46:50 +02:00
PrimeBuild-pc 040ba8de5d docs: compact root governance files into docs/ with root stubs - Move CHANGELOG.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md → docs/ - Create lightweight redirect stubs in root (for easy access and GitHub compatibility) - Update all internal links in README.md and documentation - Verified: no broken references, regex scan clean - Build + dotnet publish (MSIX) successful Part of root cleanup initiative (Phase 2) 2026-04-13 12:45:52 +02:00
PrimeBuild-pc 3d00d00cb0 chore: safe root cleanup phase 1 - Refactor .gitignore (più leggibile + pattern moderni) - Move build scripts → build/ - Move installer → Installer/ - Move ico.ico and Powerplans → assets/ - Move TRADEMARK.md → docs/legal/TRADEMARK.md (with root bridge) - Update all internal references (csproj, XAML, C#, .iss, .ps1, docs) - Verified: restore + build + test + publish (SingleFile + MSIX) OK" 2026-04-13 12:39:05 +02:00
Prime Build af4941ba2f Update PayPal link formatting in README 2026-04-12 18:17:49 +02:00
Prime Build 4ada5e8f78 Update README.md 2026-04-12 18:16:57 +02:00
PrimeBuild-pc 40fe057602 chore: final repository cleanup and release packaging for v1.1.0 2026-04-12 18:06:29 +02:00
PrimeBuild-pc 3dcec45c1b chore: final enterprise polish and release preparation for v1.1.0 v1.1.0 2026-04-12 17:46:38 +02:00
PrimeBuild-pc acfd8dca7e Switch project license to AGPLv3 and test visibility
Replaces the project's license from GNU GPL v3 to the GNU Affero General Public License v3: updated LICENSE (full AGPL text) and updated license headers across source files. Adds InternalsVisibleTo("ThreadPilot.Core.Tests") (plus using System.Runtime.CompilerServices) in AssemblyInfo to allow test access to internal types. Also introduces Services/TaskSafety.cs and two new test files under Tests/ThreadPilot.Core.Tests to cover task safety. These changes apply the AGPLv3 terms and enable internal API access for unit tests.
2026-04-12 16:57:52 +02:00
PrimeBuild-pc e3b6d1b81e Merge branch 'main' of https://github.com/PrimeBuild-pc/ThreadPilot 2026-04-12 16:37:08 +02:00
PrimeBuild-pc 8a061c4ab0 chore: initial enterprise setup - governance, CI/CD, security hardening batch 1 2026-04-12 16:34:25 +02:00
Prime Build a5d39b8e7c Update screenshot in README.md 2026-04-12 01:28:16 +02:00
PrimeBuild-pc 4d0642d3d0 Update ci-devsecops.yml 2026-04-12 01:08:01 +02:00
PrimeBuild-pc 74922890c8 Adopt Wpf.Ui FluentWindow and revamp UI
Replace Window with Wpf.Ui FluentWindow and integrate Wpf.Ui theme dictionaries and controls; migrate main navigation from TabControl to NavigationView with TitleBar, navigation items and view visibility management, improved startup overlay with blur/fade animations, and updated status bar. Converters now resolve brushes from application resources for theming. CpuTopologyService: add Windows API (GetLogicalProcessorInformationEx) detection, richer structures, improved HT/core type heuristics, labeling and affinity presets; fallbacks and WMI usage preserved. System tray: add ApplyTheme method, custom menu font handling and related calls. NotificationService: standardize display duration via a constant. Misc: XAML/resource adjustments, minor view/viewmodel wiring, and .gitignore updated to include implementation_plan.md.
2026-04-12 01:04:58 +02:00