mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
chore(tui): remove dead branch cleanup code
- drop unused TUI helpers, test-only layout scaffolding, and stale public debug exports - remove an unused profiler import and trim test-only coverage for deleted helpers
This commit is contained in:
parent
635948d0e0
commit
ffa33e53f6
16 changed files with 9 additions and 57 deletions
|
|
@ -220,7 +220,7 @@ export const opsCommands: SlashCommand[] = [
|
|||
const [sub, ...rest] = text.split(/\s+/)
|
||||
const query = rest.join(' ').trim()
|
||||
const { rpc } = ctx.gateway
|
||||
const { page, panel, sys } = ctx.transcript
|
||||
const { panel, sys } = ctx.transcript
|
||||
|
||||
if (sub === 'list') {
|
||||
rpc<SkillsListResponse>('skills.manage', { action: 'list' })
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { atom } from 'nanostores'
|
||||
import { useSyncExternalStore } from 'react'
|
||||
|
||||
import { appendToolShelfMessage, isTodoDone } from '../lib/liveProgress.js'
|
||||
import { isTodoDone } from '../lib/liveProgress.js'
|
||||
import type { ActiveTool, ActivityItem, Msg, SubagentProgress, TodoItem } from '../types.js'
|
||||
|
||||
const buildTurnState = (): TurnState => ({
|
||||
|
|
@ -64,9 +64,6 @@ export const archiveTodosAtTurnEnd = () => {
|
|||
return [msg]
|
||||
}
|
||||
|
||||
export const appendTurnSegment = (msg: Msg) =>
|
||||
patchTurnState(state => ({ ...state, streamSegments: appendToolShelfMessage(state.streamSegments, msg) }))
|
||||
|
||||
export const resetTurnState = () => $turnState.set(buildTurnState())
|
||||
|
||||
export interface TurnState {
|
||||
|
|
|
|||
|
|
@ -442,7 +442,7 @@ export function useMainApp(gw: GatewayClient) {
|
|||
|
||||
clipboardPasteRef.current = paste
|
||||
|
||||
const { dispatchSubmission, send, sendQueued, shellExec, submit } = useSubmission({
|
||||
const { dispatchSubmission, send, sendQueued, submit } = useSubmission({
|
||||
appendMessage,
|
||||
composerActions,
|
||||
composerRefs,
|
||||
|
|
|
|||
|
|
@ -331,7 +331,7 @@ export function useSubmission(opts: UseSubmissionOptions) {
|
|||
|
||||
submitRef.current = submit
|
||||
|
||||
return { dispatchSubmission, send, sendQueued, shellExec, submit }
|
||||
return { dispatchSubmission, send, sendQueued, submit }
|
||||
}
|
||||
|
||||
export interface UseSubmissionOptions {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue