Files
hermes-agent/scripts
Teknium d8b3d565fd refactor(update): update-job.ps1 compiles its job helper in Initialize-HermesUpdateJob
update-job.ps1 was one top-level `if (-not type) { Add-Type ... }` block.
It is now a named function, Initialize-HermesUpdateJob, that returns early
when the type already exists and is called once at the end of the file, so
the dot-source in windows.ps1 behaves exactly as before. The C# body is
unchanged byte for byte.

Checked with PowerShell 7.4 on Linux: dot-sourcing the file twice compiles
the type once and HermesUpdateJob::ProcessIds(0) answers; windows.ps1 still
parses with zero errors. Windows PowerShell 5.1 itself was not run here.

Review 5411223284 (shape: update-job.ps1 top-level code).
2026-10-06 05:44:21 -07:00
..