16 Commits

Author SHA256 Message Date
Alphaeus Mote b3716e3f38 perf(banner): plain Win32 and Native AOT, 47 MB to 1.6 MB
The Being Viewed banner was WinForms published as a self-contained single
file (49.3 MB, ~320 ms just to start and exit). It is now plain Win32 through
source-generated LibraryImport (runtime marshalling disabled, no reflection)
published with Native AOT: 1.6 MB for win-x64 and win-arm64, ~33 ms to start
and exit (the OS process floor), on screen in ~0.1 s.

- BannerWindow: a WS_EX_TOPMOST | TOOLWINDOW | NOACTIVATE popup, a STATIC per
  caption (read by screen readers, clicks fall through to drag) and an
  owner-drawn BUTTON per Stop, named for its session; the mouse is handled in
  a subclass and BM_CLICK invokes directly, so clicking or assistive-tech
  invoke never activates the banner. GDI drawing, comctl32 6 tooltips,
  PerMonitorV2 manifest with WM_DPICHANGED, AppsUseLightTheme and high
  contrast on WM_SETTINGCHANGE, DWM rounded corners and dark frame.
- Same metrics, colours and wording as the WinForms banner (checked against
  screenshots at 125%), now in window-free Logic/ (layout, palette, rows)
  that Agent.Tests compiles and tests.
- The protocol moves to src/Shared.Banner (compiled into agent and banner),
  with the exit codes; DLL hardening, pipe checks and protocol unchanged.
- Package-Agent publishes the banner with AOT when vswhere finds the MSVC
  tools for the RID (and puts vswhere on PATH for newer VS vcvarsall),
  otherwise warns and publishes a trimmed single file (~11 MB).
- README: Build Tools "Desktop development with C++" (plus ARM64 tools) as a
  prerequisite, also for the CI windows-host runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 16:33:17 -05:00
Alphaeus Mote 382fcaa24e Merge Being Viewed banner [skip ci]
# Conflicts:
#	scripts/Generate-Icons.ps1
#	src/Installer/Policies/README.md
2026-11-06 15:02:41 -05:00
Alphaeus Mote f98b6ecc30 feat(screen): RemoteViewBanner policy, packaging and console indication
- ADMX/ADML "Remote View: show the Being Viewed banner" (RemoteViewBanner,
  REG_DWORD, default off); MSI property REMOTEVIEWBANNER.
- Package-Agent publishes ExecuteR-Banner.exe (self-contained single file)
  into every Windows zip; the MSI installs it under Program Files when
  present (HasBanner). The Windows PE portable install removes it.
- Generate-Icons also renders banner.ico from assets/banner-icon-source.png.
- Console: Remote View page shows "Banner On" when the device will show the
  banner.
- README: Being Viewed banner (policy, behaviour, security model), policy
  and MSI tables, packaging; third-party notices list Windows Forms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 14:45:09 -05:00
Alphaeus Mote 3367a98099 build(screenhost): icon and version resource in ExecuteR-Screen.exe
build.rs embeds assets/icons/app.ico and a version resource through
winresource (MIT, build dependency only, rc.exe from the Windows SDK):
FileDescription "ExecuteR Screen Host", ProductName "ExecuteR", company
and copyright read from Directory.Build.props. The version is the build's
one version (EXECUTER_VERSION, which Build-ScreenHost.ps1 -Version sets and
Package-Agent passes), else Cargo.toml's. The binary had neither before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 13:53:42 -05:00
Alphaeus Mote d0bb160537 build: commit the product icon, generated without ImageMagick
scripts/Generate-Icons.ps1 now renders assets/icons/app.ico from
assets/icon-source.png with System.Drawing (no installs, Windows PowerShell
or pwsh, byte-identical across runs): 16, 20, 24, 32, 40, 48, 64 and 128 px
as 32-bit DIBs and 256 px PNG-compressed (124 KB, was 370 KB with six
uncompressed frames).

