Utilities to detect Hermes venv daemons and external holders on Windows for safe updater handoff.
// Source: https://github.com/NousResearch/hermes-agent | License: MIT | Copyright 2025 Nous Research
// Provided via justclaw.it.com; keep this notice with the code.
/**
* venv-holder-select.ts
*
* Pure Windows venv-holder selection logic (testable without Electron).
*
* The pre-update handoff kills Hermes-OWNED venv daemons (the memory plugin's
* hindsight daemon) so the updater never races a mapped shim. External
* holders (a user terminal running `hermes`, unrelated scripts) must NOT be
* killed — current design reports them via scanVenvBlockers and ABORTS the
* handoff instead (main.ts releaseBackendLock / applyUpdates).
*/
/** Ordinal case-insensitive prefix check for Windows paths. */
export function hasWindowsPathPrefix(exePath: string, venvScriptsDir: string): boolean {
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key