Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions src/cli/tui/screens/deploy/DeployScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,18 @@ interface DeployScreenProps {
}

/** Next steps shown after successful deployment */
const DEPLOY_NEXT_STEPS: NextStep[] = [
{ command: 'invoke', label: 'Test your agent' },
{ command: 'status', label: 'View deployment status' },
];
function getDeployNextSteps(hasAgents: boolean): NextStep[] {
if (hasAgents) {
return [
{ command: 'invoke', label: 'Test your agent' },
{ command: 'status', label: 'View deployment status' },
];
}
return [
{ command: 'add', label: 'Add an agent' },
{ command: 'status', label: 'View deployment status' },
];
}

export function DeployScreen({ isInteractive, onExit, autoConfirm, onNavigate, preSynthesized }: DeployScreenProps) {
const awsConfig = useAwsTargetConfig();
Expand Down Expand Up @@ -287,7 +295,7 @@ export function DeployScreen({ isInteractive, onExit, autoConfirm, onNavigate, p

{allSuccess && (
<NextSteps
steps={DEPLOY_NEXT_STEPS}
steps={getDeployNextSteps((context?.projectSpec.agents.length ?? 0) > 0)}
isInteractive={isInteractive}
onSelect={step => {
if (step.command === 'invoke') {
Expand Down
Loading