Table of Contents

Class TextFileToolsetBase

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

Shares bounded text-file operations across concrete storage-backed toolsets.

public abstract class TextFileToolsetBase

Inheritance

Derived

Inherited Members

Constructors

TextFileToolsetBase(Func<IReadOnlyList<AllowedDirectory>>?, IWorkspaceFileAccess?, IToolOutputStore?)

Shares workspace access across file and search operations.

Properties

Files

Reads files through workspace access checks.

OutputStore

Saves search results that exceed the inline result limit.

WorkspaceResolver

Resolves directories granted to the active run.

Methods

ApplyPatchCore(string, string)

Applies the supported structured patch through the concrete storage implementation.

DeleteText(string)

Deletes one file when it exists.

EditFileCore(string, string, string, bool)

Replaces exact text through the concrete storage implementation.

GlobCore(string, string?)

Finds workspace files matching a glob pattern.

GrepCore(string, string?, string?, string, int, int)

Searches readable text in the active workspace.

IsSearchable(string)

Reports whether an enumerated file belongs in search results.

MoveText(string, string, string, bool)

Publishes patched content, optionally moving the logical file.

OpenSearchText(string)

Opens searchable text and skips binary files.

OpenText(string, out long)

Opens one text file and reports its plaintext byte size.

ReadFileCore(string, int, int)

Reads a bounded page from a storage-backed text file.

ResolvePatchPath(string, string)

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

ResolveWorkspacePatchPath(string, string, Func<IReadOnlyList<AllowedDirectory>>)

Resolves a patch path through the standard workspace containment contract.

WriteFileCore(string, string?, bool)

Writes or appends text through the concrete storage implementation.

WriteText(string, string, bool)

Writes or appends text to one file.