legacy

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package legacy keeps an install from before the rename to logos working through 0.4.x. Everything here reads an old name so that nobody's memory disappears on upgrade, and all of it goes before 0.5.0.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Env

func Env() []string

Env copies every BRAIN_* variable to its LOGOS_* name when the new name is not already set, and returns the old names it copied so the caller can say so. Host configs written by 0.4 setup pin BRAIN_VAULT; copying once at start covers every reader instead of teaching each one two names.

func StateDir

func StateDir(vaultDir string) string

StateDir moves a vault's .brain/ to .logos/ and returns a line saying what it did, or "" when there was nothing old there.

Moved rather than read in place: the index, model config, ingest consent and web pairing each open .logos/ on their own, and a second name for every one of them is the kind of fork that goes wrong in only one. When both exist neither is touched, because either could hold the config somebody relies on.

func Vault

func Vault() string

Vault finds a vault a 0.4 install left under the old name and records it as this machine's vault, returning a line saying so, or "" when there was nothing to carry.

Recorded rather than resolved on every call: the pointer is what the desktop app and every host already read, so once written the old location is simply the chosen one and keeps working past 0.5.0 with nothing to rename. Nothing is recorded while LOGOS_VAULT is set — that run is scoped to one process, and a test's scratch vault must never decide where the real one is.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL