opencode-irf 0.0.3 → 0.0.5
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.
- package/README.md +7 -4
- package/dist/irf.js +626 -125
- package/package.json +3 -5
- package/dist/irf.d.ts +0 -4
- package/dist/irf.d.ts.map +0 -1
- package/dist/irf.js.map +0 -1
- package/dist/src/discover.d.ts +0 -11
- package/dist/src/discover.d.ts.map +0 -1
- package/dist/src/discover.js +0 -92
- package/dist/src/discover.js.map +0 -1
- package/dist/src/process.d.ts +0 -26
- package/dist/src/process.d.ts.map +0 -1
- package/dist/src/process.js +0 -56
- package/dist/src/process.js.map +0 -1
- package/dist/src/prompt.d.ts +0 -7
- package/dist/src/prompt.d.ts.map +0 -1
- package/dist/src/prompt.js +0 -84
- package/dist/src/prompt.js.map +0 -1
- package/dist/src/schema.d.ts +0 -69
- package/dist/src/schema.d.ts.map +0 -1
- package/dist/src/schema.js +0 -48
- package/dist/src/schema.js.map +0 -1
- package/dist/src/session.d.ts +0 -23
- package/dist/src/session.d.ts.map +0 -1
- package/dist/src/session.js +0 -112
- package/dist/src/session.js.map +0 -1
- package/dist/src/utils/compare.d.ts +0 -18
- package/dist/src/utils/compare.d.ts.map +0 -1
- package/dist/src/utils/compare.js +0 -74
- package/dist/src/utils/compare.js.map +0 -1
- package/dist/src/utils/extractLlmError.d.ts +0 -13
- package/dist/src/utils/extractLlmError.d.ts.map +0 -1
- package/dist/src/utils/extractLlmError.js +0 -12
- package/dist/src/utils/extractLlmError.js.map +0 -1
- package/dist/src/utils/safe.d.ts +0 -12
- package/dist/src/utils/safe.d.ts.map +0 -1
- package/dist/src/utils/safe.js +0 -31
- package/dist/src/utils/safe.js.map +0 -1
- package/dist/src/utils/stripCodeFences.d.ts +0 -2
- package/dist/src/utils/stripCodeFences.d.ts.map +0 -1
- package/dist/src/utils/stripCodeFences.js +0 -9
- package/dist/src/utils/stripCodeFences.js.map +0 -1
- package/dist/src/utils/validate.d.ts +0 -19
- package/dist/src/utils/validate.d.ts.map +0 -1
- package/dist/src/utils/validate.js +0 -30
- package/dist/src/utils/validate.js.map +0 -1
package/README.md
CHANGED
|
@@ -61,13 +61,16 @@ Reason: Arrow functions provide lexical this binding and a more compact syntax.
|
|
|
61
61
|
|
|
62
62
|
## Installation
|
|
63
63
|
|
|
64
|
-
Add IRF
|
|
64
|
+
Add IRF to your `opencode.json`:
|
|
65
65
|
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"plugin": ["opencode-irf"]
|
|
69
|
+
}
|
|
69
70
|
```
|
|
70
71
|
|
|
72
|
+
Restart OpenCode. The plugin will be installed automatically.
|
|
73
|
+
|
|
71
74
|
## Usage
|
|
72
75
|
|
|
73
76
|
The `irf-rewrite` tool reads the `instructions` array from your project's `opencode.json` and processes each matched file:
|