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 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.1"]
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.1
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.1
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.1"]
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.1'` installs the
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.1`. A tag is
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.1"
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.1 with "npm install opencode-fs-plugin@1.2.1",
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.1". Add
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.1"]
130
+ "plugins": ["opencode-fs-plugin@1.2.2"]
131
131
  }
132
132
  ```
133
133
 
134
- `opencode plugin add opencode-fs-plugin@1.2.1` installs it and writes the config
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.1
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.1
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.1"]
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.1'` installs the
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.1`. A tag is
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.1"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-fs-plugin",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "description": "OpenCode 2 plugin: Linux-style filesystem and text tools under the fs namespace.",
6
6
  "repository": {
@@ -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
- Parity additions: `fs.sort` accepts GNU key ranges (`keys: ["2,2n"]`);
56
- `fs.find` adds `lname`/`regex`/owner/link/inode/fstype/`newerXY`/`printf`;
57
- `fs.ls` and `fs.stat` add more GNU flags and format tokens; `fs.tail` has
58
- bounded `follow`; `fs.tar`/`fs.zip` accept `input`/`member` and pipe stdin.
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`, `-regex`, " +
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`, `-t`).",
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 the common percent tokens for path, size, type, mode, owner, times, device and inode.",
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`). Extraction rejects path escapes.",
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: "Create ZIP archives with common `zip` semantics (`-r` is implicit, compression level 0-9).",
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,