Current Raccoon desktop builds keep the session in a client profile, not in
~/.box-agent, so desktop sign-in answered "not detected" while the app was
signed in (wky114). Raccoon desktop 1.1.3's app.asar (clientProfile.ts)
puts it at <profile>/agent/config/auth.json, the profile being
~/Library/Application Support/office-raccoon on macOS and
%USERPROFILE%\.office-raccoon on Windows. The plugin now reads the Windows
profile, the appData profile, then ~/.box-agent, first file found wins; the
RACCOON_BOX_AGENT_CONFIG_DIR / BOX_AGENT_CONFIG_DIR overrides still come
first. Labels and the not-found error no longer name one path.
Review fixup (cb46111): the PR had only ~/.office-raccoon, which is the
Windows layout, and its test was red at f55d949 (Bun reads homedir() once,
so setting HOME did nothing). desktopAuthCandidates takes home/platform/env
and the tests pass them per OS. Version 0.1.4.
Run at cb46111: bun test in packages/raccoon on mote (38 pass) and on
Windows (38 pass); whole repo bun test on mote (2999 pass, 8 skip);
bun scripts/check.mjs ok. Broken by hand: without the appData profile
both desktop tests are red. Not tried: a real signed-in Raccoon desktop.
Co-authored-by: wky114 <38514103+wky114@users.noreply.github.com>