import { CreateAgentDialog } from './create-agent-dialog.js';
const meta = {
    title: 'AgentEditor/CreateAgentDialog',
    component: CreateAgentDialog,
    parameters: { layout: 'centered' },
};
export default meta;
export const TriggerOnly = {
    args: {
        onCreateOverride: async (input) => ({ ok: true, agentType: input.agentType }),
        onNavigateOverride: () => undefined,
    },
};
export const Open = {
    args: {
        initialOpen: true,
        onCreateOverride: async (input) => ({ ok: true, agentType: input.agentType }),
        onNavigateOverride: () => undefined,
    },
};
export const SubmitError = {
    args: {
        initialOpen: true,
        onCreateOverride: async () => ({
            ok: false,
            error: 'agentType "code-review" already exists',
        }),
        onNavigateOverride: () => undefined,
    },
};
