Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/gs-sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ bundled with it (v4.3.1) replaces the active `engram` with v1.

Check: `scripts/test-engram-auto-setup.sh`.

## gentle-ai uses our Engram binary

On the beta channel, `gentle-ai sync` and installs run
`go install github.com/Gentleman-Programming/engram/cmd/engram@main`. That is the
pre-v3 module path, so it installs Engram v1 over the v3 binary.
`zsh/cortex-dotfiles.zsh` exports `GENTLE_AI_ENGRAM_BIN=$HOME/.local/bin/engram`,
which makes gentle-ai use that binary instead of installing one. `gs sync`
installs v3 at that path.

Check: `engram version` reports 3.x after `gs sync` and after starting Pi.

## Tests

`tests/gs_test.sh` runs offline in a throwaway HOME with stub binaries and covers
Expand Down
4 changes: 4 additions & 0 deletions zsh/cortex-dotfiles.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ export GENTLE_AI_CHANNEL="${GENTLE_AI_CHANNEL:-beta}"
# Stop gentle-shell startup auto-setup: it reprovisions companions and its
# bundled gentle-ai replaces Engram with v1. Set to 0 to opt back in.
export GENTLE_SHELL_NO_AUTO_SETUP="${GENTLE_SHELL_NO_AUTO_SETUP:-1}"
# On the beta channel gentle-ai installs Engram with `go install .../engram/cmd/engram@main`,
# the pre-v3 module path, which yields Engram v1. Pointing it at our own binary
# makes gentle-ai use that one instead of installing; gs sync keeps it on v3.
export GENTLE_AI_ENGRAM_BIN="${GENTLE_AI_ENGRAM_BIN:-$HOME/.local/bin/engram}"
#endregion

#region Herdr Clipboard
Expand Down
Loading