feat: Add OpenCode support with cross-platform installation #460
+2,067
−2
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.
This commit adds full OpenCode support to PAI with:
New OpenCode Directory Structure:
Installation Wizards:
install.ps1- Windows PowerShell installer with full .NET path supportinstall.sh- Linux/macOS Bash installer with timedatectl integrationDocumentation:
OpenCode/README.md- Complete OpenCode setup and usage guideOpenCode/PACK_CONVERSION_GUIDE.md- Detailed hook-to-MCP conversion patternsOpenCode/examples/README.md- MCP server development guideExample MCP Servers:
context-server.ts- Auto-generated by installers, loads CORE skill at session starthistory-server-example.ts- Example implementation for conversation history trackingWindows Support:
README Updates:
Key Features:
This enables PAI users to run the same personal AI infrastructure on OpenCode with minimal adaptation, expanding PAI's reach to Windows users and the growing OpenCode ecosystem.