Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Optional site origin override. Leave commented out during local dev so `pnpm run dev`
# defaults to http://localhost:3100 while release builds default to https://vibex.xforever.xin.
# DIMO_SITE_URL=https://vibex.xforever.xin
# defaults to http://localhost:3100 while release builds default to https://dimo-ai.com.
# DIMO_SITE_URL=https://dimo-ai.com

# Local Apple signing for `pnpm run dev` and `pnpm run tauri:build`.
# Copy to `.env.local` (gitignored) and fill in your Developer ID details.
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</p>

<p>
<a href="https://vibex.xforever.xin"><img src="https://img.shields.io/badge/Website-vibex.xforever.xin-2563EB?style=for-the-badge" alt="Website" /></a>
<a href="https://vibex.xforever.xin/#download"><img src="https://img.shields.io/badge/Download-macOS%20%7C%20Windows%20%7C%20Linux-0F172A?style=for-the-badge" alt="Download" /></a>
<a href="https://vibex.xforever.xin/docs"><img src="https://img.shields.io/badge/Docs-vibex.xforever.xin%2Fdocs-4F46E5?style=for-the-badge" alt="Docs" /></a>
<a href="https://vibex.xforever.xin/marketplace"><img src="https://img.shields.io/badge/Marketplace-Plugins-059669?style=for-the-badge" alt="Marketplace" /></a>
<a href="https://dimo-ai.com"><img src="https://img.shields.io/badge/Website-dimo-ai.com-2563EB?style=for-the-badge" alt="Website" /></a>
<a href="https://dimo-ai.com/#download"><img src="https://img.shields.io/badge/Download-macOS%20%7C%20Windows%20%7C%20Linux-0F172A?style=for-the-badge" alt="Download" /></a>
<a href="https://dimo-ai.com/docs"><img src="https://img.shields.io/badge/Docs-dimo-ai.com%2Fdocs-4F46E5?style=for-the-badge" alt="Docs" /></a>
<a href="https://dimo-ai.com/marketplace"><img src="https://img.shields.io/badge/Marketplace-Plugins-059669?style=for-the-badge" alt="Marketplace" /></a>
<a href="https://www.npmjs.com/package/dimoai"><img src="https://img.shields.io/npm/v/dimoai?style=for-the-badge&label=CLI&color=7C3AED" alt="npm version" /></a>
</p>
</div>
Expand Down Expand Up @@ -126,7 +126,7 @@ Built on a lightweight native Rust core where **everything is a plugin**. Equip

### 1. Native Desktop App (Recommended)

