🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

opencode-ralph-loop

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opencode-ralph-loop - npm Package Compare versions

Comparing version
1.0.8
to
1.0.9
+7
src/completion.ts
// 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",

@@ -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