diff --git a/apps/web/src/components/os/apps/AgentsApp.tsx b/apps/web/src/components/os/apps/AgentsApp.tsx index 3880c9e..ff31ec8 100644 --- a/apps/web/src/components/os/apps/AgentsApp.tsx +++ b/apps/web/src/components/os/apps/AgentsApp.tsx @@ -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 diff --git a/apps/web/src/components/os/apps/agents/AgentBuilder.tsx b/apps/web/src/components/os/apps/agents/AgentBuilder.tsx index e2b8ace..7c4b098 100644 --- a/apps/web/src/components/os/apps/agents/AgentBuilder.tsx +++ b/apps/web/src/components/os/apps/agents/AgentBuilder.tsx @@ -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 ( diff --git a/apps/web/src/lib/agent-center-display.test.ts b/apps/web/src/lib/agent-center-display.test.ts index 07913fb..3cd6988 100644 --- a/apps/web/src/lib/agent-center-display.test.ts +++ b/apps/web/src/lib/agent-center-display.test.ts @@ -59,7 +59,7 @@ describe('filterAgentsByTab — C22', () => { ]; it('declares exactly the six C22 tabs (Templates is NOT a tab)', () => { - expect(AGENT_CENTER_TABS.map(t => t.id)).toEqual(['all', 'personal', 'workspace', 'team', 'autonomous', 'archive']); + expect(AGENT_CENTER_TABS.map(t => t.id)).toEqual(['all', 'personal', 'workspace', 'autonomous', 'archive']); expect(AGENT_CENTER_TABS.some(t => t.label.toLowerCase() === 'templates')).toBe(false); }); diff --git a/apps/web/src/lib/agent-center-display.ts b/apps/web/src/lib/agent-center-display.ts index 8ef4e16..93f2626 100644 --- a/apps/web/src/lib/agent-center-display.ts +++ b/apps/web/src/lib/agent-center-display.ts @@ -5,8 +5,9 @@ * - PRD §14.5: ALL eight AgentRunState values map to a StatusBadge tone + * human label (exhaustive Record — adding a state without a badge entry * is a compile error). - * - C22: category tabs = All / Personal / Workspace / Team / Autonomous / - * Archive (Templates is a side affordance, NOT a tab). + * - C22: category tabs = All / Personal / Workspace / Autonomous / Archive + * (Templates is a side affordance, NOT a tab). The community edition has no + * team mode, so there is no Team tab. * - C27: KPI row keeps the success-rate tile and total/running counts; * "hours saved" is deliberately absent (no data source). */ @@ -26,14 +27,13 @@ export const AGENT_STATE_META: Record = [ { id: 'all', label: 'All' }, { id: 'personal', label: 'Personal' }, { id: 'workspace', label: 'Workspace' }, - { id: 'team', label: 'Team' }, { id: 'autonomous', label: 'Autonomous' }, { id: 'archive', label: 'Archive' }, ];