feat(workstate): UI des actions contrôlées (Lot D frontend)
Câble les actions contrôlées dans ProjectWorkStatePanel : port et adaptateur agent étendus aux nouvelles commandes, adaptateur mock aligné. Tests verts : workstate + projects (25), agent (8), singletonAgent + agentAlreadyRunning (9), tsc --noEmit OK. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -108,6 +108,11 @@ export interface AgentGateway {
|
||||
agentId: string,
|
||||
nodeId: string,
|
||||
): Promise<LiveAgent>;
|
||||
/**
|
||||
* Stops an already-live agent session without going through terminal teardown
|
||||
* commands from the Work panel. The backend owns the live-agent lifecycle.
|
||||
*/
|
||||
stopLiveAgent?(projectId: string, agentId: string): Promise<StoppedLiveAgent>;
|
||||
/** Creates a new agent from scratch; returns the created agent. */
|
||||
createAgent(projectId: string, input: CreateAgentInput): Promise<Agent>;
|
||||
/**
|
||||
@ -205,7 +210,16 @@ export interface LiveAgent {
|
||||
* The live PTY session id, when the backend exposes it. Required for opening
|
||||
* a background/running agent in a new visible cell without respawning it.
|
||||
*/
|
||||
sessionId?: string;
|
||||
sessionId: string;
|
||||
/** Runtime kind backing the live agent. */
|
||||
kind: "pty" | "structured";
|
||||
}
|
||||
|
||||
/** Result returned when the backend stops a live agent. */
|
||||
export interface StoppedLiveAgent {
|
||||
agentId: string;
|
||||
sessionId: string;
|
||||
kind: "pty" | "structured";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user