Rebrand: TeamClaw -> Clawmates (clawmates.work)

Full-depth rename per the approved plan; the 'claw' product vocabulary
(claws, /claws routes, clawId, Claw Chat) stays — it is now the brand.

- Display brand: Clawmates (manifest, titles, hero, login/rail logo
  'clawmates'); default host app.clawmates.work; registry
  ghcr.io/clawmates
- Crates tc-* -> cm-* (16 crates + all imports); binaries
  clawmates-server/broker/bundler; images clawmates/*; env prefix
  CLAWMATES_* (+ CM_TEST_DATABASE_URL / CM_LIVE_LLM); config
  clawmates.toml; helm chart deploy/helm/clawmates with clawmates-*
  resources; db names clawmates*; sockets /run/clawmates; cookie
  cm_session; kind cluster clawmates-test; seccomp node profile
  clawmates-agent-profile.json
- All 9 Playwright brand assertions updated in lockstep; historical
  spec document left untouched as the only remaining 'TeamClaw'
- Local env migrated: dev pg clawmates-dev-pg/clawmates_dev, shared
  test server clawmates-test-pg, kind cluster recreated with image +
  profile, compose images rebuilt under clawmates/*

Verified end to end: 161 Rust + 68 frontend tests, 29 Playwright
journeys, 4 live kind tests, helm/install/LOC/placeholder gates, and
the clean-room install rehearsal serving the clawmates login page from
a signed bundle of the rebuilt images.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
Omar Sobh
2026-06-10 12:31:25 -05:00
co-authored by Claude Fable 5
parent 8046853feb
commit add4f79fed
209 changed files with 1429 additions and 1422 deletions
+54
View File
@@ -0,0 +1,54 @@
use axum::extract::{Query, State};
use axum::Json;
use cm_domain::{AgentId, FileDrive, FileNode};
use serde::Deserialize;
use crate::routes::claws::workspace_agent;
use crate::{ApiError, AppState, Authed};
#[derive(Deserialize)]
pub struct FilesQuery {
#[serde(rename = "clawId")]
claw_id: AgentId,
/// `documents` (default) or `received` for the per-agent drives.
drive: Option<String>,
}
/// GET /api/openclaw/files?clawId=&drive= — the agent's personal drives (§7.4).
pub async fn openclaw_files(
State(state): State<AppState>,
Authed(user): Authed,
Query(query): Query<FilesQuery>,
) -> Result<Json<Vec<FileNode>>, ApiError> {
let agent = workspace_agent(&state, &user, query.claw_id).await?;
let drive: FileDrive = query
.drive
.as_deref()
.unwrap_or("documents")
.parse()
.map_err(|_| ApiError::NotFound)?;
if !drive.is_agent_scoped() {
return Err(ApiError::NotFound); // shared drive has its own route
}
let nodes = cm_db::repo::files::list(&state.pool, user.workspace_id, drive, agent.id).await?;
Ok(Json(nodes))
}
#[derive(Deserialize)]
pub struct SharedQuery {
#[serde(rename = "clawId")]
claw_id: AgentId,
}
/// GET /api/shared-drive/files?clawId= — the team-wide ClawDrive (§7.4).
pub async fn shared_files(
State(state): State<AppState>,
Authed(user): Authed,
Query(query): Query<SharedQuery>,
) -> Result<Json<Vec<FileNode>>, ApiError> {
let agent = workspace_agent(&state, &user, query.claw_id).await?;
let nodes =
cm_db::repo::files::list(&state.pool, user.workspace_id, FileDrive::Shared, agent.id)
.await?;
Ok(Json(nodes))
}