Add latest riffing

This commit is contained in:
Danilo Leal 2025-08-26 14:10:46 -03:00
parent 5c9a4f55d1
commit 1024265b45
4 changed files with 16 additions and 7 deletions

View file

@ -1093,7 +1093,7 @@ impl AgentConfiguration {
) )
.child( .child(
Label::new( Label::new(
"Bring the agent of your choice to Zed via our new Agent Client Protocol", "Bring the agent of your choice to Zed via our new Agent Client Protocol.",
) )
.color(Color::Muted), .color(Color::Muted),
), ),

View file

@ -2681,9 +2681,9 @@ impl AgentPanel {
}) })
.when(cx.has_flag::<GeminiAndNativeFeatureFlag>(), |menu| { .when(cx.has_flag::<GeminiAndNativeFeatureFlag>(), |menu| {
menu.separator().link( menu.separator().link(
"Add Your Own Agent", "Add Other Agents",
OpenBrowser { OpenBrowser {
url: "https://agentclientprotocol.com/".into(), url: zed_urls::external_agents_docs(cx),
} }
.boxed_clone(), .boxed_clone(),
) )

View file

@ -1,3 +1,4 @@
use client::zed_urls;
use gpui::{ use gpui::{
ClickEvent, DismissEvent, Entity, EventEmitter, FocusHandle, Focusable, MouseDownEvent, Render, ClickEvent, DismissEvent, Entity, EventEmitter, FocusHandle, Focusable, MouseDownEvent, Render,
linear_color_stop, linear_gradient, linear_color_stop, linear_gradient,
@ -47,7 +48,7 @@ impl AcpOnboardingModal {
} }
fn view_docs(&mut self, _: &ClickEvent, _: &mut Window, cx: &mut Context<Self>) { fn view_docs(&mut self, _: &ClickEvent, _: &mut Window, cx: &mut Context<Self>) {
cx.open_url("https://agentclientprotocol.com/"); cx.open_url(&zed_urls::external_agents_docs(cx));
cx.notify(); cx.notify();
acp_onboarding_event!("Documentation Link Clicked"); acp_onboarding_event!("Documentation Link Clicked");
@ -191,7 +192,7 @@ impl Render for AcpOnboardingModal {
) )
.child(Headline::new("Bring Your Own Agent to Zed").size(HeadlineSize::Large)); .child(Headline::new("Bring Your Own Agent to Zed").size(HeadlineSize::Large));
let copy = "Bring the agent of your choice to Zed via our new Agent Client Protocol, starting with Google's Gemini CLI integration."; let copy = "Bring the agent of your choice to Zed via our new Agent Client Protocol (ACP), starting with Google's Gemini CLI integration.";
let open_panel_button = Button::new("open-panel", "Start with Gemini CLI") let open_panel_button = Button::new("open-panel", "Start with Gemini CLI")
.icon_size(IconSize::Indicator) .icon_size(IconSize::Indicator)
@ -199,7 +200,7 @@ impl Render for AcpOnboardingModal {
.full_width() .full_width()
.on_click(cx.listener(Self::open_panel)); .on_click(cx.listener(Self::open_panel));
let docs_button = Button::new("add-agent", "Add Your Own Agent") let docs_button = Button::new("add-other-agents", "Add Other Agents")
.icon(IconName::ArrowUpRight) .icon(IconName::ArrowUpRight)
.icon_size(IconSize::Indicator) .icon_size(IconSize::Indicator)
.icon_color(Color::Muted) .icon_color(Color::Muted)
@ -219,7 +220,7 @@ impl Render for AcpOnboardingModal {
.id("acp-onboarding") .id("acp-onboarding")
.key_context("AcpOnboardingModal") .key_context("AcpOnboardingModal")
.relative() .relative()
.w(rems(32.)) .w(rems(34.))
.h_full() .h_full()
.elevation_3(cx) .elevation_3(cx)
.track_focus(&self.focus_handle(cx)) .track_focus(&self.focus_handle(cx))

View file

@ -43,3 +43,11 @@ pub fn ai_privacy_and_security(cx: &App) -> String {
server_url = server_url(cx) server_url = server_url(cx)
) )
} }
/// Returns the URL to Zed AI's external agents documentation.
pub fn external_agents_docs(cx: &App) -> String {
format!(
"{server_url}/docs/ai/external-agents",
server_url = server_url(cx)
)
}