Commit Graph

34 Commits

Author SHA1 Message Date
Christina Tong
7e9d19d420 Update README.md 2026-02-04 11:09:09 -08:00
Christina Tong
9d7206d27c chore: update README based on new docs (#23) 2026-02-04 10:51:22 -08:00
github-actions[bot]
5dd6e464ff chore: bump version to 0.0.5 [skip ci] 2026-02-04 01:57:56 +00:00
Christina Tong
5f37e513c8 fix: memory blocks config on createAgent (#21) 2026-02-03 16:44:05 -08:00
Christina Tong
4cb8af7be8 feat: refactor options types for createAgent and createSession (#20) 2026-02-03 15:27:32 -08:00
Cameron
fa4a6340e7 feat: add image support to send() (#14)
Co-authored-by: Letta <noreply@letta.com>
2026-02-02 17:59:40 -08:00
cpacker
de14506f49 chore(release): enable autogenerated release notes 2026-01-31 15:50:46 -08:00
Charles Packer
be93940942 Update README.md 2026-01-31 15:32:28 -08:00
github-actions[bot]
2244f7d716 chore: bump version to 0.0.4 [skip ci] 2026-01-31 21:10:36 +00:00
Charles Packer
bb1d68e678 Update README.md 2026-01-31 13:09:13 -08:00
Christina Tong
74f4fb660d update readme and examples (#15) 2026-01-30 17:25:18 -08:00
Christina Tong
0e657e5109 feat: add createAgent and refactor (#13) 2026-01-30 17:03:47 -08:00
Cameron
b26c8eadaa fix: log CLI stderr and exit codes for debugging (#11)
Co-authored-by: Letta <noreply@letta.com>
2026-01-30 12:13:29 -08:00
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