OpenViking
OpenViking copied to clipboard
[vika][Windows] Relative CLI overrides and frozen card image paths use inconsistent separators
Two native Windows path failures in shared Vika code
Checked upstream feat/vika@36d7c8d9ad5b9891738edb9a064d102cf267a5d1. These are inherited by the Windows fork and are not caused by the durable PowerShell tool.
vika/packages/daemon/src/config.mjschecksvalue.includes(path.sep)before resolving a connector CLI override against projectDir. On Windows,./custom tools/cli.mjsuses forward slashes, so it is left relative and can resolve against a different process cwd. The existing config.test.mjs test fails on the real Windows report. Accept both separators on Windows and preserve bare PATH commands.vika/packages/daemon/src/lark.mjspassespath.relative(root, asset.path)toreadWorkspaceFilewhen validating frozen card image assets. On Windows a nested relative path contains backslashes; workspace-file.mjs deliberately rejects backslashes. The real Windows suite reports card_images failures withfile_path must be relative to the workspace without traversal or URLs. Convert internally generated relative paths to the slash-based tool format, retaining external input traversal checks. Video-cover CLI paths use the same internal path formatting pattern.
Suggested regression coverage: forward-slash relative CLI override on Windows; actual nested frozen image validation/upload on Windows; preserve traversal and out-of-workspace rejection. POSIX file-mode assertions in upload fixtures must not be interpreted as Windows ACL checks.
Source report and other deployment problems: https://github.com/openviking-superagent/OpenViking/issues/16 . Downstream candidate fixes are being tested; Linux unit results do not establish Windows acceptance.