UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

26 lines • 1 kB
import { getGrokChromeTokens } from "./chrome-tokens.js"; import { GROK_GLYPHS } from "./palette.js"; /** Single-line grok tool presentation with a stable guide column. */ export class GrokToolRow { constructor(state) { this.state = state; } update(state) { this.state = state; } invalidate() { // Rendering is derived from current state and active-theme tokens. } render(_width) { const tokens = getGrokChromeTokens(); const marker = this.state.isPartial ? tokens.warning(GROK_GLYPHS.spinner) : this.state.result?.isError ? tokens.error(GROK_GLYPHS.toolRowMarker) : this.state.result ? tokens.success(GROK_GLYPHS.toolRowMarker) : tokens.warning(GROK_GLYPHS.toolRowMarker); return [`${tokens.mutedText(GROK_GLYPHS.toolRowGuide)} ${marker} ${tokens.primaryText(this.state.toolName)}`]; } } //# sourceMappingURL=tool-row.js.map