Skip to content

Implement FileExecutor for file operations #242

@bug-ops

Description

@bug-ops

Parent: #239 (Phase A)

Summary

Single FileExecutor handling read, write, edit, glob, and grep operations within a sandboxed path set.

Changes

  • crates/zeph-tools/src/file.rs (new): FileExecutor implementing ToolExecutor
  • Sandboxed to allowed_paths from config
  • Operations: read (with offset/limit), write, edit (string replacement), glob (pattern matching), grep (regex search)

Acceptance criteria

  • All 5 file operations functional
  • Path sandbox enforced (no traversal outside allowed_paths)
  • Unit tests for each operation
  • Unit tests for sandbox enforcement

Metadata

Metadata

Assignees

No one assigned

    Labels

    M18M18: Tool Orchestration EvolutionfeatureNew functionalitytoolsTool execution and MCP integration

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions