mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-23 00:35:51 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -1,35 +1,30 @@
|
||||
import React, { type ReactNode } from 'react'
|
||||
import { isAutoMemoryEnabled } from '../../../memdir/paths.js'
|
||||
import type { Tools } from '../../../Tool.js'
|
||||
import type { AgentDefinition } from '@claude-code-best/builtin-tools/tools/AgentTool/loadAgentsDir.js'
|
||||
import { WizardProvider } from '../../wizard/index.js'
|
||||
import type { WizardStepComponent } from '../../wizard/types.js'
|
||||
import type { AgentWizardData } from './types.js'
|
||||
import { ColorStep } from './wizard-steps/ColorStep.js'
|
||||
import { ConfirmStepWrapper } from './wizard-steps/ConfirmStepWrapper.js'
|
||||
import { DescriptionStep } from './wizard-steps/DescriptionStep.js'
|
||||
import { GenerateStep } from './wizard-steps/GenerateStep.js'
|
||||
import { LocationStep } from './wizard-steps/LocationStep.js'
|
||||
import { MemoryStep } from './wizard-steps/MemoryStep.js'
|
||||
import { MethodStep } from './wizard-steps/MethodStep.js'
|
||||
import { ModelStep } from './wizard-steps/ModelStep.js'
|
||||
import { PromptStep } from './wizard-steps/PromptStep.js'
|
||||
import { ToolsStep } from './wizard-steps/ToolsStep.js'
|
||||
import { TypeStep } from './wizard-steps/TypeStep.js'
|
||||
import React, { type ReactNode } from 'react';
|
||||
import { isAutoMemoryEnabled } from '../../../memdir/paths.js';
|
||||
import type { Tools } from '../../../Tool.js';
|
||||
import type { AgentDefinition } from '@claude-code-best/builtin-tools/tools/AgentTool/loadAgentsDir.js';
|
||||
import { WizardProvider } from '../../wizard/index.js';
|
||||
import type { WizardStepComponent } from '../../wizard/types.js';
|
||||
import type { AgentWizardData } from './types.js';
|
||||
import { ColorStep } from './wizard-steps/ColorStep.js';
|
||||
import { ConfirmStepWrapper } from './wizard-steps/ConfirmStepWrapper.js';
|
||||
import { DescriptionStep } from './wizard-steps/DescriptionStep.js';
|
||||
import { GenerateStep } from './wizard-steps/GenerateStep.js';
|
||||
import { LocationStep } from './wizard-steps/LocationStep.js';
|
||||
import { MemoryStep } from './wizard-steps/MemoryStep.js';
|
||||
import { MethodStep } from './wizard-steps/MethodStep.js';
|
||||
import { ModelStep } from './wizard-steps/ModelStep.js';
|
||||
import { PromptStep } from './wizard-steps/PromptStep.js';
|
||||
import { ToolsStep } from './wizard-steps/ToolsStep.js';
|
||||
import { TypeStep } from './wizard-steps/TypeStep.js';
|
||||
|
||||
type Props = {
|
||||
tools: Tools
|
||||
existingAgents: AgentDefinition[]
|
||||
onComplete: (message: string) => void
|
||||
onCancel: () => void
|
||||
}
|
||||
tools: Tools;
|
||||
existingAgents: AgentDefinition[];
|
||||
onComplete: (message: string) => void;
|
||||
onCancel: () => void;
|
||||
};
|
||||
|
||||
export function CreateAgentWizard({
|
||||
tools,
|
||||
existingAgents,
|
||||
onComplete,
|
||||
onCancel,
|
||||
}: Props): ReactNode {
|
||||
export function CreateAgentWizard({ tools, existingAgents, onComplete, onCancel }: Props): ReactNode {
|
||||
// Create step components with props
|
||||
const steps: WizardStepComponent[] = [
|
||||
LocationStep, // 0
|
||||
@@ -43,14 +38,8 @@ export function CreateAgentWizard({
|
||||
ColorStep, // 8
|
||||
// MemoryStep is conditionally included based on GrowthBook gate
|
||||
...(isAutoMemoryEnabled() ? [MemoryStep] : []),
|
||||
() => (
|
||||
<ConfirmStepWrapper
|
||||
tools={tools}
|
||||
existingAgents={existingAgents}
|
||||
onComplete={onComplete}
|
||||
/>
|
||||
),
|
||||
]
|
||||
() => <ConfirmStepWrapper tools={tools} existingAgents={existingAgents} onComplete={onComplete} />,
|
||||
];
|
||||
|
||||
return (
|
||||
<WizardProvider<AgentWizardData>
|
||||
@@ -64,5 +53,5 @@ export function CreateAgentWizard({
|
||||
title="Create new agent"
|
||||
showStepCounter={false}
|
||||
/>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user