Download ui-tui/src/app/inputSelectionStore.ts from SaylorTwift/hermes-agent: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/ui-tui/src/app/inputSelectionStore.ts
- Command line
-
hf download hf://SaylorTwift/hermes-agent/ui-tui/src/app/inputSelectionStore.ts
-
curl -L -o inputSelectionStore.ts https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/ui-tui/src/app/inputSelectionStore.ts
423 Bytes
| import { atom } from 'nanostores' | |
| export interface InputSelection { | |
| clear: () => void | |
| collapseToEnd: () => void | |
| copy: () => void | |
| cut: () => void | |
| end: number | |
| start: number | |
| value: string | |
| } | |
| export const $inputSelection = atom<InputSelection | null>(null) | |
| export const setInputSelection = (next: InputSelection | null) => $inputSelection.set(next) | |
| export const getInputSelection = () => $inputSelection.get() | |