Table of Contents

Class CodingToolset

Namespace
Oscova.Agents.Toolsets
Assembly
Oscova.Agents.dll

Reads, writes, edits, and patches files inside host-approved workspaces.

public sealed class CodingToolset : TextFileToolsetBase, ICrewToolset

Inheritance

Implements

Inherited Members

Remarks

Mutating operations declare approval requirements and all path parameters are still validated by workspace path middleware before execution.

Constructors

CodingToolset(Func<IReadOnlyList<AllowedDirectory>>?)

Creates file tools that resolve agent-facing paths against the active run's allowed directories.

Methods

ApplyPatch(string, string)

Applies a structured multi-file patch relative to an approved workspace base directory.

DeleteText(string)

Deletes one file when it exists.

EditFile(string, string, string, bool)

Replaces text in a file, requiring a unique match unless all matches are requested.

MoveText(string, string, string, bool)

Publishes patched content, optionally moving the logical file.

OpenText(string, out long)

Opens one text file and reports its plaintext byte size.

ReadFile(string, int, int)

Reads a page of text from a workspace-approved file path using one-based line numbers.

ResolvePatchPath(string, string)

Resolves a path embedded in a patch against its base directory.

WriteFile(string, string, bool)

Creates, overwrites, or appends text to a workspace-approved file path.

WriteText(string, string, bool)

Writes or appends text to one file.