@letta-ai/letta-code 0.27.21 → 0.27.23

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.27.21",
3
+ "version": "0.27.23",
4
4
  "description": "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
5
5
  "type": "module",
6
6
  "packageManager": "bun@1.3.0",
@@ -37,7 +37,8 @@ if (letta.capabilities.ui.panels) {
37
37
 
38
38
  `order` is a signed coordinate around the input:
39
39
 
40
- - `order > 0` — above the input, higher nearer the top (default `100`).
40
+ - `order > 1` — additive panels above the input, higher nearer the top (default `100`).
41
+ - `order === 1` — replaces the default product-status row (currently dreaming/reflection status). Use this only when intentionally overriding that row; otherwise use `order > 1`.
41
42
  - `order === 0` — the primary line just below the input, overriding the built-in `agent · model`. This is the statusline slot; use `customizing-statusline` for that work.
42
43
  - `order < 0` — stacks below the primary line, `-1` closest.
43
44
 
@@ -50,13 +51,15 @@ render(ctx: {
50
51
  width: number;
51
52
  agent: { id, name };
52
53
  model: { id, displayName, provider, reasoningEffort };
54
+ subagents: { list(): SubagentLifecycleItem[] };
53
55
  row(left, right, width): string;
54
56
  columns(parts: string[], width): string;
57
+ link(label: string, url: string): string;
55
58
  chalk: ChalkInstance;
56
59
  }): string | string[]
57
60
  ```
58
61
 
59
- `row`/`columns` are ANSI-aware, so chalk-colored segments align correctly.
62
+ `row`/`columns` are ANSI-aware, so chalk-colored segments and OSC-8 links align correctly. Use `link(label, url)` when a compact label should hyperlink to a URL without rendering the whole URL.
60
63
 
61
64
  Close panels when they are transient, and close/replace long-lived panels from the activation disposer if reload should remove them.
62
65
 
@@ -52,7 +52,8 @@ letta.ui.closePanel(id: string): void
52
52
 
53
53
  `order` is a signed coordinate around the input:
54
54
 
55
- - `order > 0` — above the input. Higher numbers render nearer the top. Default when omitted is `100`.
55
+ - `order > 1` — additive panels above the input. Higher numbers render nearer the top. Default when omitted is `100`.
56
+ - `order === 1` — replaces the default product-status row (currently dreaming/reflection status). Use this only when intentionally overriding that row; otherwise use `order > 1`.
56
57
  - `order === 0` — the primary line just below the input. Overrides the built-in `agent · model`. Use this for the statusline.
57
58
  - `order < 0` — stacks below the primary line. `-1` sits closest to it, more-negative lower.
58
59
 
@@ -65,13 +66,15 @@ render(ctx: {
65
66
  width: number; // visible columns available to the panel
66
67
  agent: { id, name }; // live at render time
67
68
  model: { id, displayName, provider, reasoningEffort };
69
+ subagents: { list(): SubagentLifecycleItem[] };
68
70
  row(left, right, width): string; // left + right, right-aligned, ANSI-aware
69
71
  columns(parts: string[], width): string; // spread parts evenly, ANSI-aware
72
+ link(label: string, url: string): string; // compact OSC-8 hyperlink helper
70
73
  chalk: ChalkInstance; // color helper
71
74
  }): string | string[]
72
75
  ```
73
76
 
74
- - `row`/`columns` measure visible width with ANSI stripped, so chalk-colored segments align correctly.
77
+ - `row`/`columns` measure visible width with ANSI stripped, so chalk-colored segments and links align correctly.
75
78
  - The host clips each line to `width` and caps total height; the mod owns layout within that.
76
79
 
77
80
  ## Render rules