openslimedit 1.0.3 → 1.0.4

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 CHANGED
@@ -44,26 +44,18 @@ No custom tools. No system prompt injection. No modifications to built-in tool b
44
44
 
45
45
  ## Installation
46
46
 
47
- ### Prerequisites
47
+ Add to your OpenCode config:
48
48
 
49
- - [OpenCode](https://github.com/anomalyco/opencode) with plugin hook support
50
- - [Bun](https://bun.sh) runtime
51
-
52
- ```bash
53
- npm install openslimedit
54
- ```
55
-
56
- Then add it to your OpenCode config (`.opencode/opencode.json` or `opencode.jsonc`):
57
-
58
- ```json
49
+ ```jsonc
50
+ // .opencode/opencode.jsonc
59
51
  {
60
- "plugin": [
61
- "openslimedit@latest"
62
- ]
52
+ "plugin": ["openslimedit@latest"]
63
53
  }
64
54
  ```
65
55
 
66
- Start OpenCode and the plugin activates automatically.
56
+ Using `@latest` ensures you always get the newest version automatically when OpenCode starts.
57
+
58
+ Restart OpenCode. The plugin will automatically start optimizing your sessions.
67
59
 
68
60
  ---
69
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openslimedit",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "OpenCode plugin that reduces token usage by up to 33% — compresses tool descriptions, compacts read output, adds line-range edit support",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -15,6 +15,7 @@ export const OpenSlimeditPlugin: Plugin = async ({ directory }) => {
15
15
  const SLIM: Record<string, string> = {
16
16
  read: "Read file content.",
17
17
  edit: "Edit file. oldString can be line range '55-64'.",
18
+ apply_patch: "Apply a patch to files.",
18
19
  write: "Write file.",
19
20
  bash: "Run shell command.",
20
21
  glob: "Find files.",