Files
stack/packages/mosaic/src/runtime/installer.ts
jason.woltje be74ca3cf9
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/publish Pipeline failed
feat: add Pi as first-class Mosaic runtime (#339)
2026-04-01 17:02:23 +00:00

14 lines
414 B
TypeScript

import type { RuntimeName } from '../types.js';
import { getInstallInstructions } from './detector.js';
export function formatInstallInstructions(name: RuntimeName): string {
const hint = getInstallInstructions(name);
const labels: Record<RuntimeName, string> = {
claude: 'Claude Code',
codex: 'Codex',
opencode: 'OpenCode',
pi: 'Pi',
};
return `To install ${labels[name]}:\n ${hint}`;
}