diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 075ec9a..77d4f53 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,7 +37,7 @@ jobs: uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.NUGET_PACKAGES }} - key: nuget-${{ runner.os }}-${{ hashFiles('global.json', 'Directory.Packages.props', '**/*.csproj') }} + key: nuget-${{ runner.os }}-${{ hashFiles('global.json', 'Directory.Build.props', '**/*.csproj') }} restore-keys: nuget-${{ runner.os }}- - name: Restore (NuGet audit fails on moderate+ advisories) @@ -82,7 +82,7 @@ jobs: uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.NUGET_PACKAGES }} - key: nuget-package-${{ runner.os }}-${{ hashFiles('global.json', 'Directory.Packages.props', '**/*.csproj', '.config/dotnet-tools.json') }} + key: nuget-package-${{ runner.os }}-${{ hashFiles('global.json', 'Directory.Build.props', '**/*.csproj', '.config/dotnet-tools.json') }} restore-keys: nuget-package-${{ runner.os }}- - name: Publish + pack (Velopack smoke test) diff --git a/scripts/pack.ps1 b/scripts/pack.ps1 index 26214ca..be531ef 100644 --- a/scripts/pack.ps1 +++ b/scripts/pack.ps1 @@ -5,12 +5,13 @@ .DESCRIPTION Produces, under Releases/: - CommandForge-win-Setup.exe, RELEASES, releases.win.json, *-full.nupkg, *-delta.nupkg + CommandForge-win-Setup.exe, CommandForge-win-Portable.zip, RELEASES, releases.win.json, + *-full.nupkg, *-delta.nupkg Update is per-user (no UAC). The Elevator is published into the same folder by the PublishElevatorOnPublish MSBuild target, so vpk packages it automatically. vpk is pinned as a local .NET tool (.config/dotnet-tools.json) and must match the Velopack - library version in Directory.Packages.props. + library version referenced by CommandForge.Infrastructure.csproj and CommandForge.Wpf.csproj. .PARAMETER Version SemVer package version, e.g. 2.0.0 (no leading 'v'). Should match the git tag vX.Y.Z. diff --git a/src/CommandForge.Application/Ports/ISettingsService.cs b/src/CommandForge.Application/Ports/ISettingsService.cs index fd8876b..08e84ee 100644 --- a/src/CommandForge.Application/Ports/ISettingsService.cs +++ b/src/CommandForge.Application/Ports/ISettingsService.cs @@ -39,7 +39,7 @@ public interface ISettingsService /// Whether the console auto-scrolls to the latest output (default ). public bool AutoScrollConsole { get; set; } - /// Whether to warn before closing/cancelling while a command is running (default ). + /// Whether to ask before closing the app while a command is running (default ). public bool WarnOnCancel { get; set; } /// The minimum log level captured by the logging pipeline (default ). @@ -51,16 +51,10 @@ public interface ISettingsService /// Recently-run command ids, most-recent first (default empty). Capped by the caller. public IReadOnlyList RecentCommandIds { get; set; } - /// - /// Retained for config back-compat only. The main window is now a fixed, non-resizable size, so this - /// value is no longer read or written; it round-trips untouched for users upgrading from older versions. - /// + /// Last main-window width in DIPs (restored size), or if never saved (default size). public double? WindowWidth { get; set; } - /// - /// Retained for config back-compat only. The main window is now a fixed, non-resizable size, so this - /// value is no longer read or written; it round-trips untouched for users upgrading from older versions. - /// + /// Last main-window height in DIPs (restored size), or if never saved (default size). public double? WindowHeight { get; set; } /// Last main-window left position, or if never saved (centre on launch). @@ -69,10 +63,7 @@ public interface ISettingsService /// Last main-window top position, or if never saved (centre on launch). public double? WindowTop { get; set; } - /// - /// Retained for config back-compat only. The main window can no longer be maximized, so this value is - /// no longer read or written; it round-trips untouched for users upgrading from older versions. - /// + /// Whether the main window was maximized when it was last closed. public bool WindowMaximized { get; set; } /// Persists the current settings to disk. diff --git a/src/CommandForge.Application/Search/NaturalLanguageSearch.cs b/src/CommandForge.Application/Search/NaturalLanguageSearch.cs index 77c50e2..7fdf537 100644 --- a/src/CommandForge.Application/Search/NaturalLanguageSearch.cs +++ b/src/CommandForge.Application/Search/NaturalLanguageSearch.cs @@ -2,7 +2,7 @@ namespace CommandForge.Application.Search; /// /// Local natural-language search: maps everyday EN/VI phrases to a catalog search keyword -/// (e.g. "clean disk" / "dọn ổ đĩa" → "cleanup"). 100% LOCAL — no LLM, no network (golden rule #5). +/// (e.g. "clean disk" / "dọn ổ đĩa" → "cleanup"). 100% LOCAL — no LLM, no network (golden rule #7). /// Phrases match whole words, ignoring case and accents ("pin" is battery, "typing" is not). /// public static class NaturalLanguageSearch diff --git a/src/CommandForge.Wpf/CrashHandlingService.cs b/src/CommandForge.Wpf/CrashHandlingService.cs index ef0ca56..bc04c5d 100644 --- a/src/CommandForge.Wpf/CrashHandlingService.cs +++ b/src/CommandForge.Wpf/CrashHandlingService.cs @@ -24,7 +24,7 @@ public sealed class CrashHandlingService _clipboard = clipboard; } - /// Wires the three global exception sources. Call once at startup after the host is built. + /// Wires the three global exception sources. Call once at startup, right after the service provider is built. public void Hook() { if (System.Windows.Application.Current is { } app) diff --git a/src/CommandForge.Wpf/Services/IDialogService.cs b/src/CommandForge.Wpf/Services/IDialogService.cs index 6f2a515..0af46dc 100644 --- a/src/CommandForge.Wpf/Services/IDialogService.cs +++ b/src/CommandForge.Wpf/Services/IDialogService.cs @@ -2,7 +2,7 @@ namespace CommandForge.Desktop.Services; /// /// Modal prompts used by view-models. Behind an interface so view-models stay testable and the -/// presentation (message boxes today, Fluent dialogs later) can change without touching them. +/// presentation (Fluent in-window dialogs, with a message-box fallback) can change without touching them. /// public interface IDialogService { diff --git a/tests/CommandForge.Tests/CommandForge.Tests.csproj b/tests/CommandForge.Tests/CommandForge.Tests.csproj index 7d9db06..61f651a 100644 --- a/tests/CommandForge.Tests/CommandForge.Tests.csproj +++ b/tests/CommandForge.Tests/CommandForge.Tests.csproj @@ -23,7 +23,7 @@ - +