@letta-ai/letta-code 0.1.7 → 0.1.8
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/README.md +36 -3
- package/letta.js +521 -246
- package/package.json +4 -1
- package/vendor/ink-text-input/build/index.js +1 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letta-ai/letta-code",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
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": {
|
|
@@ -22,6 +22,9 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {},
|
|
25
|
+
"optionalDependencies": {
|
|
26
|
+
"@vscode/ripgrep": "^1.17.0"
|
|
27
|
+
},
|
|
25
28
|
"devDependencies": {
|
|
26
29
|
"@types/bun": "latest",
|
|
27
30
|
"@types/diff": "^8.0.0",
|
|
@@ -93,12 +93,7 @@ function TextInput({ value: originalValue, placeholder = '', focus = true, mask,
|
|
|
93
93
|
nextCursorWidth = input.length;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
nextCursorOffset = 0;
|
|
98
|
-
}
|
|
99
|
-
if (cursorOffset > originalValue.length) {
|
|
100
|
-
nextCursorOffset = originalValue.length;
|
|
101
|
-
}
|
|
96
|
+
nextCursorOffset = Math.max(0, Math.min(nextCursorOffset, nextValue.length));
|
|
102
97
|
setState({ cursorOffset: nextCursorOffset, cursorWidth: nextCursorWidth });
|
|
103
98
|
if (typeof onCursorOffsetChange === 'function') onCursorOffsetChange(nextCursorOffset);
|
|
104
99
|
if (nextValue !== originalValue) {
|
|
@@ -112,4 +107,3 @@ export function UncontrolledTextInput({ initialValue = '', ...props }) {
|
|
|
112
107
|
const [value, setValue] = useState(initialValue);
|
|
113
108
|
return React.createElement(TextInput, { ...props, value: value, onChange: setValue });
|
|
114
109
|
}
|
|
115
|
-
|