mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-13 14:37:26 +00:00
The credential store resolved its base directory against process.cwd(). Running the CLI from inside a git checkout wrote `.logicsrc/credentials` into that repo's working tree — a directory containing `vault/`, the one place raw credential values touch disk — untracked, unignored, and one `git add -A` from being committed. Two such directories were sitting in unrelated repos on the machine this was found on. A per-directory store is also the wrong shape for what the store is for. It is the record of what was rotated and what the prior values were, and a record that forks per project folder is several records that disagree. There is one user, one identity, one vault. Everything now hangs off a single logicsrcHome(): $LOGICSRC_HOME, else $XDG_CONFIG_HOME/logicsrc, else ~/.config/logicsrc. The credential store, the identity and the CLI config all read it rather than each deriving their own answer — three separate derivations is how the vault ended up somewhere the config never was. ~/.logicsrc is migrated rather than abandoned. It holds the X25519 secret key, and losing that loses access to every team vault the member was ever given, so it is moved on first use; a move that fails says so on stderr instead of leaving someone silently logged out with a key still on disk somewhere they were not told about. If the new directory already exists it wins and the old one is left untouched, because two directories both claiming to be the identity is how a login writes one and a read finds the other. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
935 B
935 B
Config
Logicsrc stores user config at:
$HOME/.config/logicsrc/config.json
Read and write values with dot paths:
logicsrc config get waiting.arcade.enabled
logicsrc config set waiting.arcade.enabled true
logicsrc config set waiting.arcade.defaultGame hangman
logicsrc config set waiting.arcade.autoStartAfterSeconds 15
Default Waiting Arcade config:
{
"waiting": {
"arcade": {
"enabled": true,
"defaultGame": "hangman",
"random": false,
"autoStartAfterSeconds": 0,
"interruptOnApproval": true,
"interruptOnDone": true,
"interruptOnError": true,
"showTaskStatusOverlay": true
}
}
}
Precedence for arcade launch behavior is:
- CLI flags
- Environment variables
- User config
- Defaults
Environment variables:
LOGICSRC_ARCADE=1
LOGICSRC_ARCADE_GAME=hangman
LOGICSRC_NO_ARCADE=1
LOGICSRC_ARCADE_AUTOSTART_SECONDS=15