RepoConfig class
Policy for the repository surface (the RepositoryAdapter operations and
the apollovm.fs.*/search.*/code.*/git.* MCP tools built on it).
These are the security knobs. They are enforced by the PermissionGuard
adapter decorator, so they apply uniformly regardless of which
RepositoryAdapter backs the operations. Everything defaults to the safest
posture: read-only, with a bounded file size.
Constructors
Properties
- allowGitMutation → bool
-
Whether mutating git operations (
add/commit/checkout/restore) are allowed. Off by default.final - allowWrite → bool
-
Whether mutating filesystem operations (
write/edit/mkdir/move/delete) are allowed. Off by default.final - hashCode → int
-
The hash code for this object.
no setterinherited
- maxFileBytes → int
-
Maximum size (in bytes) of a file the operations will read or write.
final
- maxResults → int
-
Maximum number of results a single
find/list/searchTextreturns.final - requireLineMatch → bool
-
When true, every
editmust pin its expected line viaatLine; an edit without it is rejected. Guards against wrong-occurrence/stale edits.final - respectGitignore → bool
-
Whether directory listing / find / search skip
.gitand (best-effort).gitignored paths.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? allowWrite, bool? allowGitMutation, bool? requireLineMatch, int? maxFileBytes, int? maxResults, bool? respectGitignore}) → RepoConfig -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited