Replace the remaining .kry and C application sources with Ziran modules, move vendored dependencies to their current pointers, and add Ziran tests for the ported hosts and policies.
2.7 KiB
Private data layout
Inbe uses <app internalDataPath>/inbe on Android, $XDG_DATA_HOME/inbe
(or ~/.local/share/inbe) on Unix desktops, %LOCALAPPDATA%/inbe on
Windows, and /home/inbe in the web filesystem. The database is inbe.db
inside that directory. Android release and debug packages have separate
private internalDataPath directories.
The older breathing or BreathSession directory and breathing.db database
upgrades now have checked Ziran implementations. Their linked tests cover
directory conflicts, failed moves, SQLite WAL content, and failed backup
publication. The containing startup modules still have C-style source, so the
upgrades have not run in a complete app build. The loose plain-text session
file upgrade now has a checked parser and startup scanner with a linked test,
but its containing startup path has not linked as an app. The checked Linux
archive module reads file-session ZIPs and current or historical database ZIPs,
and writes snapshot ZIPs from committed SQLite data. Its public caller still
fails source checking, so import/export has not run in the full app. The import
table recognizes both
inbe-data/inbe.db and the older breathing-data/breathing.db archive entry.
Exports use inbe-data/inbe.db and inbe-data/metadata.json with format
inbe-data-sqlite.
laws/storage_layout/LAWS.bend proves the current and older directory names
are distinct on every target, the current and older database names, and that
both current and historical archive entries are importable. The
checked generator emits storage_layout.h and src/storage/storage_layout.zi;
the Ziran module supplies the current and historical directory and database
names, archive suffix, and import/export entry names. data_root() and import/export
code consume its names. The proof covers the finite naming policy. Native
storage tests cover path selection, database opening, and archive round trips.
The full app remains unbuildable during the Ziran migration, so those native
integration tests cannot currently be linked from the full app build.
Desktop profiles
make run and make run-termi use the persistent debug profile at
$XDG_DATA_HOME/inbe-debug (or ~/.local/share/inbe-debug when XDG_DATA_HOME
is unset). make run-fresh uses a disposable temporary profile.
make install installs the production desktop app under ~/.local by default.
Launching inbe or its desktop entry uses $XDG_DATA_HOME/inbe (or
~/.local/share/inbe). Sync keys, settings, sessions, habits, and downloaded
meditation audio stay inside their respective profile directories. PREFIX
can be set explicitly for a system installation; it does not change the
production data location. Debug and production windows have separate desktop
identities and single-instance locks.