Skip to main content

Module rebuild

Module rebuild 

Source
Expand description

Reconstruct .fur/ from chats/.

This is the test of whether the architecture actually holds:

rm -rf .fur && fur convo

If the archive comes back, chats/ has genuinely become the durable format and .fur/ is disposable operational state.

Rebuild is deliberately conservative. It runs when .fur/ is absent. It refuses to run over an existing .fur/ without --force, because a stale or partially-synced chats/ would otherwise destroy live local state (active conversation, cursor position, avatar emoji) on an ordinary command.

Structs§

RebuildSummary

Enums§

ProjectState
What a directory looks like before any command touches it.

Constants§

LOCK_CHECK
Encrypted password verifier, kept beside the data rather than inside the disposable index.
LOCK_SENTINEL
Written by fur lock, removed by fur unlock, never itself encrypted.

Functions§

detect_state
import_document
Add one already-validated canonical conversation document to the operational .fur/ index without rebuilding or disturbing the rest of the project.
is_locked_archive
rebuild
Rebuild .fur/ from every conversation document under chats/.
spine_paths
Every chats/<slug>/convo.md in the project.