opencode-ralph-loop
Advanced tools
| // Lives outside src/index.ts on purpose. opencode's plugin loader iterates | ||
| // `Object.values(module)` of the entrypoint and throws "Plugin export is not | ||
| // a function" on any non-function export (including RegExps). Keeping the | ||
| // completion regex in a sibling module lets tests import it freely without | ||
| // tripping the loader, since the entrypoint imports COMPLETION_TAG without | ||
| // re-exporting it. See #14 / #15 for the symptom. | ||
| export const COMPLETION_TAG = /<promise>\s*DONE\s*<\/promise>/is; |
+1
-1
| { | ||
| "name": "opencode-ralph-loop", | ||
| "version": "1.0.8", | ||
| "version": "1.0.9", | ||
| "description": "Minimal Ralph Loop plugin for opencode - auto-continues until task completion", | ||
@@ -5,0 +5,0 @@ "main": "src/index.ts", |
+1
-1
@@ -6,2 +6,3 @@ import { tool } from "@opencode-ai/plugin"; | ||
| import { fileURLToPath } from "url"; | ||
| import { COMPLETION_TAG } from "./completion.ts"; | ||
@@ -20,3 +21,2 @@ // Types | ||
| const OPENCODE_CONFIG_DIR = join(homedir(), ".config/opencode"); | ||
| export const COMPLETION_TAG = /<promise>\s*DONE\s*<\/promise>/is; | ||
@@ -23,0 +23,0 @@ // Get plugin root directory |
23327
2.11%11
10%274
2.62%