modify plugin structure
Signed-off-by: Dmytro Stanchiev <git@dmytros.dev>
This commit is contained in:
43
.opencode/INSTALL.md
Normal file
43
.opencode/INSTALL.md
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
# Installing Ralph Loop for OpenCode
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Add the plugin to the `plugin` array in your `opencode.json`:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"plugin": ["opencode-plugin-ralph-loop"]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
If you install directly from git instead of a registry, use your git URL in the same array entry.
|
||||||
|
|
||||||
|
Restart OpenCode after updating the config.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
This plugin registers these commands:
|
||||||
|
|
||||||
|
- `/ralph-loop`
|
||||||
|
- `/ulw-loop`
|
||||||
|
- `/cancel-ralph`
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```text
|
||||||
|
/ralph-loop "Implement the feature completely and stop only when done"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
User config:
|
||||||
|
|
||||||
|
- `~/.config/opencode/ralph-loop.json`
|
||||||
|
- `~/.config/opencode/ralph-loop.jsonc`
|
||||||
|
|
||||||
|
Project config:
|
||||||
|
|
||||||
|
- `.opencode/ralph-loop.json`
|
||||||
|
- `.opencode/ralph-loop.jsonc`
|
||||||
|
|
||||||
|
Project config overrides user config.
|
||||||
1
.opencode/plugins/ralph-loop.js
Normal file
1
.opencode/plugins/ralph-loop.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export { default } from "../../dist/index.js"
|
||||||
10
README.md
10
README.md
@@ -2,6 +2,16 @@
|
|||||||
|
|
||||||
Standalone implementation of the **Ralph Loop** (self-referential dev loop) extracted from `oh-my-opencode`.
|
Standalone implementation of the **Ralph Loop** (self-referential dev loop) extracted from `oh-my-opencode`.
|
||||||
|
|
||||||
|
## OpenCode Install
|
||||||
|
|
||||||
|
Tell OpenCode:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Fetch and follow instructions from ./.opencode/INSTALL.md
|
||||||
|
```
|
||||||
|
|
||||||
|
Detailed OpenCode docs: `docs/README.opencode.md`
|
||||||
|
|
||||||
Provides:
|
Provides:
|
||||||
- `/ralph-loop` command
|
- `/ralph-loop` command
|
||||||
- `/ulw-loop` command (ultrawork mode)
|
- `/ulw-loop` command (ultrawork mode)
|
||||||
|
|||||||
36
docs/README.opencode.md
Normal file
36
docs/README.opencode.md
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# Ralph Loop for OpenCode
|
||||||
|
|
||||||
|
`opencode-plugin-ralph-loop` is an OpenCode plugin that registers Ralph Loop commands and manages continuation state for long-running iterative work.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Add the plugin to `opencode.json`:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"plugin": ["opencode-plugin-ralph-loop"]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Restart OpenCode after installing.
|
||||||
|
|
||||||
|
## Commands
|
||||||
|
|
||||||
|
- `/ralph-loop`
|
||||||
|
- `/ulw-loop`
|
||||||
|
- `/cancel-ralph`
|
||||||
|
|
||||||
|
## State
|
||||||
|
|
||||||
|
Loop state is persisted to `.sisyphus/ralph-loop.local.md` in the current project directory.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
Supported config files:
|
||||||
|
|
||||||
|
- `~/.config/opencode/ralph-loop.json`
|
||||||
|
- `~/.config/opencode/ralph-loop.jsonc`
|
||||||
|
- `.opencode/ralph-loop.json`
|
||||||
|
- `.opencode/ralph-loop.jsonc`
|
||||||
|
|
||||||
|
Project config overrides user config.
|
||||||
@@ -2,18 +2,20 @@
|
|||||||
"name": "opencode-plugin-ralph-loop",
|
"name": "opencode-plugin-ralph-loop",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "Standalone Ralph Loop plugin for OpenCode (extracted from oh-my-opencode)",
|
"description": "Standalone Ralph Loop plugin for OpenCode (extracted from oh-my-opencode)",
|
||||||
"main": "dist/index.js",
|
"main": ".opencode/plugins/ralph-loop.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
|
".opencode",
|
||||||
"dist",
|
"dist",
|
||||||
|
"docs",
|
||||||
"README.md",
|
"README.md",
|
||||||
"LICENSE.md"
|
"LICENSE.md"
|
||||||
],
|
],
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"import": "./dist/index.js"
|
"import": "./.opencode/plugins/ralph-loop.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user