praxis-agent 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -76,6 +76,7 @@ export function DoctorDashboard({ loading, report, error, width, screenReader, }
|
|
|
76
76
|
}
|
|
77
77
|
if (report === null)
|
|
78
78
|
return null;
|
|
79
|
-
|
|
79
|
+
const { diagnostic, updates } = report;
|
|
80
|
+
return (_jsxs(Box, { flexDirection: "column", width: Math.min(100, width), children: [_jsx(Text, { bold: true, children: " Doctor:" }), _jsx(Text, { children: " " }), _jsx(Text, { bold: true, children: " Diagnostics" }), _jsx(Text, { children: `Currently running: Praxis ${diagnostic.version} (${diagnostic.installationType})` }), diagnostic.packageManager !== null && (_jsx(Text, { children: `Package manager: ${diagnostic.packageManager}` })), _jsx(Text, { children: `Path: ${diagnostic.installationPath}` }), _jsx(Text, { children: `Invoked: ${diagnostic.invokedBinary}` }), _jsx(Text, { children: `Config install method: ${diagnostic.configInstallMethod}` }), diagnostic.search.working ? (_jsxs(_Fragment, { children: [_jsx(Text, { children: `Search: OK (${diagnostic.search.mode})` }), diagnostic.search.systemPath !== null && (_jsx(Text, { children: `└ ${diagnostic.search.systemPath}` }))] })) : (_jsx(Text, { children: "Search: unavailable" })), diagnostic.multipleInstallations.length > 1 && (_jsxs(_Fragment, { children: [_jsx(Text, { bold: true, children: "Multiple installations found" }), diagnostic.multipleInstallations.map((path) => (_jsx(Text, { children: `- ${path}` }, path)))] })), diagnostic.recommendation !== null && (_jsx(Text, { children: `Recommendation: ${diagnostic.recommendation}` })), diagnostic.warnings.map((warning) => (_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { children: warning.issue }), _jsx(Text, { children: `└ Fix: ${warning.fix}` })] }, warning.issue))), _jsx(Text, { children: " " }), _jsx(Text, { bold: true, children: " Updates" }), _jsx(Text, { children: `Auto-updates: ${updates.autoUpdates}` }), updates.hasUpdatePermissions !== null && (_jsx(Text, { children: `Update permissions: ${updates.hasUpdatePermissions ? 'yes' : 'no'}` })), _jsx(Text, { children: `Auto-update channel: ${updates.channel}` }), updates.registryStatus === 'available' ? (_jsxs(_Fragment, { children: [updates.stableVersion !== null && (_jsx(Text, { children: `Stable version: ${updates.stableVersion}` })), _jsx(Text, { children: `Latest version: ${updates.latestVersion ?? 'unknown'}` })] })) : (_jsx(Text, { children: "\u2514 Failed to fetch versions" })), _jsx(WarningGroups, { report: report, screenReader: screenReader }), _jsx(Text, { children: " " }), _jsx(Text, { children: doctorSummary(report) }), _jsx(Text, { children: `Summary: ${report.summary.passed} passed, ${report.summary.warnings} warnings, ${report.summary.failed} failed.` }), _jsx(Text, { children: " " }), _jsx(Text, { dimColor: true, children: footer })] }));
|
|
80
81
|
}
|
|
81
82
|
//# sourceMappingURL=doctor-dashboard.js.map
|