opencode-fs-plugin 1.2.1 → 1.2.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 +8 -8
- package/package.json +1 -1
- package/skills/filesystem/SKILL.md +10 -4
- package/src/tools/find.ts +2 -2
- package/src/tools/ls.ts +2 -1
- package/src/tools/sort.ts +1 -1
- package/src/tools/stat.ts +3 -2
- package/src/tools/tar.ts +2 -1
- package/src/tools/zip.ts +3 -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.2.
|
|
20
|
+
"plugins": ["opencode-fs-plugin@1.2.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.2.
|
|
27
|
+
opencode plugin add opencode-fs-plugin@1.2.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.2.
|
|
39
|
+
VERSION=1.2.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.2.
|
|
67
|
+
"plugins": ["github:masterjg/opencode-fs-plugin#v1.2.2"]
|
|
68
68
|
}
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
`opencode plugin add 'github:masterjg/opencode-fs-plugin#v1.2.
|
|
71
|
+
`opencode plugin add 'github:masterjg/opencode-fs-plugin#v1.2.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.2.
|
|
73
|
+
`git+https://github.com/masterjg/opencode-fs-plugin.git#v1.2.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.2.
|
|
80
|
+
npm install "github:masterjg/opencode-fs-plugin#v1.2.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.2.
|
|
177
|
+
Install opencode-fs-plugin 1.2.2 with "npm install opencode-fs-plugin@1.2.2",
|
|
178
178
|
or from its release tarball or the Git tag
|
|
179
|
-
"github:masterjg/opencode-fs-plugin#v1.2.
|
|
179
|
+
"github:masterjg/opencode-fs-plugin#v1.2.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
|
@@ -127,18 +127,18 @@ Add the registry package directly to the plugin list:
|
|
|
127
127
|
|
|
128
128
|
```jsonc
|
|
129
129
|
{
|
|
130
|
-
"plugins": ["opencode-fs-plugin@1.2.
|
|
130
|
+
"plugins": ["opencode-fs-plugin@1.2.2"]
|
|
131
131
|
}
|
|
132
132
|
```
|
|
133
133
|
|
|
134
|
-
`opencode plugin add opencode-fs-plugin@1.2.
|
|
134
|
+
`opencode plugin add opencode-fs-plugin@1.2.2` installs it and writes the config
|
|
135
135
|
entry. A bare `opencode-fs-plugin` follows the `latest` tag.
|
|
136
136
|
|
|
137
137
|
OpenCode manages the package under its cache, so the path is not stable. If you
|
|
138
138
|
also want the packaged skill, install it into a project instead:
|
|
139
139
|
|
|
140
140
|
```bash
|
|
141
|
-
npm install opencode-fs-plugin@1.2.
|
|
141
|
+
npm install opencode-fs-plugin@1.2.2
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
```jsonc
|
|
@@ -153,7 +153,7 @@ npm install opencode-fs-plugin@1.2.1
|
|
|
153
153
|
Download the release tarball, then install it as a normal npm package:
|
|
154
154
|
|
|
155
155
|
```bash
|
|
156
|
-
VERSION=1.2.
|
|
156
|
+
VERSION=1.2.2
|
|
157
157
|
curl -L -o "opencode-fs-plugin-${VERSION}.tgz" \
|
|
158
158
|
"https://github.com/masterjg/opencode-fs-plugin/releases/download/v${VERSION}/opencode-fs-plugin-${VERSION}.tgz"
|
|
159
159
|
npm install "./opencode-fs-plugin-${VERSION}.tgz"
|
|
@@ -182,20 +182,20 @@ OpenCode installs it from Git:
|
|
|
182
182
|
|
|
183
183
|
```jsonc
|
|
184
184
|
{
|
|
185
|
-
"plugins": ["github:masterjg/opencode-fs-plugin#v1.2.
|
|
185
|
+
"plugins": ["github:masterjg/opencode-fs-plugin#v1.2.2"]
|
|
186
186
|
}
|
|
187
187
|
```
|
|
188
188
|
|
|
189
|
-
`opencode plugin add 'github:masterjg/opencode-fs-plugin#v1.2.
|
|
189
|
+
`opencode plugin add 'github:masterjg/opencode-fs-plugin#v1.2.2'` installs the
|
|
190
190
|
same spec and writes the config entry. The equivalent full URL is
|
|
191
|
-
`git+https://github.com/masterjg/opencode-fs-plugin.git#v1.2.
|
|
191
|
+
`git+https://github.com/masterjg/opencode-fs-plugin.git#v1.2.2`. A tag is
|
|
192
192
|
checked for updates; use a full commit hash to pin it.
|
|
193
193
|
|
|
194
194
|
Git plugins are installed under OpenCode's cache, so their package path is not
|
|
195
195
|
stable. If you also want the packaged skill, install with npm instead:
|
|
196
196
|
|
|
197
197
|
```bash
|
|
198
|
-
npm install "github:masterjg/opencode-fs-plugin#v1.2.
|
|
198
|
+
npm install "github:masterjg/opencode-fs-plugin#v1.2.2"
|
|
199
199
|
```
|
|
200
200
|
|
|
201
201
|
Then use `./node_modules/opencode-fs-plugin` in `plugins` and
|
package/package.json
CHANGED
|
@@ -52,10 +52,16 @@ what `fs.stat`, `fs.ls`, `fs.hash`, `fs.diff`, or `fs.cat` can confirm.
|
|
|
52
52
|
| Compose filters | `fs.pipe` |
|
|
53
53
|
| Background jobs | `background: true`, then `fs.job` |
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
Recent parity additions:
|
|
56
|
+
|
|
57
|
+
| Tool | Added |
|
|
58
|
+
|---|---|
|
|
59
|
+
| `fs.sort` | `generalNumeric`, `humanNumeric`, `version`, `dictionary`, `ignoreNonPrinting`, `stable`, `check`, `checkQuiet`, `zeroTerminated`, GNU `keys` ranges |
|
|
60
|
+
| `fs.ls` | `size`, `numericIds`, `noGroup`, `noOwner`, `slash`, `quote`, `versionSort`, `extensionSort`, `fullTime`, `timeStyle`, `hide`, `ignore`, `groupDirectoriesFirst` |
|
|
61
|
+
| `fs.find` | `lname`/`ilname`, `regex`/`iregex`, `uid`/`gid`/`user`/`group`, `links`, `inum`, `samefile`, `fstype`, `newerXY`, `printf`; `c`/`w`/`b` size suffixes |
|
|
62
|
+
| `fs.stat` | `terse`, extended tokens `%f`, `%m`, `%r`, `%w`, `%W`, `%C` |
|
|
63
|
+
| `fs.tail` | bounded `follow`, `timeoutMs`, `intervalMs`, `maxBytes` |
|
|
64
|
+
| `fs.tar`/`fs.zip` | `input`/`member` stream input and pipe sink support |
|
|
59
65
|
|
|
60
66
|
## Argument shapes
|
|
61
67
|
|
package/src/tools/find.ts
CHANGED
|
@@ -103,8 +103,8 @@ let groupMap: Map<string, number> | undefined;
|
|
|
103
103
|
export const findTool: ToolSpec<Input> = {
|
|
104
104
|
name: "find",
|
|
105
105
|
description:
|
|
106
|
-
"Find entries with Linux-like predicates: `-name`, `-iname`, `-path`, `-lname`, `-
|
|
107
|
-
"`-type`, `-size`, `-mtime`, `-mmin`, `-maxdepth`, `-mindepth`, `-empty`, `-perm`, " +
|
|
106
|
+
"Find entries with Linux-like predicates: `-name`, `-iname`, `-path`, `-lname`, `-ilname`, " +
|
|
107
|
+
"`-regex`, `-iregex`, `-type`, `-size`, `-mtime`, `-mmin`, `-maxdepth`, `-mindepth`, `-empty`, `-perm`, " +
|
|
108
108
|
"`-uid`, `-gid`, `-user`, `-group`, `-links`, `-inum`, `-samefile`, `-fstype`, `-newer`, " +
|
|
109
109
|
"`-newerXY`, `-printf`, `-L`, `-print0`.",
|
|
110
110
|
schema: Schema,
|
package/src/tools/ls.ts
CHANGED
|
@@ -65,7 +65,8 @@ export const lsTool: ToolSpec<Input> = {
|
|
|
65
65
|
name: "ls",
|
|
66
66
|
description:
|
|
67
67
|
"List files and directories with Linux `ls` semantics (`-a`, `-A`, `-l`, `-h`, `-R`, " +
|
|
68
|
-
"`-d`, `-i`, `-F`, `-t`, `-S`, `-r`, `-1
|
|
68
|
+
"`-d`, `-i`, `-F`, `-t`, `-S`, `-r`, `-1`, `-s`, `-n`, `-g`, `-o`, `-p`, `-Q`, `-v`, `-X`, " +
|
|
69
|
+
"`--time-style`, `--hide`, `--ignore`, `--group-directories-first`).",
|
|
69
70
|
schema: Schema,
|
|
70
71
|
pipeable: false,
|
|
71
72
|
mutates: false,
|
package/src/tools/sort.ts
CHANGED
|
@@ -42,7 +42,7 @@ export const sortTool: ToolSpec<Input> = {
|
|
|
42
42
|
name: "sort",
|
|
43
43
|
description:
|
|
44
44
|
"Sort records with Linux `sort` semantics (`-n`, `-g`, `-h`, `-V`, `-r`, `-u`, `-f`, " +
|
|
45
|
-
"`-d`, `-i`, `-b`, `-s`, `-c`, `-C`, `-z`, `-k
|
|
45
|
+
"`-d`, `-i`, `-b`, `-s`, `-c`, `-C`, `-z`, `-k` key ranges, `-t`).",
|
|
46
46
|
schema: Schema,
|
|
47
47
|
pipeable: "filter",
|
|
48
48
|
mutates: false,
|
package/src/tools/stat.ts
CHANGED
|
@@ -25,8 +25,9 @@ type Input = Static<typeof Schema>;
|
|
|
25
25
|
export const statTool: ToolSpec<Input> = {
|
|
26
26
|
name: "stat",
|
|
27
27
|
description:
|
|
28
|
-
"Display file or filesystem status with Linux `stat` semantics (`-L`, `-c`, `-f`). " +
|
|
29
|
-
"Supports
|
|
28
|
+
"Display file or filesystem status with Linux `stat` semantics (`-L`, `-c`, `-t`, `-f`). " +
|
|
29
|
+
"Supports common and extended tokens for path, size, type, mode, owner, times, birth time, " +
|
|
30
|
+
"device, inode, mount point, filesystem type and SELinux context.",
|
|
30
31
|
schema: Schema,
|
|
31
32
|
pipeable: false,
|
|
32
33
|
mutates: false,
|
package/src/tools/tar.ts
CHANGED
|
@@ -41,7 +41,8 @@ export const tarTool: ToolSpec<Input> = {
|
|
|
41
41
|
name: "tar",
|
|
42
42
|
description:
|
|
43
43
|
"Create, list or extract tar archives with common `tar` semantics (`-c`, `-x`, `-t`, `-f`, " +
|
|
44
|
-
"`-z`, `-C`, `--strip-components`, `--exclude`).
|
|
44
|
+
"`-z`, `-C`, `--strip-components`, `--exclude`). Create accepts `input`/`member` stream data " +
|
|
45
|
+
"and can consume pipe stdin; extraction rejects path escapes.",
|
|
45
46
|
schema: Schema,
|
|
46
47
|
pipeable: "sink",
|
|
47
48
|
mutates: true,
|
package/src/tools/zip.ts
CHANGED
|
@@ -41,7 +41,9 @@ type UnzipInput = Static<typeof UnzipSchema>;
|
|
|
41
41
|
|
|
42
42
|
export const zipTool: ToolSpec<ZipInput> = {
|
|
43
43
|
name: "zip",
|
|
44
|
-
description:
|
|
44
|
+
description:
|
|
45
|
+
"Create ZIP archives with common `zip` semantics (`-r` is implicit, compression level 0-9). " +
|
|
46
|
+
"Accepts `input`/`member` stream data and can consume pipe stdin.",
|
|
45
47
|
schema: ZipSchema,
|
|
46
48
|
pipeable: "sink",
|
|
47
49
|
mutates: true,
|