@letta-ai/letta-code 0.23.1 → 0.23.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 +17 -4
- package/package.json +1 -1
package/letta.js
CHANGED
|
@@ -3269,7 +3269,7 @@ var package_default;
|
|
|
3269
3269
|
var init_package = __esm(() => {
|
|
3270
3270
|
package_default = {
|
|
3271
3271
|
name: "@letta-ai/letta-code",
|
|
3272
|
-
version: "0.23.
|
|
3272
|
+
version: "0.23.2",
|
|
3273
3273
|
description: "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
|
|
3274
3274
|
type: "module",
|
|
3275
3275
|
bin: {
|
|
@@ -41452,10 +41452,22 @@ var init_runtime2 = __esm(() => {
|
|
|
41452
41452
|
// src/channels/slack/adapter.ts
|
|
41453
41453
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
41454
41454
|
import { basename as basename4, extname as extname3 } from "node:path";
|
|
41455
|
+
function isConstructorFunction(value) {
|
|
41456
|
+
return typeof value === "function";
|
|
41457
|
+
}
|
|
41458
|
+
function resolveSlackAppModule(value) {
|
|
41459
|
+
if (!value || typeof value !== "object") {
|
|
41460
|
+
return null;
|
|
41461
|
+
}
|
|
41462
|
+
const app = Reflect.get(value, "App");
|
|
41463
|
+
return isConstructorFunction(app) ? app : null;
|
|
41464
|
+
}
|
|
41455
41465
|
function resolveSlackAppConstructor(mod) {
|
|
41456
|
-
const
|
|
41466
|
+
const defaultExport = mod && typeof mod === "object" ? Reflect.get(mod, "default") : undefined;
|
|
41467
|
+
const nestedDefault = defaultExport && typeof defaultExport === "object" ? Reflect.get(defaultExport, "default") : undefined;
|
|
41468
|
+
const App2 = resolveSlackAppModule(mod) ?? resolveSlackAppModule(defaultExport) ?? resolveSlackAppModule(nestedDefault) ?? (isConstructorFunction(defaultExport) ? defaultExport : null);
|
|
41457
41469
|
if (!App2) {
|
|
41458
|
-
throw new Error('Installed Slack runtime did not export
|
|
41470
|
+
throw new Error('Installed Slack runtime did not export constructor "App".');
|
|
41459
41471
|
}
|
|
41460
41472
|
return App2;
|
|
41461
41473
|
}
|
|
@@ -92443,6 +92455,7 @@ async function handleCwdChange(msg, socket, runtime) {
|
|
|
92443
92455
|
if (!normalizedPath.startsWith(currentRoot)) {
|
|
92444
92456
|
setIndexRoot(normalizedPath);
|
|
92445
92457
|
}
|
|
92458
|
+
ensureFileIndex2();
|
|
92446
92459
|
emitDeviceStatusUpdate(socket, runtime, {
|
|
92447
92460
|
agent_id: agentId,
|
|
92448
92461
|
conversation_id: conversationId
|
|
@@ -162788,4 +162801,4 @@ Error during initialization: ${message}`);
|
|
|
162788
162801
|
}
|
|
162789
162802
|
main();
|
|
162790
162803
|
|
|
162791
|
-
//# debugId=
|
|
162804
|
+
//# debugId=50A69FA1631D153664756E2164756E21
|