Skip to main content

molo_coding/coding/
mod.rs

1//! Coding-workload primitives for governed agents.
2//!
3//! This module is an SDK layer for applications that build coding agents on
4//! top of the harness runtime. It provides root-relative workspace paths,
5//! local workspace operations, typed effect payloads, command execution,
6//! git inspection, repository search, project instruction resolution, and
7//! context gathering. It is not a CLI product, and it does not bypass the
8//! harness: production file, patch, command, git, or search side effects
9//! should be represented as [`EffectRequest`](crate::EffectRequest) values
10//! and executed through a [`Harness`](crate::harness::Harness).
11
12mod command;
13mod context;
14mod effect_executor;
15mod error;
16mod git;
17mod instructions;
18mod payload;
19mod policy;
20mod search;
21mod test_runner;
22mod tools;
23mod workspace;
24
25pub use command::{
26    CommandError, CommandExecutor, CommandExecutorBackend, CommandExecutorCapabilities,
27    CommandExecutorIdentity, CommandOutput, CommandOutputLimit, CommandRequest, CommandStatus,
28    EnvPolicy, LocalCommandExecutor, OutputText, PolicyCapabilityMode, PolicyEnforcementReport,
29    PolicyEnforcementStatus, PtyMode, validate_command_capabilities,
30    validate_policy_enforcement_report,
31};
32pub use context::{
33    CodingContextBundle, CodingContextError, CodingContextInclude, CodingContextProvider,
34    CodingContextRequest, ContextBudget, DefaultCodingContextProvider, DependencyMetadata,
35};
36pub use effect_executor::{CodingEffectExecutor, CodingExecutorConfig};
37pub use error::CodingError;
38pub use git::{
39    CliGitInspector, GitChangedFile, GitChangedFilesRequest, GitDiffRequest, GitError, GitHead,
40    GitInspector, GitOperation, GitStatus, GitStatusRequest,
41};
42pub use instructions::{
43    DefaultInstructionResolver, InstructionBundle, InstructionError, InstructionFile,
44    InstructionFileSpec, InstructionRequest, InstructionResolver,
45};
46pub use payload::{
47    ApplyPatchPayload, CommandPayload, GitPayload, ListFilesPayload, ReadFilePayload,
48    SearchPayload, WriteFilePayload,
49};
50pub use policy::{
51    CodingPolicyClass, CodingPolicyEngine, CodingPolicyInput, CommandPattern, CommandTaxonomy,
52};
53pub use search::{
54    RepoSearchRequest, RepoSearchResults, RepoSearcher, RipgrepSearcher, SearchError, SearchMatch,
55    SearchMode, WorkspaceSearcher,
56};
57pub use test_runner::{
58    CommandTestRunner, TestRunError, TestRunRequest, TestRunner, VerificationResult,
59};
60pub use tools::{
61    ApplyPatchTool, GitStatusTool, ListFilesTool, ReadFileTool, RunCommandTool, SearchRepoTool,
62};
63pub use workspace::{
64    AgentChangeTracker, ContentDigest, DiffRequest, FileBody, FileContent, FilePatch,
65    FileReadOptions, FileVersion, FileWriteContent, FileWriteResult, ListFilesQuery,
66    LocalWorkspace, LocalWorkspaceConfig, Patch, PatchConflict, PatchHunk, PatchOperation,
67    PatchRequest, PatchResult, ResolvedPath, ResolvedPathKind, SnapshotRequest, SymlinkPolicy,
68    TextEncoding, Workspace, WorkspaceAccess, WorkspaceDiff, WorkspaceEntry, WorkspaceError,
69    WorkspacePath, WorkspaceRoot, WorkspaceSnapshot, WriteFileRequest,
70};