Skip to content

Add native Windows support - #4

Open
Gunbrad wants to merge 1 commit into
Sac-Y:mainfrom
Gunbrad:feat/windows-native-support
Open

Add native Windows support#4
Gunbrad wants to merge 1 commit into
Sac-Y:mainfrom
Gunbrad:feat/windows-native-support

Conversation

@Gunbrad

@Gunbrad Gunbrad commented Sep 2, 2026

Copy link
Copy Markdown

Summary

  • add native Windows launchers for onboarding, provisioning, and generation
  • use APPDATA and LOCALAPPDATA for Windows configuration, state, and output paths
  • integrate the CompShare askpass helper with Windows OpenSSH while keeping passwords in short-lived files
  • resolve CompShare and SSH executables across platforms with environment-variable overrides
  • preserve macOS/Linux behavior and enforce platform-correct line endings
  • document Windows prerequisites and bump the plugin version to 0.2.0

Validation

  • Windows: npm test, 14 tests passed
  • Windows: all three .cmd launchers passed help-command smoke tests
  • Windows: real compshare-ssh-askpass.exe integration passed
  • WSL/Linux regression: 13 tests passed; the Windows-only integration test was skipped
  • all JavaScript modules passed node --check

No cloud GPU resources were created and no billable generation was started during validation.

Add Windows launchers, AppData-based user paths, and CompShare askpass integration for Windows OpenSSH. Preserve macOS/Linux behavior and cover both path styles with cross-platform tests and documentation.
Copilot AI lite review requested due to automatic review settings September 2, 2026 10:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Some Windows-specific failure modes still produce confusing behavior (askpass override existence validation and Node 20+ enforcement in .cmd launchers), and the updated install docs risk regressing macOS/Linux.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adds native Windows support for the MiniMax H3 Cloud Codex plugin by introducing Windows launchers, Windows-appropriate user data/config/state path resolution, and Windows-compatible OpenSSH/askpass handling, while keeping existing macOS/Linux behavior intact.

Changes:

  • Add Windows .cmd launchers for onboarding/provisioning/generation and enforce platform-correct line endings via .gitattributes.
  • Implement Windows-aware path resolution (APPDATA / LOCALAPPDATA) and update SSH tunnel handling to support Windows OpenSSH + CompShare askpass.
  • Update docs/skill instructions for Windows prerequisites and bump plugin version to 0.2.0 with additional test coverage.
File summaries
File Description
README.md Document Windows prerequisites, paths, and launcher usage.
plugins/minimax-h3-cloud/skills/minimax-h3-video/SKILL.md Update skill guidance to use platform-specific entrypoints.
plugins/minimax-h3-cloud/scripts/h3-provision.cmd Add Windows provisioning launcher wrapper.
plugins/minimax-h3-cloud/scripts/h3-onboard.cmd Add Windows onboarding launcher wrapper.
plugins/minimax-h3-cloud/scripts/h3-cloud.cmd Add Windows generation/status launcher wrapper.
plugins/minimax-h3-cloud/runtime/test/user-paths.test.mjs Add tests for Windows and POSIX user path resolution.
plugins/minimax-h3-cloud/runtime/test/ssh-tunnel.test.mjs Add tests for Windows SSH parsing/defaults and askpass behavior.
plugins/minimax-h3-cloud/runtime/test/config-store.test.mjs Add atomic config update test coverage.
plugins/minimax-h3-cloud/runtime/test/compshare-cli.test.mjs Add tests for executable overrides and Windows BOM JSON handling.
plugins/minimax-h3-cloud/runtime/src/user-paths.mjs Implement Windows-aware config/data/state directory resolution.
plugins/minimax-h3-cloud/runtime/src/ssh-tunnel.mjs Improve SSH login parsing, add askpass context, and support Windows OpenSSH defaults.
plugins/minimax-h3-cloud/runtime/src/executable-paths.mjs Add helpers to resolve executables on PATH across platforms.
plugins/minimax-h3-cloud/runtime/src/compshare-cli.mjs Add executable/askpass resolution and improve error handling + BOM parsing.
plugins/minimax-h3-cloud/.codex-plugin/plugin.json Bump version to 0.2.0 and add Windows metadata.
.gitattributes Enforce consistent line endings (CRLF for .cmd, LF elsewhere).
Review details
  • Files reviewed: 15/15 changed files
  • Comments generated: 5
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +56 to +60
const override = environmentValue(
env,
"MINIMAX_H3_SSH_ASKPASS_PATH",
)?.trim();
if (override) return override;
Comment on lines +12 to +16
where node.exe >nul 2>nul
if errorlevel 1 (
echo Node.js 20 or newer is required and must be available on PATH. 1>&2
exit /b 1
)
Comment on lines +12 to +16
where node.exe >nul 2>nul
if errorlevel 1 (
echo Node.js 20 or newer is required and must be available on PATH. 1>&2
exit /b 1
)
Comment on lines +12 to +16
where node.exe >nul 2>nul
if errorlevel 1 (
echo Node.js 20 or newer is required and must be available on PATH. 1>&2
exit /b 1
)
Comment thread README.md
Comment on lines +32 to +33
python -m pip install --upgrade compshare-cli
compshare --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants