Commit Graph

21 Commits

Author SHA1 Message Date
Cameron
361954edae feat: add political focus group demo (#12)
Co-authored-by: Letta <noreply@letta.com>
2026-01-30 11:42:20 -08:00
Cameron
f245a2120b fix: check permissionMode in handleCanUseTool for bypassPermissions (#10)
Co-authored-by: Letta <noreply@letta.com>
Co-authored-by: letta-code <248085862+letta-code@users.noreply.github.com>
Co-authored-by: Cameron <cpfiffer@users.noreply.github.com>
2026-01-30 08:11:19 -08:00
Christina Tong
c4c5106797 fix: updatedInput support and clean up types (#6) 2026-01-28 12:28:48 -08:00
github-actions[bot]
18467507e9 chore: bump version to 0.0.3 [skip ci] 2026-01-28 03:34:11 +00:00
Charles Packer
9ca5c04df0 fix: resolve CLI via package main export instead of subpath (#5)
Co-authored-by: Letta <noreply@letta.com>
2026-01-27 19:33:45 -08:00
Cameron
98a01bc071 feat: add web chat UI example (#3)
Co-authored-by: Letta <noreply@letta.com>
2026-01-27 19:29:10 -08:00
Cameron
05cf219daf feat: add Letta Code GitHub Action (#4)
Co-authored-by: Letta <noreply@letta.com>
2026-01-27 19:28:48 -08:00
Charles Packer
7818bdb89f Merge pull request #2 from letta-ai/chore/add-dependabot
chore: add dependabot config for letta-code updates
2026-01-27 16:55:43 -08:00
cpacker
d562f804e2 chore: add dependabot config for letta-code updates
Track @letta-ai/letta-code for daily version updates. Scoped to only
this dependency to avoid noise from other packages.

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

Co-Authored-By: Letta <noreply@letta.com>
2026-01-27 16:53:32 -08:00
Cameron Pfiffer
de682b0e26 fix: update all examples to use stream() instead of receive()
- dungeon-master, economics-seminar, research-team all updated
- Also improved tool output display in dungeon-master

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

Co-Authored-By: Letta <noreply@letta.com>
2026-01-27 16:37:00 -08:00
Cameron Pfiffer
acf8aa70d3 fix: cleaner tool output - use toolName, dedupe consecutive calls
- Use correct field `toolName` instead of `name`
- Only show tool name when it changes (reduces spam)
- Remove [done] output for cleaner display

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

Co-Authored-By: Letta <noreply@letta.com>
2026-01-27 16:32:12 -08:00
Cameron Pfiffer
7ea9c03137 fix: save agent ID after first interaction
Agent ID is only available after initialization (first message sent),
so move the save logic to after the interaction completes.

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

Co-Authored-By: Letta <noreply@letta.com>
2026-01-27 16:19:20 -08:00
Cameron Pfiffer
aa6149c191 fix: update examples to use stream() and haiku model
- Change session.receive() to session.stream() (API change)
- Use 'haiku' model instead of 'sonnet' (more reliable)
- Clean up debug output

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

Co-Authored-By: Letta <noreply@letta.com>
2026-01-27 16:14:29 -08:00
Cameron Pfiffer
3b4811f035 feat: add basic utility examples with agent persistence
Three practical examples showing core SDK capabilities:

- **bug-fixer**: Find and fix bugs, remembers codebase patterns
- **release-notes**: Generate release notes from git commits
- **file-organizer**: Organize directories, learns preferences

Each example uses agent persistence (getOrCreateAgent pattern) so the
agent remembers context across sessions - the key Letta differentiator.

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

Co-Authored-By: Letta <noreply@letta.com>
2026-01-27 15:51:27 -08:00
Cameron Pfiffer
d5bbce6dec feat: add multi-agent demo examples
Three demo examples showcasing multi-agent orchestration:

- **economics-seminar**: Hostile faculty panel debates AI economist presenter
- **research-team**: Coordinator, Researcher, Analyst, Writer collaboration
- **dungeon-master**: Persistent DM that creates its own game system

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

Co-Authored-By: Letta <noreply@letta.com>
2026-01-27 15:13:19 -08:00
Christina Tong
72544cb7f5 Merge pull request #1 from letta-ai/christina/allow-convo-on-create
allow new convo creation on createSession
2026-01-27 14:33:01 -08:00
christinatong01
69513ff966 allow new convo creation on createSession 2026-01-27 14:23:16 -08:00
Charles Packer
6e68cacbe5 Update README.md 2026-01-27 12:55:29 -08:00
github-actions[bot]
e18b1f6304 chore: bump version to 0.0.2 [skip ci] 2026-01-27 20:34:11 +00:00
cpacker
56e960038e fix: remove LETTA_CLI_PATH requirement from examples
SDK auto-detects CLI from installed @letta-ai/letta-code package.

👾 Generated with [Letta Code](https://letta.com)
2026-01-27 10:52:04 -08:00
cpacker
ee7cc92724 Initial release of Letta Code SDK
Programmatic control of Letta Code CLI with persistent agent memory.

Features:
- createSession() / resumeSession() / prompt() API
- resumeConversation() for multi-threaded conversations
- Multi-turn conversations with memory
- Tool execution (Bash, Read, Edit, etc.)
- System prompt and memory configuration
- Permission callbacks (canUseTool)
- Message streaming with typed events

👾 Generated with [Letta Code](https://letta.com)
2026-01-27 00:30:09 -08:00