MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / listMemory

Function listMemory

packages/baseai/src/memory/list.ts:6–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import * as p from '@clack/prompts';
5
6export async function listMemory() {
7 const availableMemories = await getAvailableMemories();
8 if (availableMemories.length === 0) {
9 p.log.message('No memory available.');
10 return;
11 }
12 p.intro(
13 heading({
14 text: 'MEMORY',
15 sub: 'List of all available memory sets'
16 })
17 );
18 console.log('');
19 availableMemories.forEach(item => {
20 console.log(`${icons.memory} ${item}`);
21 });
22
23 process.exit(0);
24}

Callers 1

index.tsFile · 0.90

Calls 3

getAvailableMemoriesFunction · 0.90
headingFunction · 0.90
logMethod · 0.80

Tested by

no test coverage detected