refactor: remove terminal MCP, Playwright, and commands infrastructure

- Remove terminal/tmux MCP from voice LLM - it now only uses agent-control MCP
- Remove Playwright MCP auto-injection from Claude and Codex agents
- Remove commands state from session, store, and UI
- Remove present_artifact tool and guidelines from voice prompt
- Update agent-prompt.md examples to focus on agents instead of commands
- Remove @huggingface/transformers dependency and test scripts
- Add expandTilde utility to utils/path.ts

🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
Mohamed Boudra
2026-01-09 13:01:26 +07:00
parent 666a0f2fa6
commit 1a2498e9e7
15 changed files with 54 additions and 501 deletions
+1 -37
View File
@@ -108,15 +108,6 @@ export interface Agent {
parentAgentId?: string | null;
}
export interface Command {
id: string;
name: string;
workingDirectory: string;
currentCommand: string;
isDead: boolean;
exitCode: number | null;
}
export type ExplorerEntryKind = "file" | "directory";
export type ExplorerFileKind = "text" | "image" | "binary";
export type ExplorerEncoding = "utf-8" | "base64" | "none";
@@ -228,9 +219,8 @@ export interface SessionState {
// Initializing agents
initializingAgents: Map<string, boolean>;
// Agents and commands
// Agents
agents: Map<string, Agent>;
commands: Map<string, Command>;
// Permissions
pendingPermissions: Map<string, PendingPermission>;
@@ -301,9 +291,6 @@ interface SessionStoreActions {
// Agent activity timestamps
setAgentLastActivity: (agentId: string, timestamp: Date) => void;
// Commands
setCommands: (serverId: string, commands: Map<string, Command> | ((prev: Map<string, Command>) => Map<string, Command>)) => void;
// Permissions
setPendingPermissions: (serverId: string, perms: Map<string, PendingPermission> | ((prev: Map<string, PendingPermission>) => Map<string, PendingPermission>)) => void;
@@ -379,7 +366,6 @@ function createInitialSessionState(serverId: string, ws: UseWebSocketReturn, aud
agentStreamingBuffer: new Map(),
initializingAgents: new Map(),
agents: new Map(),
commands: new Map(),
pendingPermissions: new Map(),
gitDiffs: new Map(),
fileExplorer: new Map(),
@@ -663,28 +649,6 @@ export const useSessionStore = create<SessionStore>()(
});
},
// Commands
setCommands: (serverId, commands) => {
set((prev) => {
const session = prev.sessions[serverId];
if (!session) {
return prev;
}
const nextCommands = typeof commands === "function" ? commands(session.commands) : commands;
if (session.commands === nextCommands) {
return prev;
}
logSessionStoreUpdate("setCommands", serverId, { count: nextCommands.size });
return {
...prev,
sessions: {
...prev.sessions,
[serverId]: { ...session, commands: nextCommands },
},
};
});
},
// Permissions
setPendingPermissions: (serverId, perms) => {
set((prev) => {