Repository navigation
fix(scripts): warn on spaced paths in the relay supervisor installer (#166) - #177
Merged
Merged
Conversation
…166) Follow-up to the #166 post-review: when 8.3 short names are disabled on the volume, the fallback silently reintroduces the spaced /tr misparse, and spaced ProjectRoot/SynloqCli/SynloqHome (documented unsupported) failed without a word. Both now warn loudly at install time. Deliberately NOT done: generalizing the 8.3 trick to directories. Evidence against it: cmd %~sI on a directory returns garbage, and Node's realpath does not resolve 8.3 short names back to long ones — a short projectRoot would hash to a different project key and the relay would serve the wrong home. Quoting-safe registration needs a different approach (doubled quotes in /tr), left for a future change.
This was referenced Nov 28, 2026
OBenner
added a commit
that referenced
this pull request
Nov 29, 2026
The code intentionally warns and still runs schtasks /create (the #177 warn-only precedent); the guide now says exactly that, with the verify command.
OBenner
added a commit
that referenced
this pull request
Nov 29, 2026
…rom npm (#180) (#183) * feat(cli): synloq relay-supervisor --install — register the Scheduled Task from npm (#180) The ps1 installer never shipped in the npm package, so a clean install had no supported way to register the supervisor task. The TypeScript installer is the tested product path: - idempotent: existing task with the same name is left untouched - 8.3 short-name resolution for node.exe; spaced paths warn loudly instead of registering a broken task (#177 coverage) - refuses non-Windows platforms explicitly; never touches locks or database state - docs/guide/operator.md + CHANGELOG * docs: supervisor install warns AND registers on spaced paths (#183) The code intentionally warns and still runs schtasks /create (the #177 warn-only precedent); the guide now says exactly that, with the verify command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up к #166 (пост-ревью 803a52b)
Два усиления установщика, согласованные с dev как follow-up:
Намеренно НЕ сделано: обобщение %~sI на каталоги
Предложенное на пост-ревью обобщение short-name на ProjectRoot оказалось ловушкой, с evidence:
cmd /c for %I in (<dir>)возвращает мусор для каталогов (наблюдено:I:\git→I:\git\Synloq\git).realpathна Windows НЕ резолвит 8.3 обратно в длинное имя (realpath("C:\PROGRA~1")→C:\PROGRA~1), а ключ проекта — sha256 канонического пути: короткий путь → ДРУГОЙ ключ → relay обслуживал бы чужой/пустой home. Доказательство:sha256("C:/Program Files/x") ≠ sha256("C:/PROGRA~1/x").Quoting-safe регистрация spaced-путей — другой подход (doubled quotes в /tr), отдельной задачей, если понадобится.
Скрипт парсится (PSParser), verify не затронут (ps1 вне prettier/vitest контура).