fix(memory-qmd): write XDG index.yml + legacy compat

This commit is contained in:
Vignesh Natarajan
2026-01-28 00:12:18 -08:00
committed by Vignesh
parent 9be3c27bb7
commit dd8373a424
5 changed files with 53 additions and 4 deletions

View File

@@ -266,7 +266,7 @@ export async function runMemoryStatus(opts: MemoryCommandOptions) {
| Awaited<ReturnType<typeof manager.probeEmbeddingAvailability>>
| undefined;
let indexError: string | undefined;
const syncFn = manager.sync;
const syncFn = manager.sync ? manager.sync.bind(manager) : undefined;
if (deep) {
await withProgress({ label: "Checking memory…", total: 2 }, async (progress) => {
progress.setLabel("Probing vector…");
@@ -519,7 +519,7 @@ export function registerMemoryCli(program: Command) {
},
run: async (manager) => {
try {
const syncFn = manager.sync;
const syncFn = manager.sync ? manager.sync.bind(manager) : undefined;
if (opts.verbose) {
const status = manager.status();
const rich = isRich();