Commit Graph

31 Commits

Author SHA1 Message Date
Sarah Wooders
b97b287462 YAML config takes priority over .env 2026-01-28 23:10:47 -08:00
Sarah Wooders
5e41fac3e0 Stop writing to .env, use lettabot.yaml only 2026-01-28 23:07:15 -08:00
Sarah Wooders
31feea3c80 Update onboard to save lettabot.yaml, change Custom model to Other 2026-01-28 23:03:52 -08:00
Sarah Wooders
75f53b24b6 Add example config file, gitignore secrets 2026-01-28 22:53:11 -08:00
Sarah Wooders
612c7f70fe Use YAML config on startup, sync BYOK providers 2026-01-28 22:52:14 -08:00
Sarah Wooders
b72150c193 Add YAML config system (types and io) 2026-01-28 22:50:49 -08:00
Sarah Wooders
2b5b1eda57 Log and timeout session initialization/send 2026-01-28 22:36:29 -08:00
Sarah Wooders
59957815fb Log target server endpoint before sending message 2026-01-28 22:32:19 -08:00
Sarah Wooders
bf7bf89b80 Add more logging for session.send() and CLI process 2026-01-28 22:31:53 -08:00
Sarah Wooders
75037239ac Add detailed logging for agent message handling and response 2026-01-28 22:29:20 -08:00
Sarah Wooders
fb28ea362d Fix: Update existing provider instead of creating duplicate 2026-01-28 22:23:46 -08:00
Sarah Wooders
77c8eb5b1e Fetch BYOK models from API instead of static list 2026-01-28 22:20:35 -08:00
Sarah Wooders
e6038faf96 Show all BYOK models for free tier users 2026-01-28 22:15:35 -08:00
Sarah Wooders
89d4b5d082 Fix: Show models from connected BYOK providers, not all cloud models 2026-01-28 21:46:46 -08:00
Sarah Wooders
549e862e9a Add BYOK provider setup step for free tier users
- Add stepProviders before model selection (only for free tier)
- Multi-select UI for choosing providers: Anthropic, OpenAI, Gemini, zAI, MiniMax, OpenRouter
- Creates providers via Letta API with user's API keys
- Fetch billing tier earlier in flow to enable provider step

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
2026-01-28 21:43:57 -08:00
Sarah Wooders
df90877d95 Fix: Always use Letta Cloud for billing check, not .env LETTA_BASE_URL 2026-01-28 21:39:33 -08:00
Sarah Wooders
691df41ff7 Add debug logging for API key and billing tier 2026-01-28 21:38:23 -08:00
Sarah Wooders
c7f8be5d7e Fix billing tier detection - use correct endpoint and pass API key
- Use /v1/metadata/balance endpoint (same as letta-code)
- Pass API key explicitly since it may not be in process.env yet
- Add debug logging for billing tier detection

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
2026-01-28 21:35:38 -08:00
Sarah Wooders
10aa377776 Add billing tier-aware model selection for free plan users
- Add models.json with featured models and free models (GLM-4.7, MiniMax M2.1)
- Free plan users see free models first, then BYOK options
- Paid users see featured models first
- Self-hosted servers fetch models from server API
- Show billing tier during onboard

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
2026-01-28 21:32:47 -08:00
Sarah Wooders
4a024082cc Add self-hosted server option to onboard wizard
- Add "Enter self-hosted URL" option in authentication step
- Defaults to http://localhost:8283
- Sets LETTA_BASE_URL so model listing works from local server
- Validates connection to self-hosted server
- Shows server URL in configuration summary

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
2026-01-28 21:22:55 -08:00
Charles Packer
7707363dd3 Merge pull request #2 from letta-ai/fix/message-cli-target
Fix lettabot-message CLI reading wrong store field
2026-01-28 21:18:52 -08:00
Charles Packer
c369d849f6 Merge pull request #1 from letta-ai/caren/fix-config-env-loading
feat: improve config menu UX and model selection with pagination
2026-01-28 21:18:44 -08:00
Sarah Wooders
5d72e53703 Merge pull request #4 from letta-ai/fix/save-base-url-with-agent
Fix: Save baseUrl when storing agent ID for local server support
2026-01-28 19:53:44 -08:00
Sarah Wooders
685b97c8e3 Fix: Save baseUrl when storing agent ID for local server support
When a new agent is created, we now save the server URL (baseUrl) along with
the agent ID using store.setAgent(). This ensures proper server mismatch
detection when switching between local and cloud Letta servers.

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
2026-01-28 19:52:19 -08:00
Sarah Wooders
c6523d640b Merge pull request #3 from letta-ai/fix/envelope-chat-id
Add chat ID to message envelope for lettabot-message CLI
2026-01-28 19:01:38 -08:00
Sarah Wooders
1c99351736 Add scheduling docs and fix GitHub issues link in system prompt 2026-01-28 18:59:05 -08:00
Sarah Wooders
5147e83011 Add chat ID to message envelope for lettabot-message CLI 2026-01-28 18:57:14 -08:00
Sarah Wooders
865b2a35f1 Fix lettabot-message CLI reading wrong store field 2026-01-28 18:44:56 -08:00
Caren Thomas
ee0fbc205a feat: improve config menu UX and model selection with pagination
- Convert config menu to @clack/prompts select (arrow key navigation)
- Check both .env file and shell environment for config display
- Filter placeholder values (e.g., "your_telegram_bot_token")
- Import 'dotenv/config' so API calls work from CLI
- Add pagination to model selector (maxItems: 10, shows all models)
- Remove arbitrary limits (was 15 base + 3 BYOK, now shows all)
- Shared model-selection utility used in both onboard and config
- Better tier labels: "🆓 Free", " Premium", "💰 Pay-per-use"
- BYOK models labeled as "🔑 BYOK"
- Sort base by tier (free first), BYOK alphabetically

Inspired by letta-code's ModelSelector UX patterns.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
2026-01-28 18:41:08 -08:00
Sarah Wooders
98daace319 Update README with latest instructions, remove unused files 2026-01-28 18:21:05 -08:00
Sarah Wooders
22770e6e88 Initial commit - LettaBot multi-channel AI assistant
Co-authored-by: Cameron Pfiffer <cameron@pfiffer.org>
Co-authored-by: Caren Thomas <carenthomas@gmail.com>
Co-authored-by: Charles Packer <packercharles@gmail.com>
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2026-01-28 18:02:51 -08:00