Skip to content

Commit 609ea66

Browse files
fix messages bc typescript is not available currently (#240)
1 parent 7948b0a commit 609ea66

3 files changed

Lines changed: 46 additions & 43 deletions

File tree

package-lock.json

Lines changed: 39 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli/commands/create/command.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export const registerCreate = (program: Command) => {
142142
.option('--name <name>', 'Project name (start with letter, alphanumeric only, max 36 chars) [non-interactive]')
143143
.option('--no-agent', 'Skip agent creation [non-interactive]')
144144
.option('--defaults', 'Use defaults (Python, Strands, Bedrock, no memory) [non-interactive]')
145-
.option('--language <language>', 'Target language (Python, TypeScript) [non-interactive]')
145+
.option('--language <language>', 'Target language (default: Python) [non-interactive]')
146146
.option(
147147
'--framework <framework>',
148148
'Agent framework (Strands, LangChain_LangGraph, CrewAI, GoogleADK, OpenAIAgents) [non-interactive]'
@@ -165,6 +165,9 @@ export const registerCreate = (program: Command) => {
165165
options.memory = options.memory ?? 'none';
166166
}
167167

168+
// Always default language to Python (only supported option)
169+
options.language = options.language ?? 'Python';
170+
168171
// Any flag triggers non-interactive CLI mode
169172
const hasAnyFlag = Boolean(
170173
options.name ??

src/cli/commands/create/validate.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ export function validateCreateOptions(options: CreateOptions, cwd?: string): Val
5050
}
5151

5252
// Without --no-agent, all agent options are required
53-
const hasAllAgentOptions = options.language && options.framework && options.modelProvider && options.memory;
53+
const hasAllAgentOptions = options.framework && options.modelProvider && options.memory;
5454

5555
if (!hasAllAgentOptions) {
5656
return {
5757
valid: false,
58-
error: 'Use --no-agent for project-only, or provide all: --language, --framework, --model-provider, --memory',
58+
error: 'Use --no-agent for project-only, or provide all: --framework, --model-provider, --memory',
5959
};
6060
}
6161

@@ -77,7 +77,7 @@ export function validateCreateOptions(options: CreateOptions, cwd?: string): Val
7777
// Validate language
7878
const langResult = TargetLanguageSchema.safeParse(options.language);
7979
if (!langResult.success) {
80-
return { valid: false, error: `Invalid language: ${options.language}. Use Python or TypeScript` };
80+
return { valid: false, error: `Invalid language: ${options.language}. Use Python` };
8181
}
8282

8383
// Validate framework

0 commit comments

Comments
 (0)