@every-env/cli
Version:
Multi-agent orchestrator for AI-powered development workflows
25 lines • 939 B
JavaScript
import React from 'react';
import { Box, Text } from 'ink';
const phaseActions = {
1: { d: 'delegate', a: 'assess', e: 'edit', x: 'delete' },
2: { a: 'assess', l: 'logs', s: 'stop' },
3: { c: 'codify', d: 'delegate', v: 'view' },
4: { v: 'view', e: 'edit', p: 'publish' }
};
export function ActionBar({ currentPhase, hasSelection, hasTasks }) {
const getAvailableActions = () => {
if (!hasSelection || !hasTasks) {
return '';
}
const actions = phaseActions[currentPhase];
return Object.entries(actions)
.map(([key, action]) => `[${key}]${action}`)
.join(' ');
};
const actions = getAvailableActions();
return (React.createElement(Box, { marginTop: 1 },
React.createElement(Text, { color: "gray" },
actions && `${actions} • `,
"\u2191\u2193 nav \u2022 [1-4]jump")));
}
//# sourceMappingURL=ActionBar.js.map