use serde_json::Value;
use super::Verb;
pub const STEPS: Verb = Verb {
word: "steps",
params: &["workspace", "agent"],
summary: "the steps a conversation's loop has taken",
detail: "One row per step, in sequence order: how it ended, how many \
attempts it took, what it cost in tokens, its timestamps and \
read-state commit where the step's record carried them, whether \
a sign-in is wanted, and the wound where one was taken. The \
orphaned-tail state rides at the top because it is the \
conversation's fact rather than any one step's. The `seq` it \
answers with is the address the `step` drill-in takes.",
};
pub const FILES: Verb = Verb {
word: "files",
params: &["workspace", "agent"],
summary: "what a conversation's worktree holds",
detail: "The walked worktree: each entry's path, size and kind, whether \
the walk was cut short, and — where the conversation's work \
lands somewhere this listing does not reach — the working \
directory that does hold it. A torn-down worktree answers as \
its absence, never as an empty listing. This is the bare form; \
the wire also takes `at` (pin a commit) and `path` (preview one \
file), which this seat does not compose — \
`lernie ask` carries them.",
};
pub fn steps(workspace: String, agent: String) -> Value {
STEPS.built(vec![workspace, agent])
}
pub fn files(workspace: String, agent: String) -> Value {
FILES.built(vec![workspace, agent])
}