harbor run -t openthoughts/tasktrove-exp-rpt-issue-issue-3374harbor download openthoughts/tasktrove-exp-rpt-issue-issue-3374You are given a repository that is currently a scaffold for a benchmark that requires implementing a minimal, local text-editing API based on the concepts of a Chunk and a ChunkRegion. Your task is to implement the full CLI in a self-contained way in /app/, including a Bash driver that runs a deterministic edit flow against the CLI and snapshots intermediate results.
What to implement (high level)
Note: Your deliverable should be self-contained and runnable from a fresh /app/ workspace.
What to create or modify (in /app)
Before state (2-5 files shown as starting point) The following files represent a minimal, placeholder starting point you should replace in /app/ with a fully functional implementation as described above.
# Cargo.toml (before)
[package]
name = "chunkregion_cli"
version = "0.1.0"
edition = "2021"
[dependencies]
# src/main.rs (before)
fn main() {
println!("ChunkRegion CLI - placeholder");
println!("This project is a placeholder for the benchmark task.");
}
# benchmark.sh (before)
#!/usr/bin/env bash
echo "Running benchmark (not implemented)"
# document.txt (before)
Title: Demo Document
This is a sample document used by the benchmark runner.
It contains a couple of lines to illustrate chunk editing.
# expected_output.txt (before)
This file will contain the final document after all edits.
Implementation goals to achieve (after fix)
How to run (after implementing)
Acceptance criteria
Notes
Files to create/modify in /app/ (summary)
This task requires implementing the CLI and a driver flow that deterministically exercises the API as described above. The exact patch is hidden; focus on delivering the fully working CLI and driver, plus the required artifacts, in /app/.