ci / check (push) Canceled after 0s
The first public release of LLeMbas CLI: a terminal coding agent and project manager for any LLM API, with permission modes, git snapshots, memory and skills, knowledge bases, MCP, voice, and a link to a LLeMbas instance whose web UI can work its sessions too. Signed Linux binaries for x64 and arm64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
732 B
TypeScript
25 lines
732 B
TypeScript
import type { SyntaxStyle } from "@opentui/core"
|
|
import { createContext, useContext } from "solid-js"
|
|
import type { App } from "../app.ts"
|
|
import type { View } from "./state.ts"
|
|
import type { Theme } from "./theme.ts"
|
|
|
|
export interface Ctx {
|
|
app: App
|
|
view: View
|
|
theme: () => Theme
|
|
md: () => SyntaxStyle
|
|
thought: () => SyntaxStyle
|
|
/** Terminal size, from ONE resize subscription in Root: per-item subscriptions leaked listeners
|
|
* (and Node's warning about them printed over the screen). */
|
|
dims: () => { width: number; height: number }
|
|
}
|
|
|
|
export const TuiContext = createContext<Ctx>()
|
|
|
|
export function useTui(): Ctx {
|
|
const c = useContext(TuiContext)
|
|
if (!c) throw new Error("TuiContext missing")
|
|
return c
|
|
}
|