UNPKG

termcode

Version:

Superior terminal AI coding agent with enterprise-grade security, intelligent error recovery, performance monitoring, and plugin system - Advanced Claude Code alternative

10 lines (9 loc) 1.55 kB
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; import React from 'react'; import { Box, Text } from 'ink'; export const StatusBar = ({ height, mode, provider, model, status, branch, project, }) => { const modeColor = mode === 'easy' ? 'green' : 'blue'; const statusColor = status.includes('Error') || status.includes('Failed') ? 'red' : status.includes('Running') || status.includes('Processing') ? 'yellow' : 'green'; return (_jsxs(Box, { height: height, borderStyle: "single", borderColor: "gray", padding: 0, children: [_jsxs(Box, { width: "100%", justifyContent: "space-between", paddingX: 1, children: [_jsxs(Box, { children: [_jsx(Text, { color: modeColor, bold: true, children: mode.toUpperCase() }), _jsx(Text, { color: "gray", children: " \u2022 " }), _jsx(Text, { color: statusColor, children: status })] }), _jsxs(Box, { children: [_jsx(Text, { color: "cyan", children: provider }), _jsx(Text, { color: "gray", children: " / " }), _jsx(Text, { color: "white", children: model })] }), _jsxs(Box, { children: [project && (_jsxs(_Fragment, { children: [_jsx(Text, { color: "magenta", children: project }), _jsx(Text, { color: "gray", children: " \u2022 " })] })), _jsx(Text, { color: "yellow", children: branch })] })] }), _jsx(Box, { width: "100%", justifyContent: "center", paddingX: 1, children: _jsx(Text, { color: "gray", dimColor: true, children: "F2: Mode \u2022 F5: Test \u2022 F7: Rollback \u2022 F8: PR \u2022 F9: Merge \u2022 /: Commands \u2022 Tab: Navigate" }) })] })); };