The GitHub account is gone, and with it the update feed and every link the
app opened. Velopack now reads https://releases.poli0981.dev/commandforge
(an HTTP source, ProductLinks.UpdateFeed); 404 / 403 / 429 / 5xx / offline
are still told apart, and their messages name "the update server" instead of
GitHub (Cloudflare's edge answers 403 when it refuses and 429 when it
limits).
ProductLinks: the source, user guide, accessibility statement and the four
legal texts on Gitea (the Legal pages read them from ProductLinks instead of
four hard-coded GitHub URLs); issues on the GitLab mirror, since Gitea's
registration is closed. Report a bug opens a new GitLab issue with the title
and the answered Bug template (.gitlab/issue_templates/Bug.md) as its
description; a test keeps the app's sections and checklist equal to the
template's.
Strings in all five languages: "Source code" (was "GitHub"), "Read the full
text online", "Open issue on GitLab", and the privacy and auto-check texts
name releases.poli0981.dev. Keys Settings_GitHub and LegalGateReadOnGitHub
become Settings_SourceCode and LegalGateReadFullText. A new test fails if any
source file links to github.com/poli0981 again.
The terms version stays 1.1: the update check sends the same request, only
to another host.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An accessibility review of every screen, with the keyboard alone, Narrator
and Axe.Windows:
- Screen readers hear what appears: a run starting, waiting for admin
permission and finishing (result, exit code, time, restart needed), a
search's result count, the Command Palette's highlighted result and its
position, every notification and an update's progress. WPF ignores
LiveSetting, so these go through AutomationPeer.RaiseNotificationEvent.
- The console and the Log viewer are read line by line; an error line says
so and has a bar at its left, not only a colour; a blank line is read as
one.
- Lists and buttons are read by their text instead of a type name; catalog
rows carry their risk and badges as item status; a button repeated on
every row names its row ("Undo: Flush DNS cache").
- WPF-UI template parts get names: the pane toggle and its two lists, the
caption buttons, the clear button, the card expander headers. Icon glyphs
(private-use characters) are kept out of the UI Automation tree
(DecorativeIcon, GlyphHost), and an info bar's title and message, which
the tree leaves out, are read through its severity icon.
- Keyboard: F6 moves between the pane, the page and the console; the focus
moves into the page after navigation; Enter opens a command in the
catalog and in History; Tab reaches a row's buttons; the splitters move
with the arrow keys; every window and dialog starts with the keyboard
inside it, a Caution confirmation on Cancel; Ctrl+Q does not quit while
typing; page frames are no longer empty Tab stops.
- Seeing the screen: Windows' Text size multiplies the app's font size
(the navigation pane widens at the largest sizes, badges and filters
wrap); dimmed text is drawn at full strength under contrast themes;
secondary text is darker; cut-off text has a tooltip; page transitions
follow Windows' Animation effects setting.
- Tests: XAML rules (names, list items, headings, splitters, colours,
icons) and the pure helpers behind the announcements and sizes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- SystemProcessRunner: build the ProcessStartInfo before the Process, so a program that can't
be resolved leaves no undisposed Process behind (an object initializer runs outside `using`).
- JsonExecutionHistoryService: read the history under the lock it is replaced under.
- SingleInstanceGuard: a collection expression for the wait handles.
- AboutView: explicit Grid.Row/Grid.Column on every cell of the contact grid.
- Tests: no redundant casts, name qualifiers or unused lambda parameters.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings > Advanced and Portable info showed "Installed" or
"Portable / dev". The official portable zip counts as installed
(it carries Velopack's updater), so "Portable / dev" only ever meant
a build run from source. The labels now read "Installed or portable
(updates itself)" and "Development build (doesn't update)", in all
five languages; the key is renamed to Settings_RunModeDev.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The app now follows Windows 11: Mica window with its own title bar, a
navigation pane, in-window dialogs, snackbars and the system accent color.
MaterialDesignThemes is gone.
- Shell: resizable FluentWindow (min 960x600) that remembers its size,
position and maximized state. The title bar has a command search box
(Ctrl+K), an admin-session indicator with "End admin session", and a More
menu. The pane has Home, Favorites, History, Recipes, My commands and the
catalog with its twelve categories and counts; the selection stays in sync
with the view-model through NavigationKey.
- MainViewModel keeps the shell only; the catalog's browsing, filters,
detail and run logic moved to CatalogViewModel. The catalog gets risk and
admin-only filter chips, the estimated duration and an expanded command
line in the detail panel, and a splitter between detail and console.
- One shared console for catalog, recipes and user commands: virtualized,
batched, capped at 10,000 lines with a "N earlier lines" note, Copy all,
Save to file, "Waiting for administrator permission…" status and Restart
now (asks first, never while a command runs).
- Confirmation, update and bug-report dialogs are Fluent content dialogs;
Cancel stays the default and Run appears for a Dangerous command only
once its name or id is typed. The Legal Gate, terms viewer, crash dialog
and command palette are Fluent windows; the Legal Gate lets you pick the
language first.
- Theme: light, dark or system through ApplicationThemeManager, accent from
Windows, High Contrast always wins. Font size scales every text and
control live. Pages set the theme text color themselves (the navigation
frame doesn't pass it down), and list text dims instead of recoloring so
it stays readable on a selected row; search matches are bold and
underlined.
- A finished run notifies with a snackbar (and flashes the taskbar button)
when the console isn't visible; the taskbar shows progress while running.
- Catalog icons map to Fluent System Icons (IconMap), checked by a test.
- The presentation namespace is now CommandForge.Desktop: a namespace named
CommandForge.Wpf hid WPF-UI's root namespace in XAML-generated code. The
project, assembly and exe keep the name CommandForge.Wpf.
- IElevationService raises SessionChanged when the elevated helper starts or
stops.
- Strings: about 45 new keys in all five languages; twelve unused keys
removed. A test now scans the UI sources so every key the XAML or code
uses must exist in every language.
BREAKING CHANGE: new look and layout; settings, history, recipes and user
commands carry over unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pass TestContext.Current.CancellationToken to cancellable calls (xUnit1051), dispose pipes
asynchronously, drop null-forgiving operators that xUnit v3's nullability annotations make
redundant, and rename the ExecutionTests helper that shadowed the fake runner's RunAsync.
All 204 test cases pass under VSTest.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds two new UI languages, bringing the total to five (EN/VI/JA/zh-Hans/es).
Both new translations are machine-translated and flagged for native review,
matching how Japanese was introduced.
- Strings.zh-Hans.resx + Strings.es.resx: full parity with EN (501 keys),
built by transforming the English resx so every key is present (no fallback).
- SettingsViewModel: add 简体中文 and Español language options.
- MainWindow.xaml: add the two View > Language menu items.
- ISettingsService: document the new culture codes.
- ResxKeyTests: assert key parity across all satellite cultures
(vi/ja/zh-Hans/es), driven by a single SatelliteCultures list.
- LocalizationManagerTests: theory asserting each satellite actually loads
(a translated string, not an English fallback) via the live-switch path.
Translations: machine-generated; recommend native-speaker review before GA.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adds a complete Japanese satellite (Strings.ja.resx, 501 keys covering
all UI + catalog strings) and wires it into the language picker and the
View menu (日本語). Live switching works the same as EN/VI — no restart.
- ResxKeyTests now asserts every catalog + UI key resolves in EN, VI
AND JA with no parent fallback, via a shared AssertKeysExist helper.
- ISettingsService doc notes "ja" as a valid culture code.
Translations are machine-generated; a native Japanese review pass is
recommended. 189 tests pass; the ja satellite assembly builds and the
app launches.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Implements C5 + C7 from docs/Extra.md Part 2 (final wave).
- Application: pure MaintenanceSuggestions.For(SystemStatus) (low system-
drive space -> Disk Cleanup; uptime > 7 days -> restart) and
NaturalLanguageSearch.Suggest (EN/VI phrase -> catalog keyword).
Natural-language search is 100% LOCAL — no LLM, no network (golden rule #5).
- WPF: Home shows a "Maintenance suggestions" section (reason + optional
Open button for the suggested catalog command). The catalog search bar
shows a "Did you mean: <keyword>" chip for natural-language queries;
clicking it applies the keyword.
- EN/VI .resx; docs (Changelog/roadmap).
- Tests: NL phrase mapping (+ null/already-keyword cases) and the
maintenance heuristics.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Implements C6 + C2 from docs/Extra.md Part 2, with a safe design that
preserves the Elevator invariant (no new privileged write path).
- Catalog: optional affectedRegistryValues field (RegistryValueRef in
Domain + DTO + mapping), declared on tweak.showext / tweak.showhidden.
- Application: IRegistryService (read-only) + pure RegistrySnapshot
(Capture + Diff -> RegistryChange).
- Infrastructure: WindowsRegistryService over Microsoft.Win32.Registry;
unknown hive / missing key / access error all read as null.
- WPF: after a run with affectedRegistryValues, MainViewModel re-reads
the values and appends a localized before/after diff to the console.
- Undo (C2): History entries whose command has a vetted RevertCommandId
get an "Undo" button that runs that catalog revert command — NO
arbitrary registry writes, the Elevator still only accepts catalog ids.
- EN/VI .resx; docs (Changelog/roadmap/Security.md §4).
- Tests: snapshot diff (null/changed), Win32 read smoke (known/missing/
bad hive), and the catalog schema field.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Implements B1 from docs/Extra.md Part 1, safety-critical (golden rule #1).
- Domain: UserCommand (id/name/executable/arguments).
- Application: IUserCommandStore port + UserCommandFactory.ToDefinition,
which FORCES RequiresAdmin=false and namespaces the id as "user:" so
it can never be routed to — or accepted by — the Elevator.
- Infrastructure: JsonUserCommandStore -> %AppData%\CommandForge\
user-commands.json, fully separate from the embedded catalog. No
telemetry; corrupt-file fallback.
- WPF: new "My commands" section (sidebar + View menu) with a persistent
warning banner. Create/edit/save/delete; Run shows the exact command
line and that it runs without admin, then executes asInvoker via the
forced-non-elevated definition. Console bound to the shared execution.
- EN/VI .resx; docs/Security.md §2.1 (threat model).
- Tests: ToDefinition never RequiresAdmin, id is namespaced, the
definition routes to the executor (never elevation), store round-trip.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Implements B2 from docs/Extra.md Part 1 (Macro / recipe).
- Domain: Recipe (named, ordered list of catalog command ids).
- Application: IRecipeStore port + pure RecipeFlow.ShouldStop
(stop on failure / cancel / reboot-required).
- Infrastructure: JsonRecipeStore -> %AppData%\CommandForge\recipes.json
(source-gen, schema version, corrupt-file fallback). No telemetry;
recipes reference only vetted catalog ids.
- WPF: ExecutionViewModel.RunRecipeAsync runs steps sequentially
through the same broker session (one UAC for an all-admin chain),
streaming a per-step header and stopping per RecipeFlow. New Recipes
shell section (sidebar + View menu) with RecipesViewModel/RecipesView:
build/reorder/remove steps from the catalog, save/delete recipes, and
Run with a single aggregated confirmation (warns on dangerous steps).
Each finished step is recorded in the execution history.
- EN/VI .resx keys; tests for RecipeFlow and the recipe store.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Implements C3 + C4 from docs/Extra.md Part 2.
- Application: PortableSettings (machine-portable subset: appearance,
behavior, favorites) + pure SettingsTransfer (Capture/Apply);
ISettingsFile (import/export) and IProfileService ports.
- Infrastructure: JsonSettingsFile (read/write a chosen .json) and
JsonProfileService -> %AppData%\CommandForge\profiles.json, both via
a shared source-gen context with a schema version + corrupt-file
fallback. No telemetry; import never carries executable commands.
- WPF: new Settings "Backup & profiles" section — Export/Import
buttons and a named-profile picker (apply/delete + save-current).
Import/apply route appearance/language/font through the existing
observable-property setters (live apply + persist); favorites are
written to settings and the shell re-syncs via a new
SettingsViewModel.PortableSettingsApplied event.
- EN/VI .resx keys; tests for capture/apply round-trip, file
round-trip/fallbacks, and profile CRUD/persistence.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Finishes the Phase-5c menu/dialog items that were deferred.
- KeyboardShortcutsDialog (Help -> Keyboard shortcuts): read-only list of
the shortcuts actually wired in the shell.
- PortableInfoDialog (File -> Portable info): installed vs portable (from
IUpdateService.IsUpdateSupported), config/log folders, version.
- AboutDialog (About -> About CommandForge): name/version/links + no-data
note + a Terms button. Repoints the About menu from the old Settings/About
navigation (ShowAboutCommand removed).
- LegalViewerWindow (About -> Terms & Privacy): read-only reuse of the 6b
LegalDocumentsView.
- Tools -> Create System Restore Point: runs the vetted catalog command via
the elevation broker (reuses the confirm + console flow; CanExecute guards
on command presence / not-running).
- View -> Language submenu (System / English / Tiếng Việt) with radio
checkmarks via a new StringEqualsConverter + SettingsViewModel.SetLanguage.
Dry-run remains deferred to v2 (noted in docs/Extra.md).
0-warning Release build; 105 tests pass (added dialog resx parity); app boots
cleanly.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Public, English-language docs and community-health files (the internal
docs/ specs stay Vietnamese + gitignored). License stays GPLv3.
- Repo root: README (rewritten, with AI disclosure + SmartScreen/SHA-256
notes), EULA (GPLv3), PRIVACY, DISCLAIMER, THIRD-PARTY-NOTICES,
MAINTAINERS.
- .github/: CONTRIBUTING (incl. the auto-ignored-contributions rules),
SECURITY (private reporting + no-signing/VirusTotal), CODE_OF_CONDUCT
(Contributor Covenant), ISSUE_TEMPLATE (bug/feature/config),
PULL_REQUEST_TEMPLATE.
- Legal Gate: the four tabs now show a localized summary + a clickable
"Read full text on GitHub" link to the public docs, via a reusable
LegalDocumentsView (also used by the 6d Legal Viewer). Terms version
bumped 1.0 -> 1.1 so existing users re-accept once.
- Strings.cs reduced to Get() (the strongly-typed members are now unused
since the Legal Gate moved to {res:Loc}); resx keys retained.
0-warning Release build; 104 tests pass (added Legal/menu resx parity).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Settings dark mode: the section nav (Appearance/Logs/...) showed black
text because the NavRadio style had no BasedOn and fell back to the
default WPF RadioButton template. Inherit the MaterialDesign implicit
style so the text follows the theme.
- Command Palette: fix InvalidOperationException ("Cannot ... while a
Window is closing") when double-clicking a result. Close() deactivated
the window, whose Deactivated handler called Close() again. Route all
closes through a re-entrancy guard.
- Menu bar completion (UI.md section 3):
- File: Open config folder, Open log folder; Ctrl+Q on Exit.
- View: Theme + Font size submenus (radio, checked via EnumToBoolean),
Full screen (F11).
- About (was empty): About CommandForge (-> Settings/About), License,
Source on GitHub.
- Help: Guide/Wiki, Check for updates (F5).
Added SetThemeCommand/SetFontSizeCommand (SettingsViewModel) and
ShowAboutCommand/OpenWikiCommand (MainViewModel); F5/F11/Ctrl+Q keys.
103 tests pass (added a menu-keys resx parity test); 0-warning Release
build; app verified to launch cleanly.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Completes Phase 5 (Polish):
- Home dashboard (default screen): recent commands, pinned favorites,
and a read-only system-status widget (Windows + build, RAM, system
drive, uptime) via ISystemInfoService. Status is read locally with
no process spawn, no elevation and no network (golden rules).
- Favorites: pin/unpin from the list + detail star, persisted by id in
config.json; a Favorites sidebar item filters the catalog to pins.
- Recent commands: last 10 run command ids tracked for Home.
- Window placement: persist + restore size/position/maximized, clamped
to the virtual screen so a stale multi-monitor position never lands
off-screen.
- Accessibility: AutomationProperties.Name on new controls + palette
and confirmation inputs; heading semantics on Home; Ctrl+H opens Home.
Implementation notes:
- ISystemInfoService uses Environment.OSVersion + CsWin32
GlobalMemoryStatusEx + DriveInfo + TickCount64 (AllowUnsafeBlocks for
the generated interop).
- Pure, unit-tested helpers RecentCommands.Add / Favorites.Toggle and
WindowPlacement.IsOnScreen.
- 102 tests pass; 0-warning Release build.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Foundation slice of Phase 5 (polish):
- Settings model: AppTheme/FontScale enums + 9 new ISettingsService settings
(theme, language, font size, sidebar/badges, confirm-caution, restore point,
auto-scroll, warn-on-cancel), persisted to config.json (string enums).
- Runtime i18n, no restart: LocalizationManager (INotifyPropertyChanged indexer) +
LocExtension now returns a live Binding, so {res:Loc} flips language instantly;
catalog display strings refresh in place on culture change.
- ThemeService (Light/Dark/System via MaterialDesign PaletteHelper, tracks OS) and
FontScaleService (AppFontSize DynamicResource); applied at startup from settings.
- In-shell navigation: MainWindow content swaps between CatalogView (extracted) and
a new SettingsView via CurrentSection; opened by the sidebar gear / View menu / Ctrl+,.
- Settings screen: Appearance (live theme/lang/font + sidebar/badges), Behavior &
Safety (Dangerous-confirm locked on), Updates (auto-check + Check now + version),
About (version, GPLv3/GitHub links, "no data collected"). EN/VI strings + a11y names.
- Consumption: confirmation honors ConfirmCaution (Dangerous always confirms); restore
point, auto-scroll, warn-on-cancel, sidebar-collapse and badges read the settings.
Tests: settings round-trip + defaults, LocalizationManager culture flip, Settings UI
key coverage EN/VI. 58 tests pass; 0-warning Release build; clean startup smoke.
Diagnostics (Log Viewer/Debug/crash handler) are 5b; Home/favorites/full a11y are 5c.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>