@letta-ai/letta-code 0.32.11 → 0.32.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/channels-slack.js +135 -54
  2. package/dist/channels-slack.js.map +3 -3
  3. package/dist/mcp-client.js +2 -2
  4. package/dist/mcp-client.js.map +1 -1
  5. package/dist/types/agent/message.d.ts.map +1 -1
  6. package/dist/types/agent/subagents/manager.d.ts.map +1 -1
  7. package/dist/types/agent/subagents/subagent-process.d.ts +23 -0
  8. package/dist/types/agent/subagents/subagent-process.d.ts.map +1 -0
  9. package/dist/types/backend/api/metadata.d.ts +12 -0
  10. package/dist/types/backend/api/metadata.d.ts.map +1 -1
  11. package/dist/types/channels/slack/status-controller.d.ts +2 -0
  12. package/dist/types/channels/slack/status-controller.d.ts.map +1 -1
  13. package/dist/types/cli/helpers/error-formatter.d.ts.map +1 -1
  14. package/dist/types/cli/helpers/stream-processor.d.ts +2 -0
  15. package/dist/types/cli/helpers/stream-processor.d.ts.map +1 -1
  16. package/dist/types/telemetry/index.d.ts +16 -1
  17. package/dist/types/telemetry/index.d.ts.map +1 -1
  18. package/dist/types/tools/impl/process_manager.d.ts +2 -0
  19. package/dist/types/tools/impl/process_manager.d.ts.map +1 -1
  20. package/dist/types/tools/impl/task-stop.d.ts.map +1 -1
  21. package/dist/types/tools/impl/task.d.ts.map +1 -1
  22. package/dist/types/utils/cloud-api-shutdown.d.ts +17 -0
  23. package/dist/types/utils/cloud-api-shutdown.d.ts.map +1 -0
  24. package/dist/types/websocket/listener/constants.d.ts +1 -0
  25. package/dist/types/websocket/listener/constants.d.ts.map +1 -1
  26. package/letta.js +2 -2
  27. package/package.json +1 -1
  28. package/scripts/build-pypi.py +172 -0
  29. package/scripts/isolated-unit-tests.json +5 -0
  30. package/scripts/smoke-pypi.py +236 -0
  31. package/scripts/source-file-size-baseline.json +1 -1
  32. package/scripts/stage-pypi-deps.mjs +90 -0
  33. package/skills/finding-agents/SKILL.md +6 -2
  34. package/skills/letta-guide/SKILL.md +21 -2
  35. package/skills/self-configuration/SKILL.md +11 -1
  36. package/skills/converting-mcps-to-skills/SKILL.md +0 -202
  37. package/skills/converting-mcps-to-skills/references/skill-templates.md +0 -141
  38. package/skills/converting-mcps-to-skills/scripts/mcp-http.ts +0 -980
  39. package/skills/converting-mcps-to-skills/scripts/mcp-stdio.ts +0 -494
