UNPKG

pyb-ts

Version:

PYB-CLI - Minimal AI Agent with multi-model support and CLI interface

23 lines (22 loc) 1.14 kB
import React, { useEffect, useState } from "react"; import { Box, Text, useInput } from "ink"; import { getTheme } from "@utils/theme"; import { PressEnterToContinue } from "@components/PressEnterToContinue"; function Doctor({ onDone, doctorMode = false }) { const [checked, setChecked] = useState(false); const theme = getTheme(); useEffect(() => { setChecked(true); }, []); useInput((_input, key) => { if (key.return) onDone(); }); if (!checked) { return /* @__PURE__ */ React.createElement(Box, { paddingX: 1, paddingTop: 1 }, /* @__PURE__ */ React.createElement(Text, { color: theme.secondaryText }, "Running checks\u2026")); } return /* @__PURE__ */ React.createElement(Box, { flexDirection: "column", gap: 1, paddingX: 1, paddingTop: 1 }, /* @__PURE__ */ React.createElement(Text, { color: theme.success }, "\u2713 Installation checks passed"), /* @__PURE__ */ React.createElement(Text, { dimColor: true }, "Note: Auto-update is disabled by design. Use npm/bun to update."), /* @__PURE__ */ React.createElement(PressEnterToContinue, null)); } export { Doctor }; //# sourceMappingURL=Doctor.js.map