mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-25 10:47:19 -07:00
22 lines
419 B
TypeScript
22 lines
419 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2026 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {
|
|
debugLogger,
|
|
startMemoryService,
|
|
type Config,
|
|
} from '@google/gemini-cli-core';
|
|
|
|
export function startAutoMemoryIfEnabled(config: Config): void {
|
|
if (!config.isAutoMemoryEnabled()) {
|
|
return;
|
|
}
|
|
|
|
startMemoryService(config).catch((e) => {
|
|
debugLogger.error('Failed to start memory service:', e);
|
|
});
|
|
}
|