fix(install-targets): validate compiled OpenCode plugin before install (#2041)

Fail fast when the OpenCode home install is attempted from a source checkout without the compiled .opencode/dist payload. PR had the full CI matrix green.
This commit is contained in:
Gaurav Dubey
2026-05-25 23:37:52 +05:30
committed by GitHub
parent 3ffab636ad
commit ee9e5a19c4
3 changed files with 222 additions and 1 deletions

View File

@@ -57,6 +57,19 @@ cd ECC
opencode
```
If you also want to apply the ECC home install
(`node scripts/install-apply.js --target opencode --profile full`), build the
plugin first so the compiled payload at `.opencode/dist/` exists:
```bash
node scripts/build-opencode.js # or: npm run build:opencode
node scripts/install-apply.js --target opencode --profile full
```
Without `.opencode/dist/index.js`, OpenCode will detect the slash commands
but silently skip plugin hooks and tools. The installer now fails fast with
a pointer to this command if the build step is missing.
## Features
### Agents (12)