Download the native installer (with built-in auto-updates) from the [Official Download Page](https://vibex.xforever.xin/#download):
Download the native installer (with built-in auto-updates) from the [Official Download Page](https://dimo-ai.com/#download):

- **macOS**: Apple Silicon (`aarch64` `.dmg`) · Intel (`x64` `.dmg`)
- **Windows**: Windows 10 / 11 (`x64` / `arm64` `.exe`)
Expand Down Expand Up @@ -173,10 +173,10 @@ pnpm run check # Run frontend & Rust type/compile checks

## Official Links & Community

- **Website**: [https://vibex.xforever.xin](https://vibex.xforever.xin)
- **Downloads**: [https://vibex.xforever.xin/#download](https://vibex.xforever.xin/#download)
- **Online Docs**: [https://vibex.xforever.xin/docs](https://vibex.xforever.xin/docs)
- **Plugin Marketplace**: [https://vibex.xforever.xin/marketplace](https://vibex.xforever.xin/marketplace)
- **Website**: [https://dimo-ai.com](https://dimo-ai.com)
- **Downloads**: [https://dimo-ai.com/#download](https://dimo-ai.com/#download)
- **Online Docs**: [https://dimo-ai.com/docs](https://dimo-ai.com/docs)
- **Plugin Marketplace**: [https://dimo-ai.com/marketplace](https://dimo-ai.com/marketplace)
- **CLI Package**: [https://www.npmjs.com/package/dimoai](https://www.npmjs.com/package/dimoai)

<div align="center">
Expand Down
18 changes: 9 additions & 9 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</p>

<p>
<a href="https://vibex.xforever.xin"><img src="https://img.shields.io/badge/官网-vibex.xforever.xin-2563EB?style=for-the-badge" alt="官网" /></a>
<a href="https://vibex.xforever.xin/#download"><img src="https://img.shields.io/badge/立即下载-macOS%20%7C%20Windows%20%7C%20Linux-0F172A?style=for-the-badge" alt="下载客户端" /></a>
<a href="https://vibex.xforever.xin/docs"><img src="https://img.shields.io/badge/文档中心-Docs-4F46E5?style=for-the-badge" alt="文档中心" /></a>
<a href="https://vibex.xforever.xin/marketplace"><img src="https://img.shields.io/badge/插件市场-Marketplace-059669?style=for-the-badge" alt="插件市场" /></a>
<a href="https://dimo-ai.com"><img src="https://img.shields.io/badge/官网-dimo-ai.com-2563EB?style=for-the-badge" alt="官网" /></a>
<a href="https://dimo-ai.com/#download"><img src="https://img.shields.io/badge/立即下载-macOS%20%7C%20Windows%20%7C%20Linux-0F172A?style=for-the-badge" alt="下载客户端" /></a>
<a href="https://dimo-ai.com/docs"><img src="https://img.shields.io/badge/文档中心-Docs-4F46E5?style=for-the-badge" alt="文档中心" /></a>
<a href="https://dimo-ai.com/marketplace"><img src="https://img.shields.io/badge/插件市场-Marketplace-059669?style=for-the-badge" alt="插件市场" /></a>
<a href="https://www.npmjs.com/package/dimoai"><img src="https://img.shields.io/npm/v/dimoai?style=for-the-badge&label=CLI&color=7C3AED" alt="npm version" /></a>
</p>
</div>
Expand Down Expand Up @@ -130,7 +130,7 @@

### 1. 下载桌面客户端(推荐)

前往 [Dimo 官方下载页](https://vibex.xforever.xin/#download) 获取原生安装包(支持自动更新):
前往 [Dimo 官方下载页](https://dimo-ai.com/#download) 获取原生安装包(支持自动更新):

- **macOS**:Apple Silicon (`aarch64` `.dmg`) · Intel (`x64` `.dmg`)
- **Windows**:Windows 10 / 11 (`x64` / `arm64` `.exe`)
Expand Down Expand Up @@ -177,10 +177,10 @@ pnpm run check # 运行前后端类型与编译检查

## 官方链接与社区交流

- **官方网站**:[https://vibex.xforever.xin](https://vibex.xforever.xin)
- **客户端下载**:[https://vibex.xforever.xin/#download](https://vibex.xforever.xin/#download)
- **在线文档**:[https://vibex.xforever.xin/docs](https://vibex.xforever.xin/docs)
- **插件市场**:[https://vibex.xforever.xin/marketplace](https://vibex.xforever.xin/marketplace)
- **官方网站**:[https://dimo-ai.com](https://dimo-ai.com)
- **客户端下载**:[https://dimo-ai.com/#download](https://dimo-ai.com/#download)
- **在线文档**:[https://dimo-ai.com/docs](https://dimo-ai.com/docs)
- **插件市场**:[https://dimo-ai.com/marketplace](https://dimo-ai.com/marketplace)
- **CLI 工具包**:[https://www.npmjs.com/package/dimoai](https://www.npmjs.com/package/dimoai)

<div align="center">
Expand Down
14 changes: 5 additions & 9 deletions crates/agents/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,9 @@ impl AgentConnectionManager {

/// Collect `(connection_id, session_id)` pairs whose Anthropic Prompt Cache
/// is ready for `/compact` warm-preservation while the connection is idle.
pub async fn collect_idle_compaction_targets(&self) -> Vec<(AgentConnectionId, AgentSessionId)> {
pub async fn collect_idle_compaction_targets(
&self,
) -> Vec<(AgentConnectionId, AgentSessionId)> {
let candidates = {
let connections = self.connections.lock().await;
connections
Expand All @@ -1187,14 +1189,8 @@ impl AgentConnectionManager {

let now = Utc::now();
let mut targets = Vec::new();
for (
id,
status,
active_prompt,
pending_permissions,
pending_elicitations,
session_map,
) in candidates
for (id, status, active_prompt, pending_permissions, pending_elicitations, session_map) in
candidates
{
if *status.lock().await != AgentConnectionStatus::Ready {
continue;
Expand Down
17 changes: 10 additions & 7 deletions crates/agents/src/manager/protocol/vendor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ pub(in crate::manager) fn qualify_omp_model_labels(options: &mut [AcpSessionConf
}
SessionConfigSelectOptions::Grouped(groups) => {
for group in groups {
group.options.iter_mut().for_each(qualify_model_choice_label);
group
.options
.iter_mut()
.for_each(qualify_model_choice_label);
}
}
#[allow(unreachable_patterns)]
Expand Down Expand Up @@ -536,11 +539,8 @@ mod tests {
let mut options = vec![model_option(vec![
SessionConfigSelectOption::new("mint/gpt-5.6-terra", "GPT-5.6 Terra")
.description("mint/gpt-5.6-terra".to_string()),
SessionConfigSelectOption::new(
"cc-switch-open-router/stealth/ox-alpha",
"Ox Alpha",
)
.description("cc-switch-open-router/stealth/ox-alpha".to_string()),
SessionConfigSelectOption::new("cc-switch-open-router/stealth/ox-alpha", "Ox Alpha")
.description("cc-switch-open-router/stealth/ox-alpha".to_string()),
])];

qualify_omp_model_labels(&mut options);
Expand All @@ -555,7 +555,10 @@ mod tests {
.iter()
.map(|choice| choice.name.as_str())
.collect::<Vec<_>>();
assert_eq!(names, ["mint/GPT-5.6 Terra", "cc-switch-open-router/Ox Alpha"]);
assert_eq!(
names,
["mint/GPT-5.6 Terra", "cc-switch-open-router/Ox Alpha"]
);
}

#[test]
Expand Down
100 changes: 52 additions & 48 deletions crates/agents/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,14 +462,13 @@ impl AgentRuntime {
if driver_enabled && let Some(idle_timeout) = crate::idle_sweep::idle_timeout_from_env() {
let compact_state = Arc::clone(&state);
let compact_manager = Arc::clone(&connection_manager);
let compact_trigger: crate::idle_sweep::IdleCompactionTrigger =
Arc::new(move || {
let state = Arc::clone(&compact_state);
let manager = Arc::clone(&compact_manager);
Box::pin(async move {
Self::dispatch_idle_compactions(&state, &manager).await;
})
});
let compact_trigger: crate::idle_sweep::IdleCompactionTrigger = Arc::new(move || {
let state = Arc::clone(&compact_state);
let manager = Arc::clone(&compact_manager);
Box::pin(async move {
Self::dispatch_idle_compactions(&state, &manager).await;
})
});
tokio::spawn(crate::idle_sweep::idle_sweep_task(
Arc::clone(&connection_manager),
idle_timeout,
Expand Down Expand Up @@ -525,7 +524,10 @@ impl AgentRuntime {
}
let now = Utc::now();
let prompt_id = AgentPromptId::new();
if !matches!(session.queue.submit(prompt_id), QueueTransition::Started { .. }) {
if !matches!(
session.queue.submit(prompt_id),
QueueTransition::Started { .. }
) {
continue;
}
session.snapshot.active_prompt_id = session.queue.active();
Expand All @@ -545,7 +547,9 @@ impl AgentRuntime {
prompt_id
};

connection_manager.touch_connection_activity(connection_id).await;
connection_manager
.touch_connection_activity(connection_id)
.await;
if let Err(error) = connection_manager
.send_prompt_with_display_blocks(
connection_id,
Expand Down Expand Up @@ -628,8 +632,8 @@ impl AgentRuntime {
{
continue;
}
let is_background_compaction = active_before
.is_some_and(|id| state.background_compactions.contains(&id));
let is_background_compaction =
active_before.is_some_and(|id| state.background_compactions.contains(&id));
let activity = crate::request_status::activity_for_event(&manager_event.event);
if matches!(manager_event.event, AgentEvent::RequestActivity { .. })
&& manager_event.prompt_id != active_before
Expand Down Expand Up @@ -699,43 +703,42 @@ impl AgentRuntime {
manager_event.session_id,
manager_event.event,
);
let activity_envelope = if let (Some(prompt_id), Some(activity)) =
(active_before, activity)
{
let now = Utc::now();
let previous = state.request_activity.get(&prompt_id);
let cancelling = previous.is_some_and(|(held, _)| {
held.phase == crate::request_status::RequestPhase::Cancelling
});
let changed = previous.is_none_or(|(held, at)| {
held != &activity
|| now.signed_duration_since(*at).num_seconds() >= 5
});
if changed
&& (!cancelling
|| activity.phase
== crate::request_status::RequestPhase::Cancelling)
{
state
.request_activity
.insert(prompt_id, (activity.clone(), now));
(!explicit_activity).then(|| {
Self::queue_envelope_locked(
&mut state,
manager_event.connection_id,
manager_event.session_id,
AgentEvent::RequestActivity {
prompt_id,
activity,
},
)
})
let activity_envelope =
if let (Some(prompt_id), Some(activity)) = (active_before, activity) {
let now = Utc::now();
let previous = state.request_activity.get(&prompt_id);
let cancelling = previous.is_some_and(|(held, _)| {
held.phase == crate::request_status::RequestPhase::Cancelling
});
let changed = previous.is_none_or(|(held, at)| {
held != &activity
|| now.signed_duration_since(*at).num_seconds() >= 5
});
if changed
&& (!cancelling
|| activity.phase
== crate::request_status::RequestPhase::Cancelling)
{
state
.request_activity
.insert(prompt_id, (activity.clone(), now));
(!explicit_activity).then(|| {
Self::queue_envelope_locked(
&mut state,
manager_event.connection_id,
manager_event.session_id,
AgentEvent::RequestActivity {
prompt_id,
activity,
},
)
})
} else {
None
}
} else {
None
}
} else {
None
};
};
if let Some(prompt_id) = active_before
&& state.prompts.get(&prompt_id).is_some_and(|p| {
matches!(
Expand Down Expand Up @@ -6167,7 +6170,8 @@ mod tests {
},
},
};
let active_before = AgentRuntime::active_prompt_for_manager_event_locked(&state, &event);
let active_before =
AgentRuntime::active_prompt_for_manager_event_locked(&state, &event);
assert_eq!(active_before, Some(compact_prompt_id));
AgentRuntime::apply_manager_event_locked(&mut state, &event);
let next = AgentRuntime::prompt_to_dispatch_after_manager_event_locked(
Expand Down
5 changes: 1 addition & 4 deletions crates/agents/src/runtime_temp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,7 @@ pub fn sweep_stale_agent_runtime_temps() {
removed += sweep_runtime_temp_bases_in(&base);
}
if removed > 0 {
tracing::info!(
removed,
"removed stale ACP temporary directories"
);
tracing::info!(removed, "removed stale ACP temporary directories");
}
}

Expand Down
5 changes: 4 additions & 1 deletion crates/browser-host/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,10 @@ impl BrowserService {
let _ = self.native.close(&tab_id).await;
}
let _ = self.native.reset_all().await;
self.occupant.lock().unwrap_or_else(|p| p.into_inner()).take();
self.occupant
.lock()
.unwrap_or_else(|p| p.into_inner())
.take();
self.policy.set_user_rules(Vec::new());
*self.settings.lock().unwrap_or_else(|p| p.into_inner()) = BrowserSettings::default();
self.userdata.clear_all();
Expand Down
5 changes: 4 additions & 1 deletion crates/browser-host/src/userdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,10 @@ impl UserDataManager {
}
let _ = fs::remove_dir_all(root);
}
self.memory.lock().unwrap_or_else(|p| p.into_inner()).clear();
self.memory
.lock()
.unwrap_or_else(|p| p.into_inner())
.clear();
}

fn profile_dir(&self, profile_id: &str) -> Option<PathBuf> {
Expand Down
34 changes: 18 additions & 16 deletions crates/git/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,14 @@ impl GitCli {
// --diff-filter to get status, --numstat for additions/deletions
let name_status = self.git(
worktree_path,
["diff-tree", "--no-commit-id", "-r", "--name-status", sha, "--"],
[
"diff-tree",
"--no-commit-id",
"-r",
"--name-status",
sha,
"--",
],
)?;
let numstat = self.git(
worktree_path,
Expand Down Expand Up @@ -1978,8 +1985,12 @@ mod tests {
let git = GitCli::new();

assert!(
git.add_remote(repo.path(), "--upload-pack=evil", "https://example.com/r.git")
.is_err()
git.add_remote(
repo.path(),
"--upload-pack=evil",
"https://example.com/r.git"
)
.is_err()
);
assert!(
git.add_remote(repo.path(), "origin", "ext::sh -c evil")
Expand All @@ -1989,19 +2000,10 @@ mod tests {
git.add_remote(repo.path(), "origin", "--upload-pack=evil")
.is_err()
);
assert!(
git.checkout_branch(repo.path(), "--orphan=evil")
.is_err()
);
assert!(
git.delete_branch(repo.path(), "--force").is_err()
);
assert!(
git.reset_to(repo.path(), "HEAD", "hard --merge").is_err()
);
assert!(
git.cherry_pick(repo.path(), "--strategy=evil").is_err()
);
assert!(git.checkout_branch(repo.path(), "--orphan=evil").is_err());
assert!(git.delete_branch(repo.path(), "--force").is_err());
assert!(git.reset_to(repo.path(), "HEAD", "hard --merge").is_err());
assert!(git.cherry_pick(repo.path(), "--strategy=evil").is_err());

git.add_remote(repo.path(), "origin", "https://example.com/repo.git")
.expect("valid remote should be added");
Expand Down
Loading
Loading