chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
# Installing Compound Engineering for OpenCode
|
||||
|
||||
Add Compound Engineering to the `plugin` array in your global or project `opencode.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"plugin": ["compound-engineering@git+https://github.com/EveryInc/compound-engineering-plugin.git"]
|
||||
}
|
||||
```
|
||||
|
||||
Restart OpenCode after changing the config. The OpenCode plugin registers the Compound Engineering skills directory directly; no Bun installer or generated skill copy is required.
|
||||
|
||||
To pin a release, add a tag. Replace `X.Y.Z` with the release you want — see the [releases page](https://github.com/EveryInc/compound-engineering-plugin/releases) for available tags:
|
||||
|
||||
```json
|
||||
{
|
||||
"plugin": ["compound-engineering@git+https://github.com/EveryInc/compound-engineering-plugin.git#compound-engineering-vX.Y.Z"]
|
||||
}
|
||||
```
|
||||
|
||||
## Local Development
|
||||
|
||||
From this checkout, point OpenCode at the package path:
|
||||
|
||||
```json
|
||||
{
|
||||
"plugin": ["/path/to/compound-engineering-plugin"]
|
||||
}
|
||||
```
|
||||
|
||||
Restart OpenCode after changing the package source.
|
||||
@@ -0,0 +1,17 @@
|
||||
import path from "path"
|
||||
import { fileURLToPath } from "url"
|
||||
|
||||
const pluginDir = path.dirname(fileURLToPath(import.meta.url))
|
||||
const skillsDir = path.resolve(pluginDir, "../../skills")
|
||||
|
||||
export const CompoundEngineeringPlugin = async () => ({
|
||||
config: async (config) => {
|
||||
config.skills = config.skills || {}
|
||||
config.skills.paths = config.skills.paths || []
|
||||
if (!config.skills.paths.includes(skillsDir)) {
|
||||
config.skills.paths.push(skillsDir)
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
export default CompoundEngineeringPlugin
|
||||
Reference in New Issue
Block a user