opencode-fs-plugin 1.4.0 → 1.4.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 +12 -8
- package/package.json +1 -1
- package/skills/filesystem/SKILL.md +9 -4
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.4.
|
|
20
|
+
"plugins": ["opencode-fs-plugin@1.4.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.4.
|
|
27
|
+
opencode plugin add opencode-fs-plugin@1.4.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.4.
|
|
39
|
+
VERSION=1.4.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.4.
|
|
67
|
+
"plugins": ["github:masterjg/opencode-fs-plugin#v1.4.2"]
|
|
68
68
|
}
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
`opencode plugin add 'github:masterjg/opencode-fs-plugin#v1.4.
|
|
71
|
+
`opencode plugin add 'github:masterjg/opencode-fs-plugin#v1.4.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.4.
|
|
73
|
+
`git+https://github.com/masterjg/opencode-fs-plugin.git#v1.4.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.4.
|
|
80
|
+
npm install "github:masterjg/opencode-fs-plugin#v1.4.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.4.
|
|
177
|
+
Install opencode-fs-plugin 1.4.2 with "npm install opencode-fs-plugin@1.4.2",
|
|
178
178
|
or from its release tarball or the Git tag
|
|
179
|
-
"github:masterjg/opencode-fs-plugin#v1.4.
|
|
179
|
+
"github:masterjg/opencode-fs-plugin#v1.4.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
|
@@ -166,18 +166,18 @@ Add the registry package directly to the plugin list:
|
|
|
166
166
|
|
|
167
167
|
```jsonc
|
|
168
168
|
{
|
|
169
|
-
"plugins": ["opencode-fs-plugin@1.4.
|
|
169
|
+
"plugins": ["opencode-fs-plugin@1.4.2"]
|
|
170
170
|
}
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
-
`opencode plugin add opencode-fs-plugin@1.4.
|
|
173
|
+
`opencode plugin add opencode-fs-plugin@1.4.2` installs it and writes the config
|
|
174
174
|
entry. A bare `opencode-fs-plugin` follows the `latest` tag.
|
|
175
175
|
|
|
176
176
|
OpenCode manages the package under its cache, so the path is not stable. If you
|
|
177
177
|
also want the packaged skill, install it into a project instead:
|
|
178
178
|
|
|
179
179
|
```bash
|
|
180
|
-
npm install opencode-fs-plugin@1.4.
|
|
180
|
+
npm install opencode-fs-plugin@1.4.2
|
|
181
181
|
```
|
|
182
182
|
|
|
183
183
|
```jsonc
|
|
@@ -192,7 +192,7 @@ npm install opencode-fs-plugin@1.4.0
|
|
|
192
192
|
Download the release tarball, then install it as a normal npm package:
|
|
193
193
|
|
|
194
194
|
```bash
|
|
195
|
-
VERSION=1.4.
|
|
195
|
+
VERSION=1.4.2
|
|
196
196
|
curl -L -o "opencode-fs-plugin-${VERSION}.tgz" \
|
|
197
197
|
"https://github.com/masterjg/opencode-fs-plugin/releases/download/v${VERSION}/opencode-fs-plugin-${VERSION}.tgz"
|
|
198
198
|
npm install "./opencode-fs-plugin-${VERSION}.tgz"
|
|
@@ -221,20 +221,20 @@ OpenCode installs it from Git:
|
|
|
221
221
|
|
|
222
222
|
```jsonc
|
|
223
223
|
{
|
|
224
|
-
"plugins": ["github:masterjg/opencode-fs-plugin#v1.4.
|
|
224
|
+
"plugins": ["github:masterjg/opencode-fs-plugin#v1.4.2"]
|
|
225
225
|
}
|
|
226
226
|
```
|
|
227
227
|
|
|
228
|
-
`opencode plugin add 'github:masterjg/opencode-fs-plugin#v1.4.
|
|
228
|
+
`opencode plugin add 'github:masterjg/opencode-fs-plugin#v1.4.2'` installs the
|
|
229
229
|
same spec and writes the config entry. The equivalent full URL is
|
|
230
|
-
`git+https://github.com/masterjg/opencode-fs-plugin.git#v1.4.
|
|
230
|
+
`git+https://github.com/masterjg/opencode-fs-plugin.git#v1.4.2`. A tag is
|
|
231
231
|
checked for updates; use a full commit hash to pin it.
|
|
232
232
|
|
|
233
233
|
Git plugins are installed under OpenCode's cache, so their package path is not
|
|
234
234
|
stable. If you also want the packaged skill, install with npm instead:
|
|
235
235
|
|
|
236
236
|
```bash
|
|
237
|
-
npm install "github:masterjg/opencode-fs-plugin#v1.4.
|
|
237
|
+
npm install "github:masterjg/opencode-fs-plugin#v1.4.2"
|
|
238
238
|
```
|
|
239
239
|
|
|
240
240
|
Then use `./node_modules/opencode-fs-plugin` in `plugins` and
|
|
@@ -349,6 +349,10 @@ when only some agents should be shell-free.
|
|
|
349
349
|
|
|
350
350
|
## Development
|
|
351
351
|
|
|
352
|
+
See [AGENTS.md](AGENTS.md) for the engineering rules: async-only I/O,
|
|
353
|
+
core-count concurrency, and where every independent operation must be
|
|
354
|
+
parallelized.
|
|
355
|
+
|
|
352
356
|
```bash
|
|
353
357
|
npm install
|
|
354
358
|
npm run typecheck
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Filesystem
|
|
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,
|
|
3
|
+
description: Use when a task needs Linux-style filesystem, text, or network operations beyond OpenCode's built-ins - copy, move, metadata, permissions, touch, truncate, symlinks, chmod, hashes, disk usage, find, archives, comparing files or directories, 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
|
|
@@ -67,7 +67,9 @@ Recent parity additions:
|
|
|
67
67
|
|
|
68
68
|
## Argument shapes
|
|
69
69
|
|
|
70
|
-
Use the exact field names; scalar `path` is only valid for `fs.mkdir`.
|
|
70
|
+
Use the exact field names; scalar `path` is only valid for `fs.mkdir`. The host
|
|
71
|
+
silently drops unknown arguments, so a typo like `path` instead of `paths` makes
|
|
72
|
+
the tool run with defaults (often `.`), not fail.
|
|
71
73
|
|
|
72
74
|
| Field | Commands |
|
|
73
75
|
|---|---|
|
|
@@ -102,7 +104,8 @@ await tools.fs.pipe({
|
|
|
102
104
|
`output` writes the final stream and `append` appends. Stage names are the short
|
|
103
105
|
native names (`cat`, `grep`, `sort`), not `fs.cat`. There is no shell,
|
|
104
106
|
redirection operator, nested pipe, or `find -exec`. A filter stage needs
|
|
105
|
-
`input` or a preceding source stage.
|
|
107
|
+
`input` or a preceding source stage. Set `grep.noFilename: true` in a pipe when
|
|
108
|
+
later stages need bare lines instead of `path:line`.
|
|
106
109
|
|
|
107
110
|
`http_request` is a source stage. Pipe stages exchange whole buffers, so set
|
|
108
111
|
`maxBytes` for large responses; use `output` for real streaming to disk.
|
|
@@ -310,7 +313,9 @@ addresses by default.
|
|
|
310
313
|
stop. Both carry a stable `code` in metadata.
|
|
311
314
|
- `fs.grep` with no matches and `fs.diff` with differences return exit code 1;
|
|
312
315
|
that is a result, not a tool failure.
|
|
313
|
-
- Binary output is returned as base64 when no `output` file is supplied.
|
|
316
|
+
- Binary output is returned as base64 when no `output` file is supplied. NUL
|
|
317
|
+
output (`print0`, `sort -z`) is base64 too; prefer newline output in Code
|
|
318
|
+
Mode.
|
|
314
319
|
- Tools that produce no text (`cp`, `mv`, `rm`, `touch`, `chmod`, `sed -i`) return
|
|
315
320
|
empty content; verify the effect with `fs.stat`, `fs.ls`, or `fs.diff`.
|
|
316
321
|
- Invalid arguments return `ERROR: Invalid ...`; fix the field names or option
|