The .ico is committed and every build embeds it, so local builds match CI.
The packaging scripts and workflows no longer generate it at build time
(the ImageMagick step wrote artifacts/icons/app.ico, which nothing read):
-SkipIcon and the release "Generate icon" step are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 13:53:42 -05:00
Alphaeus Mote 4e668e0ec6 build(screen): package the Remote View screen host beside the agent
Build src/ScreenHost (Rust, x86_64-pc-windows-msvc) in Package-Agent and
put ExecuteR-Screen.exe in the win-x64 zip (also the Windows PE package
and agent upgrades) and the MSI; CI and release install Rust first. Both
skip cleanly while src/ScreenHost is not in the tree. Remote View policies
in the ADMX (and MSI properties for the on/off ones); the AllowFileAccess
policy key gets its missing backslashes back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 12:30:13 -05:00
Alphaeus Mote 31869b17ba build(version): packaging and release scripts use semantic versions
Build, Test and the packaging scripts take the version from
Get-Version.ps1 and the short commit from the same place. Both MSIs get
the four-field version as ProductVersion (X.Y.Z.0 for a release, X.Y.Z.N
between releases) instead of the calendar transform. Checksums and release
assets take only their own version's files (1.4.0 no longer matches
1.4.0.7's).

Publish-Release.ps1 creates the tag vX.Y.Z on the released commit and the
release "ExecuteR X.Y.Z" with semantic-release's notes (-NotesFile,
-Prerelease), reuses both on a re-run of the same commit, refuses a version
already tagged on another commit and skips assets uploaded whole.

deploy.sh builds from source with the git version (0.0.0.0 without git)
and runs the images it built by that tag. Test.ps1 runs the watchdog
tests too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 20:49:46 -04:00
Alphaeus Mote 5792c0df76 build(agent): ship the watchdog in every agent zip and the MSI
Package-Agent.ps1 publishes the watchdog (trimmed single file) for every RID
and puts it beside the agent (ExecuteR-Watchdog.exe; executer-watchdog on
linux/macOS), so the zips CI stages into the backend image carry it. The MSI
installs it as its own component with the ExecuteRWatchdog service
(LocalSystem, automatic, restart on failure, `run`), started on install and
removed on uninstall; MajorUpgrade is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 17:47:40 -04:00
Alphaeus Mote 8a053f5314 chore!: ExecuteR is proprietary (Grace Solutions), not AGPL
The project is not open source, so the AGPL text no longer describes it.

- LICENSE: the Grace Solutions proprietary licence used by the other house
  products, including the clause for the commercially licensed Mantis Pro
  template the console is built on.
- THIRD-PARTY-NOTICES.md: the commercial template, the bundled nats-server
  and the open-source server, agent, console and build components with
  their licences.
- Assemblies carry the copyright; the WebUI package is UNLICENSED; both
  container images are labelled LicenseRef-GraceSolutions-Proprietary.
- Server and agent zips ship LICENSE and THIRD-PARTY-NOTICES.md; the README
  gains a Licence section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 22:18:05 -04:00
gsadmin 1137ee35f2 Rename the Windows agent binary to ExecuteR-Agent.exe [skip ci]
The published binary was Agent.exe, so its rolling log was Agent-<date>.log.
Set the assembly name to ExecuteR-Agent, so the binary is ExecuteR-Agent.exe
and the log (named after the running executable) becomes
ExecuteR-Agent-<date>.log. Updated the MSI harvest + service/purge custom
actions, the enrollment install script, the packaging unix-rename source, the
Branding constant, the CLI usage string and the README. Unix still ships as
executer-agent. Agent builds (both TFMs) and its 60 tests pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-10 09:06:37 -04:00
gsadmin e70ad0a21b Deployment polish: paths, metadata, execution history, multi-target runs [skip ci]
Standalone setup fixes the jetstream double-nesting (store_dir is the
parent), moves the database to data/db and logs to ./logs; the agent
logs to ./Logs next to its binary. Both MSIs install under
ExecuteR\Server and ExecuteR\Agent, binaries carry ExecuteR
Server/Agent product metadata with dateversion-shortcommit as the
product version, and shipped bundles drop pdbs and the staticwebassets
manifest.

