Skip to content

Commit 4934747

Browse files
committed
feat(import): mark import command as experimental
1 parent 71e3ab4 commit 4934747

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

src/cli/commands/import/command.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ const dim = '\x1b[2m';
1111
const reset = '\x1b[0m';
1212

1313
export const registerImport = (program: Command) => {
14-
const importCmd = program.command('import').description('Import resources into the project');
14+
const importCmd = program
15+
.command('import')
16+
.description('Import a runtime, memory, or starter toolkit into this project. [experimental]');
1517

1618
// Existing YAML flow: agentcore import --source <path>
1719
importCmd

src/cli/tui/copy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const COMMAND_DESCRIPTIONS = {
4646
pause: 'Pause an online eval config. Supports --arn for configs outside the project.',
4747
resume: 'Resume a paused online eval config. Supports --arn for configs outside the project.',
4848
run: 'Run on-demand evaluation. Supports --agent-arn for agents outside the project.',
49-
import: 'Import a runtime, memory, or starter toolkit into this project.',
49+
import: 'Import a runtime, memory, or starter toolkit into this project. [experimental]',
5050
update: 'Check for and install CLI updates',
5151
validate: 'Validate agentcore/ config files.',
5252
} as const;

src/cli/tui/screens/import/ImportSelectScreen.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { SelectScreen } from '../../components/SelectScreen';
21
import type { SelectableItem } from '../../components/SelectList';
2+
import { SelectScreen } from '../../components/SelectScreen';
3+
import { Text } from 'ink';
34

45
export type ImportType = 'runtime' | 'memory' | 'starter-toolkit';
56

@@ -34,8 +35,13 @@ export function ImportSelectScreen({ onSelect, onExit }: ImportSelectScreenProps
3435
return (
3536
<SelectScreen
3637
title="Import"
38+
headerContent={
39+
<Text color="yellow">
40+
Experimental: this feature imports resources that are already deployed, use with caution
41+
</Text>
42+
}
3743
items={IMPORT_OPTIONS}
38-
onSelect={(item) => onSelect(item.id)}
44+
onSelect={item => onSelect(item.id)}
3945
onExit={onExit}
4046
/>
4147
);

0 commit comments

Comments
 (0)