Memory.Migration (fnord v0.9.29)

View Source

Helpers for repairing and migrating memory index statuses.

This module provides programmatic functions (not a mix task) so migration can be invoked in an escript environment or in tests. The default behavior is a dry-run listing of candidate memories; pass apply?: true to perform an in-place repair (set index_status to :analyzed).

Summary

Functions

Scan global, project, and session memories for nil index_status.

Functions

migrate_nil_statuses(project \\ nil, opts \\ [])

Scan global, project, and session memories for nil index_status.

When project is nil, the current selected project is used (via Store.get_project()). Returns {:ok, report_map} where report_map contains lists of affected memories.