This package is designed for the public repo:
https://github.com/derekdperez/Argus-Engine
It restores the deleted Command Center web application files from the commit immediately before the destructive deletion/refactor:
717c1c568b38bb4fc84c9b34c54e90ed362d2ffb803fbd2Apply-ArgusCommandCenterWebRestore.ps1 downloads the deleted files from the SHA-pinned GitHub raw URLs, restores them into the current src/ArgusEngine.CommandCenter tree, and applies only the minimal compatibility edits needed for the current repo:
NightmareV2 namespace/project prefix is changed to ArgusEngine.AddNightmareRabbitMq is changed to AddArgusRabbitMq.nightmare-ui.js references are changed to argus-ui.js.AssetAdmissionDecisionEndpointsDataRetentionAdminEndpointsHttpArtifactBackfillEndpointsOperations.razor page is removed to avoid route conflicts with restored OpsRadzen.razor.From the repo root:
Expand-Archive .\argus-command-center-web-restore-overlay.zip -DestinationPath .\argus-restore
.\argus-restore\Apply-ArgusCommandCenterWebRestore.ps1 -RepoRoot .
dotnet build ArgusEngine.slnx
git diff -- src/ArgusEngine.CommandCenter
For a dry run:
.\argus-restore\Apply-ArgusCommandCenterWebRestore.ps1 -RepoRoot . -DryRun
By default, the script creates a backup folder:
.argus-web-restore-backup/<timestamp>/
These are not overwritten by default because they represent post-deletion functionality that does not conflict with restoring the old web app:
src/ArgusEngine.CommandCenter/Components/Pages/AssetAdmission.razorsrc/ArgusEngine.CommandCenter/Endpoints/AssetAdmissionDecisionEndpoints.cssrc/ArgusEngine.CommandCenter/Endpoints/DataRetentionAdminEndpoints.cssrc/ArgusEngine.CommandCenter/Endpoints/HttpArtifactBackfillEndpoints.cssrc/ArgusEngine.CommandCenter/DataMaintenance/HttpQueueArtifactBackfillService.csappsettings*.jsonStartupDatabaseInitializer.csThese three endpoint files also existed at 717c1c5, but are preserved by default because they exist in current main and may contain necessary post-deletion compatibility changes:
src/ArgusEngine.CommandCenter/Endpoints/AssetAdmissionDecisionEndpoints.cssrc/ArgusEngine.CommandCenter/Endpoints/DataRetentionAdminEndpoints.cssrc/ArgusEngine.CommandCenter/Endpoints/HttpArtifactBackfillEndpoints.csTo force those three files back to their exact 717c1c5 versions, run:
.\argus-restore\Apply-ArgusCommandCenterWebRestore.ps1 -RepoRoot . -RestoreOldPostDeletionEndpointVersions
Remove-PostDeletionWebReplacements.ps1 removes only:
src/ArgusEngine.CommandCenter/Components/Pages/Operations.razorsrc/ArgusEngine.CommandCenter/Components/Pages/Operations.razor.cssThose files are replacement/stub pages created after the deletion and conflict with the restored OpsRadzen.razor routes.
This package is an overlay/restoration helper, not a fully compiled patch generated from a local clone. The execution environment could browse GitHub but could not clone/download the repository directly, so the actual old source files are fetched by the PowerShell script from SHA-pinned GitHub raw URLs when you run it.