Execution reworks: targets are an add-one-or-more chip list (devices
and groups mix; each run lands in one per-device list with focusable
output), the script page gains a History section, the device page's
tab becomes Execution History grouped by script, and JOB_HISTORY_LIMIT
(default 200 per device, 0 off) prunes old jobs plus their stored
output. Functions drops the Module name placeholder and only opens the
editor on selection or New function.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 09:10:10 -04:00
gsadmin 18b40c64b1 Release artifacts carry the product name [skip ci]
MSIs, ZIPs and checksum files rename to ExecuteR-Agent-* and
ExecuteR-Server-* across the packaging scripts, the CI staging/upload
globs and the release asset filter. The agent-package bundle names the
server serves (Agent.msi, Agent-<rid>.zip) are internal delivery paths
and stay unchanged. Takes effect on the next release build.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 08:33:04 -04:00
gsadmin deff3158e6 Bundle PSResourceGet, Archive and ThreadJob with the agent
CI / build-test (push) Successful in 8m46s
CI / images (push) Successful in 1m41s
The PowerShell SDK ships only the core engine modules, so gallery
access on a bare endpoint depended on whatever happened to be
installed. Package-Agent now stages pinned PSGallery downloads
(PSResourceGet 1.2.0, Archive 1.2.6, ThreadJob 2.2.0) into a Modules
directory next to the binary for every platform, the MSI installs it,
and the agent prepends it to PSModulePath — covering the embedded
engine and, via process-environment inheritance, Windows PowerShell
5.1 child processes too. Install-PSResource needs no NuGet-provider
bootstrap, and AllUsers installs land on the standard module path
where later jobs resolve them.

Verified in the embedded host with only the bundled directory on the
path: PSResourceGet loads and reports PSGallery, Compress-Archive
produces a zip, Start-ThreadJob round-trips. Also drops the payload
trim rules for modules the SDK no longer ships.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 21:23:29 -04:00
gsadmin 1ff1a2273e CI builds every platform binary: agent x5 RIDs, standalone server x2
Package-Agent gains -Runtimes and picks the right flavor per RID
(net10.0-windows for win, portable net10.0 elsewhere) — this also fixes
publishing after the multi-targeting change, which requires an explicit
framework. Unix binaries ship as executer-agent; the MSI still harvests
the win-x64 output.

CI packages the agent for win-x64/linux-x64/linux-arm64/osx-x64/
osx-arm64 plus the combined standalone server (win-x64, linux-x64) and
uploads everything as a "binaries" artifact with checksums. Releases
attach the same set (Server zips included), and the release workflow
sets up Node 22 for the static WebUI build the server bundle needs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 20:02:18 -04:00
gsadmin 6f991a844f M2: Registry/GPO configuration, runtime state, WiX MSI
- IRegistryStore seam + HKLM implementation; AgentConfigurationLoader with
  deterministic precedence (GPO > registry > dev-only env > defaults) and
  per-value provenance for future ADMX
- RuntimeStateStore for Runtime registry values, bootstrap token clearing,
  credential purge (used by MSI full uninstall via hidden CLI command)
- WiX v5 MSI: public properties with remember-pattern (blank never overwrites,
  upgrades preserve config), LocalSystem service install with failure actions,
  delayed auto-start applied via the agent's own install command, credential
  purge only on real uninstall (never upgrades)
- 10 agent configuration/state tests

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 18:50:50 -04:00
gsadmin eab5d78ce3 Infra: NATS operator-mode config, Compose stack, Dockerfiles, scripts, WebUI scaffold
- nats.conf: JetStream + WebSocket listener behind reverse proxy, file resolver
- docker-compose(.dev).yml: nats/backend/webui with health checks and volumes
- Multi-stage backend/webui Dockerfiles (non-root, unified version labels)
- Scripts: unified version, build, test, icon generation (ImageMagick via
  winget when missing), agent packaging with checksums, local secrets and
  repo initialization
- SvelteKit WebUI scaffold (Svelte 5, adapter-node, TS) with NATS core,
  nkeys, Monaco and xterm dependencies
- Placeholder icon source + assets/secrets documentation

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 18:43:09 -04:00