- SandboxStatus: a dot and a word (a ring while it starts or works), what it uses of what it has as meters, and how long it has run; the header wraps - McpServerList over lists::ListItem: a dot per state, what it runs or why it failed, its tools once connected, and a switch - ToolRegistry: tools grouped by source, found by every word of the owner's query, each Allow, Ask or Deny; rows wrap at 280px - MemoryPanel: a line to keep a memory, Enter or Remember, blank words kept out; each memory with its source, when, and Forget - CheckpointList over data_display::Timeline, newest first, the current point marked, Rewind on the rest - gallery: every control wired to state
63 lines
1.8 KiB
Rust
63 lines
1.8 KiB
Rust
mod changes;
|
|
mod environment;
|
|
mod previews;
|
|
mod progress;
|
|
mod tools;
|
|
|
|
use gpui::{AnyElement, App, IntoElement, ParentElement, Window, div};
|
|
|
|
use super::Page;
|
|
use crate::script::Step;
|
|
|
|
pub const PAGE: Page = Page {
|
|
number: 24,
|
|
slug: "agent",
|
|
title: "Agent",
|
|
summary: "An assistant at work: the tools it calls, what it asks before it acts, how far it has come, what it would change, what it sees and what it makes.",
|
|
render,
|
|
script: SCRIPT,
|
|
};
|
|
|
|
const SCRIPT: &[Step] = &[
|
|
Step::DownAt("agent-call", 60.0, 18.0),
|
|
Step::UpAt("agent-call", 60.0, 18.0),
|
|
Step::Wait(300),
|
|
Step::Shot("tool-call"),
|
|
Step::Click("agent-approve-open"),
|
|
Step::Wait(300),
|
|
Step::Shot("approval"),
|
|
Step::Key("escape"),
|
|
Step::Wait(200),
|
|
Step::DownAt("agent-call", 60.0, 18.0),
|
|
Step::UpAt("agent-call", 60.0, 18.0),
|
|
Step::Wait(200),
|
|
Step::Click("agent-advance"),
|
|
Step::Wait(300),
|
|
Step::Shot("plan"),
|
|
Step::DownAt("agent-changes", 30.0, 51.0),
|
|
Step::UpAt("agent-changes", 30.0, 51.0),
|
|
Step::Wait(300),
|
|
Step::Shot("changes"),
|
|
Step::DownAt("agent-changes", 30.0, 51.0),
|
|
Step::UpAt("agent-changes", 30.0, 51.0),
|
|
Step::Wait(200),
|
|
Step::Click("agent-pointer-next"),
|
|
Step::Wait(400),
|
|
Step::Shot("pointer"),
|
|
];
|
|
|
|
fn render(window: &mut Window, cx: &mut App) -> AnyElement {
|
|
div()
|
|
.child(tools::calls(window, cx))
|
|
.child(tools::approval(window, cx))
|
|
.child(progress::steps(window, cx))
|
|
.child(progress::agents(window, cx))
|
|
.child(changes::changes_section(window, cx))
|
|
.child(previews::watching(window, cx))
|
|
.child(previews::artifacts(window, cx))
|
|
.child(environment::sandbox_section(window, cx))
|
|
.child(environment::connectors_section(window, cx))
|
|
.child(environment::memory_section(window, cx))
|
|
.into_any_element()
|
|
}
|