@@ -1,141 +0,0 @@
1
- # Skill Templates for MCP Servers
2
-
3
- When to create a dedicated skill:
4
- - **One-off use**: No skill needed - just use `converting-mcps-to-skills` scripts directly
5
- - **Repeated use**: Create a self-contained skill with customized scripts
6
-
7
- Skills should be self-contained per the [Agent Skills spec](https://agentskills.io/specification).
8
-
9
- ## Naming Rules (from Agent Skills spec)
10
-
11
- The `name` field must:
12
- - Be lowercase letters, numbers, and hyphens only (`a-z`, `0-9`, `-`)
13
- - Be 1-64 characters
14
- - Not start or end with a hyphen
15
- - Not contain consecutive hyphens (`--`)
16
- - Match the parent directory name exactly
17
-
18
- Examples: `using-github-mcp`, `mcp-filesystem`, `slack-mcp`
19
-
20
- ## Skill Template
21
-
22
- Use this template when creating a self-contained skill for an MCP server.
23
-
24
- ### Directory Structure
25
-
26
- ```
27
- using-<server-name>/
28
- ├── SKILL.md
29
- └── scripts/
30
- └── <server>.ts # Customized client (copied from converting-mcps-to-skills)
31
- ```
32
-
33
- ### SKILL.md Template
34
-
35
- ```markdown
36
- ---
37
- name: using-<server-name>
38
- description: <What the server does>. Use when <trigger conditions>.
39
- # Optional fields:
40
- # license: MIT
41
- # compatibility: Requires network access to <service>
42
- ---
43
-
44
- # Using <Server Name>
45
-
46
- <Brief description>
47
-
48
- ## Prerequisites
49
-
50
- - <Requirements>
51
-
52
- ## Quick Start
53
-
54
- ```bash
55
- # Set API key (if needed)
56
- export <SERVER>_API_KEY="your-key"
57
-
58
- # List tools
59
- npx tsx <skill-path>/scripts/<server>.ts list-tools
60
-
61
- # Call a tool
62
- npx tsx <skill-path>/scripts/<server>.ts call <tool> '{"arg":"value"}'
63
- ```
64
-
65
- ## Available Tools
66
-
67
- <Document tools with examples>
68
-
69
- ## Environment Variables
70
-
71
- - `<SERVER>_API_KEY` - API key for authentication
72
- - `<SERVER>_URL` - Override server URL (default: <default-url>)
73
- ```
74
-
75
- ### Script Template (scripts/<server>.ts)
76
-
77
- Copy the HTTP client from `converting-mcps-to-skills/scripts/mcp-http.ts` (or `mcp-stdio.ts` for stdio servers) and customize:
78
-
79
- 1. Set `DEFAULT_URL` to this server's URL
80
- 2. Rename the API key env var (e.g., `GITHUB_MCP_KEY` instead of generic)
81
- 3. Optionally simplify the CLI for common operations
82
-
83
- The copied code is self-contained - no external dependencies for HTTP transport.
84
-
85
- ```typescript
86
- #!/usr/bin/env npx tsx
87
- /**
88
- * <Server Name> CLI - Self-contained MCP client
89
- */
90
-
91
- // Customize these for your server
92
- const DEFAULT_URL = "<server-url>";
93
- const API_KEY = process.env.<SERVER>_API_KEY;
94
-
95
- // Copy the rest of mcp-http.ts here and adjust as needed
96
- // ...
97
- ```
98
-
99
- ## Example: Self-Contained Filesystem Skill
100
-
101
- A complete example of a self-contained skill for the MCP filesystem server:
102
-
103
- ```
104
- using-mcp-filesystem/
105
- ├── SKILL.md
106
- └── scripts/
107
- └── filesystem.ts # Copied and customized from mcp-stdio.ts
108
- ```
109
-
110
- **SKILL.md:**
111
- ```markdown
112
- ---
113
- name: using-mcp-filesystem
114
- description: Access local filesystem via MCP. Use when user wants to read, write, or search files via MCP protocol.
115
- ---
116
-
117
- # Using MCP Filesystem Server
118
-
119
- Access local files via the official MCP filesystem server.
120
-
121
- ## Quick Start
122
-
123
- ```bash
124
- npx tsx <skill-path>/scripts/filesystem.ts list-tools
125
- npx tsx <skill-path>/scripts/filesystem.ts call read_file '{"path":"./README.md"}'
126
- ```
127
-
128
- ## Available Tools
129
-
130
- - `read_file` - Read file contents
131
- - `write_file` - Write content to file
132
- - `list_directory` - List directory contents
133
- - `search_files` - Search for files by pattern
134
- - `get_file_info` - Get file metadata
135
- ```
136
-
137
- **scripts/filesystem.ts:**
138
- Copy `converting-mcps-to-skills/scripts/mcp-stdio.ts` and set the default command to:
139
- ```typescript
140
- const DEFAULT_COMMAND = "npx -y @modelcontextprotocol/server-filesystem .";
141
- ```