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)
This commit is contained in:
cpacker
2026-01-27 00:30:09 -08:00
commit ee7cc92724
15 changed files with 2899 additions and 0 deletions

40
package.json Normal file
View File

@@ -0,0 +1,40 @@
{
"name": "@letta-ai/letta-code-sdk",
"version": "0.0.1",
"description": "SDK for programmatic control of Letta Code CLI",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "bun run build.ts",
"dev": "bun run build.ts --watch",
"check": "tsc --noEmit",
"test": "bun test"
},
"repository": {
"type": "git",
"url": "https://github.com/letta-ai/letta-code-sdk"
},
"dependencies": {
"@letta-ai/letta-code": "latest"
},
"devDependencies": {
"@types/bun": "latest",
"@types/node": "^22.0.0",
"typescript": "^5.7.0"
},
"publishConfig": {
"access": "public"
},
"license": "Apache-2.0"
}