@letta-ai/letta-code 0.10.1 → 0.10.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-code",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "description": "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -52,7 +52,7 @@
52
52
  "typecheck": "tsc --noEmit",
53
53
  "check": "bun run scripts/check.js",
54
54
  "dev": "bun --loader:.md=text --loader:.mdx=text --loader:.txt=text run src/index.ts",
55
- "build": "bun run build.js",
55
+ "build": "node scripts/postinstall-patches.js && bun run build.js",
56
56
  "prepare": "bun run build",
57
57
  "postinstall": "node scripts/postinstall-patches.js"
58
58
  },
@@ -14,6 +14,9 @@ function isControlSequence(input, key) {
14
14
  if (key.tab || (key.ctrl && input === 'c')) return true;
15
15
  if (key.shift && key.tab) return true;
16
16
 
17
+ // Modifier+Enter - handled by parent for newline insertion
18
+ if (key.return && (key.shift || key.meta || key.ctrl)) return true;
19
+
17
20
  // Ctrl+W (delete word) - handled by parent component
18
21
  if (key.ctrl && (input === 'w' || input === 'W')) return true;
19
22
 
@@ -28,6 +31,14 @@ function isControlSequence(input, key) {
28
31
  // CSI sequences (ESC[...), Option+Delete (ESC + DEL), and other multi-char escape sequences
29
32
  if (input && typeof input === 'string' && input.startsWith('\x1b') && input.length > 1) return true;
30
33
 
34
+ // Forward delete (fn+Delete on macOS): handled by parent's raw input handler
35
+ // Check timestamp to avoid double-processing (globalThis.__lettaForwardDeleteTimestamp)
36
+ // Only forward delete sets this; regular backspace doesn't, so backspace still works here
37
+ if (key.delete && globalThis.__lettaForwardDeleteTimestamp &&
38
+ (Date.now() - globalThis.__lettaForwardDeleteTimestamp) < 100) {
39
+ return true;
40
+ }
41
+
31
42
  return false;
32
43
  }
33
44