Skip to content

Conversation

@j4rviscmd
Copy link
Owner

@j4rviscmd j4rviscmd commented Jan 20, 2026

Summary

  • Add command-installer.ts to automatically copy slash command files during plugin initialization
  • Remove manual postinstall setup requirement from README
  • Add --target bun to build script for Node.js API support
  • Bump version to 0.1.1

Why

OpenCode does not execute npm postinstall scripts when installing plugins, requiring users to manually run a command after installation. This change eliminates that friction by copying command files automatically when the plugin initializes.

Test plan

  • Install plugin from npm in a fresh environment
  • Start opencode and verify command files are copied to ~/.config/opencode/command/
  • Verify /mode-performance, /mode-economy, /mode-status, /mode-list commands work

🤖 Generated with Claude Code

j4rviscmd and others added 2 commits January 20, 2026 17:35
- Add command-installer.ts to copy command files during plugin init
- Remove manual postinstall setup requirement from README
- Add --target bun to build script for Node.js API support
- Bump version to 0.1.1

This eliminates the need for users to manually run postinstall
after installing the plugin.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
postinstall is no longer needed since command files are now
copied during plugin initialization.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@j4rviscmd
Copy link
Owner Author

good.

image

@j4rviscmd j4rviscmd merged commit 15ac815 into main Jan 20, 2026
1 check passed
@j4rviscmd j4rviscmd deleted the feat/auto-copy-command-files branch January 20, 2026 08:48
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