refactor: use system secrets when possible (#248)

This commit is contained in:
Kainoa Kanter
2025-12-29 12:09:52 -08:00
committed by GitHub
parent 4927a915f9
commit fab0ca676b
12 changed files with 869 additions and 57 deletions

View File

@@ -60,7 +60,7 @@ BEHAVIOR
- Use /profile save <name> to bookmark your current agent
Profiles are stored in:
- Global: ~/.letta/settings.json (available everywhere)
- Global: ~/.config/letta/settings.json (available everywhere)
- Local: .letta/settings.local.json (pinned to project)
If no credentials are configured, you'll be prompted to authenticate via
@@ -291,7 +291,7 @@ async function getPinnedAgentNames(): Promise<{ id: string; name: string }[]> {
async function main(): Promise<void> {
// Initialize settings manager (loads settings once into memory)
await settingsManager.initialize();
const settings = settingsManager.getSettings();
const settings = await settingsManager.getSettingsWithSecureTokens();
// Initialize telemetry (enabled by default, opt-out via LETTA_CODE_TELEM=0)
telemetry.init();
@@ -585,7 +585,7 @@ async function main(): Promise<void> {
"Your credentials may be invalid or the server may be unreachable.",
);
console.error(
"Delete ~/.letta/settings.json then run 'letta' to re-authenticate",
"Delete ~/.config/letta/settings.json then run 'letta' to re-authenticate",
);
process.exit(1);
}