opencode-fs-plugin 3.0.1 → 3.1.0
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/SPEC.md +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -5
package/SPEC.md
CHANGED
|
@@ -114,7 +114,7 @@ Aliases are accepted only where noted: `path` for one `paths` element (`stat`,
|
|
|
114
114
|
- Timeout defaults to 120000 ms, capped at 600000. Procage ends the run and kills
|
|
115
115
|
every process it started, including detached descendants; `timedOut: true`
|
|
116
116
|
and exit code 124 are returned.
|
|
117
|
-
- Captured stdout/stderr are capped at
|
|
117
|
+
- Captured stdout/stderr are capped at 1 MiB; truncation is reported.
|
|
118
118
|
- Direct calls return JSON with `exitCode`, `stdout`, `stderr`, `violations`, and
|
|
119
119
|
the sandbox decision. In `fs.pipe`, the stage returns raw stdout and composes as
|
|
120
120
|
a source or filter.
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -190,7 +190,6 @@ export default Plugin.define({
|
|
|
190
190
|
id: "opencode-fs-plugin",
|
|
191
191
|
async setup(ctx) {
|
|
192
192
|
const rawRoot =
|
|
193
|
-
(typeof ctx.options?.root === "string" && ctx.options.root) ||
|
|
194
193
|
ctx.location?.project?.canonical ||
|
|
195
194
|
ctx.location?.directory ||
|
|
196
195
|
"";
|
|
@@ -204,10 +203,7 @@ export default Plugin.define({
|
|
|
204
203
|
);
|
|
205
204
|
const execAllowlist = normalizeExecAllowlist(ctx.options?.execAllowlist);
|
|
206
205
|
const execNetworkMode = normalizeExecNetworkMode(ctx.options?.execNetworkMode);
|
|
207
|
-
const maxOutputBytes =
|
|
208
|
-
typeof ctx.options?.maxOutputBytes === "number" && ctx.options.maxOutputBytes > 0
|
|
209
|
-
? Math.trunc(ctx.options.maxOutputBytes)
|
|
210
|
-
: DEFAULT_MAX_OUTPUT;
|
|
206
|
+
const maxOutputBytes = DEFAULT_MAX_OUTPUT;
|
|
211
207
|
const jobs = new JobManager(
|
|
212
208
|
typeof ctx.options?.jobDir === "string" ? { dir: ctx.options.jobDir } : {},
|
|
213
209
|
);
|