Repository navigation
feat(cli): relay-supervisor --install — Scheduled Task registration from npm (#180) - #183
Merged
Merged
Conversation
… 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
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.
Что
Closes #180.
synloq relay-supervisor --install— продуктовый установщик Scheduled Task на TypeScript, заменяет repository-onlyscripts/install-relay-supervisor.ps1для npm-пользователей.schtasks /query— существующая задача с тем же именем не трогается (already-installed);--task-nameдля отдельного имени--install+--task-name, help-текст обновлёнAcceptance #180
npm pack --dry-run:dist/cli/relay-supervisor-install.jsв пакете (files = dist/plugins) ✔synloq relay-supervisor --installработает из dist, без клонирования репо ✔scripts/install-relay-supervisor.ps1оставлен в репо нетронутым (поведение [P1] Supervise the standalone relay process on health failure #166/fix(scripts): warn on spaced paths in the relay supervisor installer (#166) #177 не меняется)Проверки
test/cli/relay-supervisor-install.test.ts): argv create-вызова, идемпотентность, проброс --synloq-home/--relay-url/--task-name, short-name, warnings на spaced paths, отказ на linux, проброс exit code schtasks, отсутствие записей в homepnpm verify: 139 файлов / 1264 теста зелёныеDocs:
docs/guide/operator.md(новая секция Relay supervisor), CHANGELOG [Unreleased].