Repository navigation
feat(vika): add minimal Windows platform adapters - #7178
Closed
openviking-superagent wants to merge 4 commits into
Closed
openviking-superagent wants to merge 4 commits into
openviking-superagent wants to merge 4 commits into
Conversation
ZaynJarvis
reviewed
Nov 6, 2026
Collaborator
There was a problem hiding this comment.
Thanks for the Windows work. Direction is good, but this is too large to review as-is. The goal for this PR: get Windows running for the feasible scenario with a minimal, modular diff that doesn't touch mac/linux behavior. Real-machine testing will be done separately.
Keep (looks right, mostly guarded by win32 or pass-through on POSIX)
platform.mjsadapter + the import swaps in claude/codex/pi/opencode/lark- named-pipe socket path,
HOME→USERPROFILEfallback taskkillfor process-tree kill, pm2shutdownmessage handling inmain.mjslark-cli.exefilename, disabling upgrade/updater on Windowsprivate-temp: skip the mode check on win32 (one line is enough)
Please drop (outside Vika's scope; document as prerequisites in WINDOWS.md instead)
windows-acl.mjs+ testsensure-windows-lark-cli.mjs+ tests. lark-cli is already fetched byscripts/install-lark-cli.mjs/build-release.mjsvia the platform map inupdater/src/artifacts.mjs; add a win32-x64 entry there and reuse that pathpm2-windows.cjs(in-memory pm2 patching): pm2/Node/Git Bash should be user-installed prerequisites- VBS autostart,
install-windows.ps1,test-install-windows.ps1 - PowerShell replacements for Pi/Durable tools (
coding-tools.mjs,piPlatformTools,cliShellHint) slack.exedefault, Windows CI workflow (can come later once the preview is validated)
Unconditional changes that affect mac/linux. Please guard with win32 or revert
updater/src/pm2.mjscleanPm2ControlEnv: whitelist now adds TEMP/TMP/USERNAME/APPDATA etc. plus a case-normalising loop on all platformsverifyPm2Appnow callsrealpath(release): throws ENOENT when the release is missing and starts accepting symlinks, both behavior changesruntimes.which→findExecutable: paths containing/are now resolved differentlyslack/cli.mjsenv allowlist adds TEMP/TMP without a platform check
Rough target after slimming: ~25 files / ~300 lines including platform.test.
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.
Description
Enable a native Windows x64 source-preview path using a small platform adapter. Users provision Node.js, PM2, Git Bash, runtime credentials and an existing OpenViking server. This is not an installer or a Windows release.
Reworked against ZaynJarvis's review on the initial head. Final diff against the review base (
9b8557d): 31 files, +374/-50, including documentation and tests.Scope
--allrelease targets.No OV server, dependency-version, email-feature, database-schema or runtime-protocol change. Fork acceptance fixes for general failure notices and experimental release packaging are not mixed into this Windows PR.
Validation
npm run check: passed.Human involvement
See
vika/WINDOWS.mdfor source setup and user-managed PM2 startup. There is no claim of Windows release/updater support, hardened multi-user ACL isolation or complete connector parity. No release was built/published and no running production daemon was changed.