Skip to content

Commit ccbacd9

Browse files
add Memory descriptions (#32)
1 parent a3602a9 commit ccbacd9

3 files changed

Lines changed: 10 additions & 28 deletions

File tree

package-lock.json

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

src/cli/tui/screens/generate/GenerateWizardUI.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ export function GenerateWizardUI({ wizard, onBack, onConfirm, isActive }: Genera
3737
const getItems = (): SelectableItem[] => {
3838
switch (wizard.step) {
3939
case 'language':
40-
return LANGUAGE_OPTIONS.map(o => ({ id: o.id, title: o.title, disabled: 'disabled' in o ? o.disabled : undefined }));
40+
return LANGUAGE_OPTIONS.map(o => ({
41+
id: o.id,
42+
title: o.title,
43+
disabled: 'disabled' in o ? o.disabled : undefined,
44+
}));
4145
case 'sdk':
4246
return SDK_OPTIONS.map(o => ({ id: o.id, title: o.title, description: o.description }));
4347
case 'modelProvider':
@@ -48,7 +52,7 @@ export function GenerateWizardUI({ wizard, onBack, onConfirm, isActive }: Genera
4852
description: o.description,
4953
}));
5054
case 'memory':
51-
return MEMORY_OPTIONS.map(o => ({ id: o.id, title: o.title }));
55+
return MEMORY_OPTIONS.map(o => ({ id: o.id, title: o.title, description: o.description }));
5256
default:
5357
return [];
5458
}

src/cli/tui/screens/generate/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function getModelProviderOptionsForSdk(sdk: SDKFramework) {
6969
}
7070

7171
export const MEMORY_OPTIONS = [
72-
{ id: 'none', title: 'None' },
73-
{ id: 'shortTerm', title: 'Short-term memory' },
74-
{ id: 'longAndShortTerm', title: 'Long-term and short-term' },
72+
{ id: 'none', title: 'None', description: 'No memory' },
73+
{ id: 'shortTerm', title: 'Short-term memory', description: 'Context within a session' },
74+
{ id: 'longAndShortTerm', title: 'Long-term and short-term', description: 'Persists across sessions' },
7575
] as const;

0 commit comments

Comments
 (0)