@letta-ai/letta-code 0.18.1 → 0.18.2
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/letta.js +3 -3
- package/package.json +1 -1
- package/vendor/ink/build/hooks/use-input.js +1 -1
package/letta.js
CHANGED
|
@@ -3238,7 +3238,7 @@ var package_default;
|
|
|
3238
3238
|
var init_package = __esm(() => {
|
|
3239
3239
|
package_default = {
|
|
3240
3240
|
name: "@letta-ai/letta-code",
|
|
3241
|
-
version: "0.18.
|
|
3241
|
+
version: "0.18.2",
|
|
3242
3242
|
description: "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
|
|
3243
3243
|
type: "module",
|
|
3244
3244
|
bin: {
|
|
@@ -33064,7 +33064,7 @@ var import_react16, IS_LINUX, CSI_U_WITH_TRAILING_NEWLINE_PATTERN, CSI_PROTOCOL_
|
|
|
33064
33064
|
const rawHex = typeof data === "string" ? [...data].map((c) => "0x" + c.charCodeAt(0).toString(16).padStart(2, "0")).join(" ") : "(non-string)";
|
|
33065
33065
|
console.error(`[debug:ink-keypress] raw=${rawHex} name="${keypress.name}" seq="${keypress.sequence}" key={escape:${key.escape},tab:${key.tab},shift:${key.shift},ctrl:${key.ctrl},meta:${key.meta}}`);
|
|
33066
33066
|
}
|
|
33067
|
-
let input = keypress.ctrl ? keypress.name : keypress.sequence;
|
|
33067
|
+
let input = (keypress.ctrl ? keypress.name : keypress.sequence) ?? "";
|
|
33068
33068
|
const seq = typeof keypress.sequence === "string" ? keypress.sequence : "";
|
|
33069
33069
|
if (seq === "\x1B[I" || seq === "\x1B[O" || input === "[I" || input === "[O" || /^(?:\[I|\[O)+$/.test(input || "")) {
|
|
33070
33070
|
return;
|
|
@@ -138178,4 +138178,4 @@ Error during initialization: ${message}`);
|
|
|
138178
138178
|
}
|
|
138179
138179
|
main();
|
|
138180
138180
|
|
|
138181
|
-
//# debugId=
|
|
138181
|
+
//# debugId=36B546B2DFCB0B9A64756E2164756E21
|
package/package.json
CHANGED
|
@@ -218,7 +218,7 @@ const useInput = (inputHandler, options = {}) => {
|
|
|
218
218
|
console.error(`[debug:ink-keypress] raw=${rawHex} name="${keypress.name}" seq="${keypress.sequence}" key={escape:${key.escape},tab:${key.tab},shift:${key.shift},ctrl:${key.ctrl},meta:${key.meta}}`);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
let input = keypress.ctrl ? keypress.name : keypress.sequence;
|
|
221
|
+
let input = (keypress.ctrl ? keypress.name : keypress.sequence) ?? '';
|
|
222
222
|
const seq = typeof keypress.sequence === 'string' ? keypress.sequence : '';
|
|
223
223
|
// Filter xterm focus in/out sequences (ESC[I / ESC[O)
|
|
224
224
|
if (seq === '\u001B[I' || seq === '\u001B[O' || input === '[I' || input === '[O' || /^(?:\[I|\[O)+$/.test(input || '')) {
|