opencode-doom-loop-detector 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -1
  2. package/package.json +42 -40
package/README.md CHANGED
@@ -17,7 +17,13 @@ Every stop goes through the existing `doom_loop` permission ask, so intentional
17
17
 
18
18
  ## Install
19
19
 
20
- Add the package to your `opencode.jsonc`:
20
+ Either use the CLI:
21
+
22
+ ```bash
23
+ opencode plugin add opencode-doom-loop-detector
24
+ ```
25
+
26
+ Or add the package to your `opencode.jsonc` directly (opencode installs missing npm plugins automatically at startup):
21
27
 
22
28
  ```jsonc
23
29
  {
package/package.json CHANGED
@@ -1,40 +1,42 @@
1
- {
2
- "name": "opencode-doom-loop-detector",
3
- "version": "0.1.0",
4
- "description": "Doom-loop detection for opencode v2: catches repeated tool-call loops (consecutive, periodic rotation, failure streaks) and stops them through the existing doom_loop permission ask.",
5
- "type": "module",
6
- "license": "MIT",
7
- "main": "./dist/index.js",
8
- "exports": {
9
- ".": "./dist/index.js"
10
- },
11
- "files": [
12
- "dist",
13
- "src",
14
- "README.md",
15
- "LICENSE"
16
- ],
17
- "scripts": {
18
- "build": "bun build src/index.ts --outfile dist/index.js --external @opencode/plugin --external @opencode/schema --external effect",
19
- "typecheck": "tsc --noEmit",
20
- "test": "bun test"
21
- },
22
- "peerDependencies": {
23
- "@opencode/plugin": "^2.2.5",
24
- "@opencode/schema": "^2.2.5",
25
- "effect": "4.0.6"
26
- },
27
- "devDependencies": {
28
- "@opencode/plugin": "^2.2.5",
29
- "@opencode/schema": "^2.2.5",
30
- "effect": "4.0.6",
31
- "typescript": "^5.9.0"
32
- },
33
- "keywords": [
34
- "opencode",
35
- "plugin",
36
- "doom-loop",
37
- "loop-detection",
38
- "agent"
39
- ]
40
- }
1
+ {
2
+ "name": "opencode-doom-loop-detector",
3
+ "version": "0.1.1",
4
+ "description": "Doom-loop detection for opencode v2: catches repeated tool-call loops (consecutive, periodic rotation, failure streaks) and stops them through the existing doom_loop permission ask.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": "github:metal-huang/opencode-doom-loop-detector",
8
+ "main": "./dist/index.js",
9
+ "exports": {
10
+ ".": "./dist/index.js"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "src",
15
+ "README.md",
16
+ "LICENSE"
17
+ ],
18
+ "scripts": {
19
+ "build": "bun build src/index.ts --outfile dist/index.js --external @opencode/plugin --external @opencode/schema --external effect",
20
+ "typecheck": "tsc --noEmit",
21
+ "test": "bun test"
22
+ },
23
+ "peerDependencies": {
24
+ "@opencode/plugin": "^2.2.5",
25
+ "@opencode/schema": "^2.2.5",
26
+ "effect": "4.0.6"
27
+ },
28
+ "devDependencies": {
29
+ "@opencode/plugin": "^2.2.5",
30
+ "@opencode/schema": "^2.2.5",
31
+ "effect": "4.0.6",
32
+ "typescript": "^5.9.0"
33
+ },
34
+ "keywords": [
35
+ "opencode",
36
+ "opencode-plugin",
37
+ "plugin",
38
+ "doom-loop",
39
+ "loop-detection",
40
+ "agent"
41
+ ]
42
+ }