refactor(web): drop the team agent tab and team memory scopes (P1.1)

Team mode is out of the community edition, but Agents still offered a Team
tab, a team agent type and team / organization memory scopes.
This commit is contained in:
shumeiko.it
2026-10-27 14:17:25 +01:00
parent f3c48e6f19
commit 97b2c984d8
4 changed files with 10 additions and 8 deletions

View File

@@ -30,7 +30,7 @@ import type { BackendPersona } from './agents/types';
/**
* Agent Center (UX-Refactor Phase 3B, S09). Agents as explicit, governed work
* actors over the B3 agents.json store (/api/agents). C22: category tabs =
* All / Personal / Workspace / Team / Autonomous / Archive; Templates (the
* All / Personal / Workspace / Autonomous / Archive; Templates (the
* legacy persona catalog + groups) is a SIDE AFFORDANCE, not a tab. C23: Run
* is a one-shot fleet-spawn — on `workspace_ambiguous` a picker opens and the
* run retries with the chosen workspace. Acceptance (§12.9): a user can

View File

@@ -50,14 +50,16 @@ interface AgentBuilderProps {
onCancel: () => void;
}
const AGENT_TYPES: AgentType[] = ['personal', 'workspace', 'team', 'autonomous'];
// Team agents and team / organization memory belong to team mode, which the
// community edition does not ship.
const AGENT_TYPES: AgentType[] = ['personal', 'workspace', 'autonomous'];
const AUTONOMY_LEVELS: Array<{ id: AutonomyLevel; hint: string }> = [
{ id: 'manual', hint: 'every action waits for you' },
{ id: 'guided', hint: 'asks before anything consequential' },
{ id: 'medium', hint: 'acts, asks on elevated access' },
{ id: 'high', hint: 'acts autonomously within its declared scope' },
];
const SCOPES: Scope[] = ['personal', 'workspace', 'team', 'organization'];
const SCOPES: Scope[] = ['personal', 'workspace'];
function TogglePill({ active, label, onToggle }: { active: boolean; label: string; onToggle: () => void }) {
return (