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.
Files changed (46) hide show
  1. package/README.md +7 -4
  2. package/dist/irf.js +626 -125
  3. package/package.json +3 -5
  4. package/dist/irf.d.ts +0 -4
  5. package/dist/irf.d.ts.map +0 -1
  6. package/dist/irf.js.map +0 -1
  7. package/dist/src/discover.d.ts +0 -11
  8. package/dist/src/discover.d.ts.map +0 -1
  9. package/dist/src/discover.js +0 -92
  10. package/dist/src/discover.js.map +0 -1
  11. package/dist/src/process.d.ts +0 -26
  12. package/dist/src/process.d.ts.map +0 -1
  13. package/dist/src/process.js +0 -56
  14. package/dist/src/process.js.map +0 -1
  15. package/dist/src/prompt.d.ts +0 -7
  16. package/dist/src/prompt.d.ts.map +0 -1
  17. package/dist/src/prompt.js +0 -84
  18. package/dist/src/prompt.js.map +0 -1
  19. package/dist/src/schema.d.ts +0 -69
  20. package/dist/src/schema.d.ts.map +0 -1
  21. package/dist/src/schema.js +0 -48
  22. package/dist/src/schema.js.map +0 -1
  23. package/dist/src/session.d.ts +0 -23
  24. package/dist/src/session.d.ts.map +0 -1
  25. package/dist/src/session.js +0 -112
  26. package/dist/src/session.js.map +0 -1
  27. package/dist/src/utils/compare.d.ts +0 -18
  28. package/dist/src/utils/compare.d.ts.map +0 -1
  29. package/dist/src/utils/compare.js +0 -74
  30. package/dist/src/utils/compare.js.map +0 -1
  31. package/dist/src/utils/extractLlmError.d.ts +0 -13
  32. package/dist/src/utils/extractLlmError.d.ts.map +0 -1
  33. package/dist/src/utils/extractLlmError.js +0 -12
  34. package/dist/src/utils/extractLlmError.js.map +0 -1
  35. package/dist/src/utils/safe.d.ts +0 -12
  36. package/dist/src/utils/safe.d.ts.map +0 -1
  37. package/dist/src/utils/safe.js +0 -31
  38. package/dist/src/utils/safe.js.map +0 -1
  39. package/dist/src/utils/stripCodeFences.d.ts +0 -2
  40. package/dist/src/utils/stripCodeFences.d.ts.map +0 -1
  41. package/dist/src/utils/stripCodeFences.js +0 -9
  42. package/dist/src/utils/stripCodeFences.js.map +0 -1
  43. package/dist/src/utils/validate.d.ts +0 -19
  44. package/dist/src/utils/validate.d.ts.map +0 -1
  45. package/dist/src/utils/validate.js +0 -30
  46. 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 as a global OpenCode plugin:
64
+ Add IRF to your `opencode.json`:
65
65
 
66
- ```ts
67
- // ~/.config/opencode/plugins/irf.ts
68
- export { IRFPlugin } from '/path/to/irf/src/index.ts'
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: