mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
feat(tui): add skillsHub overlay state wiring
Extend OverlayState with a skillsHub flag, fold it into $isBlocked, and teach Ctrl+C to close the overlay so later PRs can render the component behind this slot.
This commit is contained in:
parent
3821323029
commit
6fbfae8f42
3 changed files with 10 additions and 2 deletions
|
|
@ -9,13 +9,16 @@ const buildOverlayState = (): OverlayState => ({
|
|||
pager: null,
|
||||
picker: false,
|
||||
secret: null,
|
||||
skillsHub: false,
|
||||
sudo: null
|
||||
})
|
||||
|
||||
export const $overlayState = atom<OverlayState>(buildOverlayState())
|
||||
|
||||
export const $isBlocked = computed($overlayState, ({ approval, clarify, modelPicker, pager, picker, secret, sudo }) =>
|
||||
Boolean(approval || clarify || modelPicker || pager || picker || secret || sudo)
|
||||
export const $isBlocked = computed(
|
||||
$overlayState,
|
||||
({ approval, clarify, modelPicker, pager, picker, secret, skillsHub, sudo }) =>
|
||||
Boolean(approval || clarify || modelPicker || pager || picker || secret || skillsHub || sudo)
|
||||
)
|
||||
|
||||
export const getOverlayState = () => $overlayState.get()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue