hive-agent: the per-agent page has no message box; its send route and the broker's operator message are removed
The page's composer (its input, slash commands and completion), POST /send in hive-agent, the OperatorMsg request of the agent socket and its handler in hive-c0re, and the broker-error helper only the send route used are deleted: writing to an agent is the swarm UI's terminal. cancel turn, new session and log out stay in the state badge's menu; POST /api/compact stays, with nothing on the page calling it. The request-line limit keeps its size, and its comment says it is a generous bound now. The docs describe the actions in place of the footer and the prompt.
This commit is contained in:
parent
e149ff3315
commit
23f4f1823b
1 changed files with 77 additions and 505 deletions
|
|
@ -28,13 +28,9 @@ export interface UseLiveStreamResult {
|
|||
hasMore: boolean;
|
||||
loadingMore: boolean;
|
||||
loadMore: () => void;
|
||||
/** Append a local-only note row (TermInput's `/help` output, error
|
||||
* feedback on a failed slash-command POST) — never sent anywhere,
|
||||
* purely a client-side echo. */
|
||||
/** Append a local-only note row (error feedback on a failed state-badge
|
||||
* action) — never sent anywhere, purely a client-side echo. */
|
||||
pushLocalNote: (text: string) => void;
|
||||
/** Wipe the local view only (server-side history is untouched) —
|
||||
* TermInput's `/clear`. */
|
||||
clearLocal: () => void;
|
||||
}
|
||||
|
||||
function appendRow(rows: TermRow[], row: TermRow): TermRow[] {
|
||||
|
|
@ -234,9 +230,5 @@ export function useLiveStream(
|
|||
}),
|
||||
);
|
||||
}
|
||||
function clearLocal() {
|
||||
setRows([]);
|
||||
}
|
||||
|
||||
return { rows, hasMore, loadingMore, loadMore, pushLocalNote, clearLocal };
|
||||
return { rows, hasMore, loadingMore, loadMore, pushLocalNote };
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue