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 +7 -15
- package/package.json +1 -1
- package/src/index.ts +1 -0
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
|
-
|
|
47
|
+
Add to your OpenCode config:
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
61
|
-
"openslimedit@latest"
|
|
62
|
-
]
|
|
52
|
+
"plugin": ["openslimedit@latest"]
|
|
63
53
|
}
|
|
64
54
|
```
|
|
65
55
|
|
|
66
|
-
|
|
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
|
+
"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.",
|