opencode-fs-plugin 1.3.0 → 1.3.2
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/INSTALL.md +9 -9
- package/README.md +10 -10
- package/package.json +2 -2
- package/skills/filesystem/SKILL.md +6 -1
package/INSTALL.md
CHANGED
|
@@ -17,14 +17,14 @@ Add the registry package to the plugin list:
|
|
|
17
17
|
|
|
18
18
|
```jsonc
|
|
19
19
|
{
|
|
20
|
-
"plugins": ["opencode-fs-plugin@1.3.
|
|
20
|
+
"plugins": ["opencode-fs-plugin@1.3.2"]
|
|
21
21
|
}
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Or let the CLI install and configure it:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
opencode plugin add opencode-fs-plugin@1.3.
|
|
27
|
+
opencode plugin add opencode-fs-plugin@1.3.2
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
A bare `opencode-fs-plugin` follows `latest`. OpenCode installs it into its
|
|
@@ -36,7 +36,7 @@ Option A if you also want the skill.
|
|
|
36
36
|
Download the release artifact and install it as a normal npm package:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
VERSION=1.3.
|
|
39
|
+
VERSION=1.3.2
|
|
40
40
|
curl -L -o "opencode-fs-plugin-${VERSION}.tgz" \
|
|
41
41
|
"https://github.com/masterjg/opencode-fs-plugin/releases/download/v${VERSION}/opencode-fs-plugin-${VERSION}.tgz"
|
|
42
42
|
npm install "./opencode-fs-plugin-${VERSION}.tgz"
|
|
@@ -64,20 +64,20 @@ OpenCode installs it from Git:
|
|
|
64
64
|
|
|
65
65
|
```jsonc
|
|
66
66
|
{
|
|
67
|
-
"plugins": ["github:masterjg/opencode-fs-plugin#v1.3.
|
|
67
|
+
"plugins": ["github:masterjg/opencode-fs-plugin#v1.3.2"]
|
|
68
68
|
}
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
`opencode plugin add 'github:masterjg/opencode-fs-plugin#v1.3.
|
|
71
|
+
`opencode plugin add 'github:masterjg/opencode-fs-plugin#v1.3.2'` installs the
|
|
72
72
|
same spec and writes the entry for you. The equivalent full URL is
|
|
73
|
-
`git+https://github.com/masterjg/opencode-fs-plugin.git#v1.3.
|
|
73
|
+
`git+https://github.com/masterjg/opencode-fs-plugin.git#v1.3.2`. A tag is
|
|
74
74
|
checked for updates; use a full commit hash to pin it.
|
|
75
75
|
|
|
76
76
|
Git plugins are installed under OpenCode's cache, so their package path is not
|
|
77
77
|
stable. For a stable skill path, install the tag with npm instead:
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
npm install "github:masterjg/opencode-fs-plugin#v1.3.
|
|
80
|
+
npm install "github:masterjg/opencode-fs-plugin#v1.3.2"
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
Then configure `./node_modules/opencode-fs-plugin` in `plugins` as in the
|
|
@@ -174,9 +174,9 @@ and description until the model loads it.
|
|
|
174
174
|
To let a coding agent install the plugin, use:
|
|
175
175
|
|
|
176
176
|
```text
|
|
177
|
-
Install opencode-fs-plugin 1.3.
|
|
177
|
+
Install opencode-fs-plugin 1.3.2 with "npm install opencode-fs-plugin@1.3.2",
|
|
178
178
|
or from its release tarball or the Git tag
|
|
179
|
-
"github:masterjg/opencode-fs-plugin#v1.3.
|
|
179
|
+
"github:masterjg/opencode-fs-plugin#v1.3.2". Add
|
|
180
180
|
"./node_modules/opencode-fs-plugin" to the plugins array in opencode.jsonc, add
|
|
181
181
|
"./node_modules/opencode-fs-plugin/skills" to the skills array, then verify that
|
|
182
182
|
the filesystem skill loads with the skill tool using id "filesystem".
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# opencode-fs-plugin
|
|
2
2
|
|
|
3
|
-
An OpenCode 2 plugin that adds a Linux-style filesystem
|
|
4
|
-
the `fs` namespace. It is a maintained fork of
|
|
3
|
+
An OpenCode 2 plugin that adds a Linux-style filesystem, text, and HTTP(S)
|
|
4
|
+
toolkit under the `fs` namespace. It is a maintained fork of
|
|
5
5
|
[`kiu345/opencode-fs-plugin`](https://github.com/kiu345/opencode-fs-plugin),
|
|
6
6
|
rewritten with async I/O, permission integration, a symlink-aware sandbox, and
|
|
7
7
|
unit, end-to-end and coverage tests.
|
|
@@ -142,18 +142,18 @@ Add the registry package directly to the plugin list:
|
|
|
142
142
|
|
|
143
143
|
```jsonc
|
|
144
144
|
{
|
|
145
|
-
"plugins": ["opencode-fs-plugin@1.3.
|
|
145
|
+
"plugins": ["opencode-fs-plugin@1.3.2"]
|
|
146
146
|
}
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
-
`opencode plugin add opencode-fs-plugin@1.3.
|
|
149
|
+
`opencode plugin add opencode-fs-plugin@1.3.2` installs it and writes the config
|
|
150
150
|
entry. A bare `opencode-fs-plugin` follows the `latest` tag.
|
|
151
151
|
|
|
152
152
|
OpenCode manages the package under its cache, so the path is not stable. If you
|
|
153
153
|
also want the packaged skill, install it into a project instead:
|
|
154
154
|
|
|
155
155
|
```bash
|
|
156
|
-
npm install opencode-fs-plugin@1.3.
|
|
156
|
+
npm install opencode-fs-plugin@1.3.2
|
|
157
157
|
```
|
|
158
158
|
|
|
159
159
|
```jsonc
|
|
@@ -168,7 +168,7 @@ npm install opencode-fs-plugin@1.3.0
|
|
|
168
168
|
Download the release tarball, then install it as a normal npm package:
|
|
169
169
|
|
|
170
170
|
```bash
|
|
171
|
-
VERSION=1.3.
|
|
171
|
+
VERSION=1.3.2
|
|
172
172
|
curl -L -o "opencode-fs-plugin-${VERSION}.tgz" \
|
|
173
173
|
"https://github.com/masterjg/opencode-fs-plugin/releases/download/v${VERSION}/opencode-fs-plugin-${VERSION}.tgz"
|
|
174
174
|
npm install "./opencode-fs-plugin-${VERSION}.tgz"
|
|
@@ -197,20 +197,20 @@ OpenCode installs it from Git:
|
|
|
197
197
|
|
|
198
198
|
```jsonc
|
|
199
199
|
{
|
|
200
|
-
"plugins": ["github:masterjg/opencode-fs-plugin#v1.3.
|
|
200
|
+
"plugins": ["github:masterjg/opencode-fs-plugin#v1.3.2"]
|
|
201
201
|
}
|
|
202
202
|
```
|
|
203
203
|
|
|
204
|
-
`opencode plugin add 'github:masterjg/opencode-fs-plugin#v1.3.
|
|
204
|
+
`opencode plugin add 'github:masterjg/opencode-fs-plugin#v1.3.2'` installs the
|
|
205
205
|
same spec and writes the config entry. The equivalent full URL is
|
|
206
|
-
`git+https://github.com/masterjg/opencode-fs-plugin.git#v1.3.
|
|
206
|
+
`git+https://github.com/masterjg/opencode-fs-plugin.git#v1.3.2`. A tag is
|
|
207
207
|
checked for updates; use a full commit hash to pin it.
|
|
208
208
|
|
|
209
209
|
Git plugins are installed under OpenCode's cache, so their package path is not
|
|
210
210
|
stable. If you also want the packaged skill, install with npm instead:
|
|
211
211
|
|
|
212
212
|
```bash
|
|
213
|
-
npm install "github:masterjg/opencode-fs-plugin#v1.3.
|
|
213
|
+
npm install "github:masterjg/opencode-fs-plugin#v1.3.2"
|
|
214
214
|
```
|
|
215
215
|
|
|
216
216
|
Then use `./node_modules/opencode-fs-plugin` in `plugins` and
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-fs-plugin",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "OpenCode 2 plugin: Linux-style filesystem and
|
|
5
|
+
"description": "OpenCode 2 plugin: Linux-style filesystem, text, and HTTP(S) tools under the fs namespace.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/masterjg/opencode-fs-plugin.git"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Filesystem
|
|
3
|
-
description: Use when a task needs Linux-style filesystem or
|
|
3
|
+
description: Use when a task needs Linux-style filesystem, text, or network operations beyond OpenCode's built-ins - copy, move, metadata, touch, truncate, symlinks, chmod, hashes, disk usage, find, archives, diff, HTTP(S) requests, API calls, or file downloads (curl replacement), trash, background jobs, or composing filters through a pipe. Covers the fs namespace, argument shapes, native options, permissions, limits, and verification.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Filesystem
|
|
@@ -79,6 +79,7 @@ Use the exact field names; scalar `path` is only valid for `fs.mkdir`.
|
|
|
79
79
|
| `archive` + `paths` | `fs.tar` create, `fs.zip` create |
|
|
80
80
|
| `archive` + `mode` | `fs.tar` (`create`/`extract`/`list`), `fs.unzip` (`extract`/`list`) |
|
|
81
81
|
| `content` | `fs.tee` when there is no stdin |
|
|
82
|
+
| `paths` + optional `keep`/`force`/`stdout`/`level`/`suffix` | `fs.gzip`, `fs.gunzip` |
|
|
82
83
|
| `url` + optional `output` | `fs.http_request` |
|
|
83
84
|
| `stages` + optional `input`/`output` | `fs.pipe` |
|
|
84
85
|
|
|
@@ -263,6 +264,10 @@ await tools.fs.http_request({
|
|
|
263
264
|
Files under `/tmp` are usually on another filesystem; use a project path or a
|
|
264
265
|
same-filesystem holding directory instead.
|
|
265
266
|
- `fs.mktemp` uses the OS temp directory unless `tmpdir` is supplied.
|
|
267
|
+
- `fs.mkdir` fails when the directory already exists; check with `fs.stat`
|
|
268
|
+
first or treat `ERROR: Already exists` as a no-op.
|
|
269
|
+
- `fs.gunzip` needs `force` to overwrite the restored file; without `keep` it
|
|
270
|
+
removes the `.gz` after decompressing.
|
|
266
271
|
|
|
267
272
|
## Paths and safety
|
|
268
273
|
|