@letta-ai/letta-code 0.34.71 → 0.34.72
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/dist/mcp-client.js +2 -2
- package/dist/mcp-client.js.map +1 -1
- package/dist/mcp-oauth.js +2 -2
- package/dist/mcp-oauth.js.map +1 -1
- package/dist/types/agent/turn-recovery-policy.d.ts +1 -0
- package/dist/types/agent/turn-recovery-policy.d.ts.map +1 -1
- package/dist/types/websocket/listener/image-policy.d.ts +2 -0
- package/dist/types/websocket/listener/image-policy.d.ts.map +1 -1
- package/dist/types/websocket/listener/queue.d.ts +3 -1
- package/dist/types/websocket/listener/queue.d.ts.map +1 -1
- package/letta.js +145 -86
- package/npm-shrinkwrap.json +22 -22
- package/package.json +2 -2
|
@@ -7,6 +7,7 @@ export declare function isApprovalPendingError(detail: unknown): boolean;
|
|
|
7
7
|
export declare function isConversationBusyError(detail: unknown): boolean;
|
|
8
8
|
export declare function extractConversationBusyRunId(detail: unknown): string | null;
|
|
9
9
|
export declare function isEmptyResponseError(detail: unknown): boolean;
|
|
10
|
+
export declare function isProviderStreamTimeoutDetail(detail: unknown): boolean;
|
|
10
11
|
export declare function isRetryableProviderErrorDetail(detail: unknown): boolean;
|
|
11
12
|
export declare function isNonRetryableProviderErrorDetail(detail: unknown): boolean;
|
|
12
13
|
export declare function shouldRetryRunMetadataError(errorType: unknown, detail: unknown): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"turn-recovery-policy.d.ts","sourceRoot":"","sources":["../../../src/agent/turn-recovery-policy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAGvF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAoG1D,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,OAAO,GAAG,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@@
|
|
|
1
|
+
import type { MessageCreate } from "@letta-ai/letta-client/resources/agents/agents";
|
|
1
2
|
import { type ImageFailureModesByMessageOtid } from "../../utils/message-image-normalization";
|
|
2
3
|
import type { IncomingMessage } from "./types";
|
|
4
|
+
export declare function hasImageContent(content: MessageCreate["content"]): boolean;
|
|
3
5
|
export declare function getInboundImageFailureMode(incoming?: Pick<IncomingMessage, "imageFailureMode">): "strict" | "drop";
|
|
4
6
|
export declare function getInboundImageFailureModes(incoming: Pick<IncomingMessage, "imageFailureMode" | "messages">): ImageFailureModesByMessageOtid | undefined;
|
|
5
7
|
//# sourceMappingURL=image-policy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-policy.d.ts","sourceRoot":"","sources":["../../../../src/websocket/listener/image-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,wBAAgB,0BAA0B,CACxC,QAAQ,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,kBAAkB,CAAC,GACnD,QAAQ,GAAG,MAAM,CAEnB;AAED,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,IAAI,CAAC,eAAe,EAAE,kBAAkB,GAAG,UAAU,CAAC,GAC/D,8BAA8B,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"image-policy.d.ts","sourceRoot":"","sources":["../../../../src/websocket/listener/image-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,wBAAgB,eAAe,CAAC,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,GAAG,OAAO,CAI1E;AAED,wBAAgB,0BAA0B,CACxC,QAAQ,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,kBAAkB,CAAC,GACnD,QAAQ,GAAG,MAAM,CAEnB;AAED,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,IAAI,CAAC,eAAe,EAAE,kBAAkB,GAAG,UAAU,CAAC,GAC/D,8BAA8B,GAAG,SAAS,CAS5C"}
|
|
@@ -10,7 +10,9 @@ export declare function getQueueItemsScope(items: QueueItem[]): {
|
|
|
10
10
|
conversation_id?: string;
|
|
11
11
|
};
|
|
12
12
|
export declare function shouldQueueInboundMessage(parsed: IncomingMessage): boolean;
|
|
13
|
-
export declare function consumeQueuedTurn(runtime: ConversationRuntime
|
|
13
|
+
export declare function consumeQueuedTurn(runtime: ConversationRuntime, options?: {
|
|
14
|
+
continuation?: boolean;
|
|
15
|
+
}): {
|
|
14
16
|
dequeuedBatch: DequeuedBatch;
|
|
15
17
|
queuedTurn: IncomingMessage;
|
|
16
18
|
} | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../../src/websocket/listener/queue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,aAAa,EAEb,SAAS,EACV,MAAM,uBAAuB,CAAC;AA4B/B,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EAEf,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAQA;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAWA;
|
|
1
|
+
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../../src/websocket/listener/queue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,aAAa,EAEb,SAAS,EACV,MAAM,uBAAuB,CAAC;AA4B/B,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EAEf,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAQA;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAWA;AAyJD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAE1E;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,mBAAmB,EAC5B,OAAO,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,GACnC;IACD,aAAa,EAAE,aAAa,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;CAC7B,GAAG,IAAI,CAkJP;AA2MD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,mBAAmB,EAC5B,MAAM,EAAE,iBAAiB,EACzB,IAAI,EAAE,oBAAoB,EAC1B,iBAAiB,EAAE,CACjB,UAAU,EAAE,eAAe,EAC3B,aAAa,EAAE,aAAa,KACzB,OAAO,CAAC,IAAI,CAAC,GACjB,IAAI,CA2BN"}
|
package/letta.js
CHANGED
|
@@ -6142,7 +6142,7 @@ var package_default;
|
|
|
6142
6142
|
var init_package = __esm(() => {
|
|
6143
6143
|
package_default = {
|
|
6144
6144
|
name: "@letta-ai/letta-code",
|
|
6145
|
-
version: "0.34.
|
|
6145
|
+
version: "0.34.72",
|
|
6146
6146
|
lettaStartupLogProtocol: 1,
|
|
6147
6147
|
lettaConfigDirProtocol: 1,
|
|
6148
6148
|
description: "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
|
|
@@ -6429,7 +6429,7 @@ var init_package = __esm(() => {
|
|
|
6429
6429
|
},
|
|
6430
6430
|
lettaLifecycleProtocol: 1,
|
|
6431
6431
|
lettaRuntimeGraphProtocol: 1,
|
|
6432
|
-
lettaRuntimeGraphSha512: "sha512-
|
|
6432
|
+
lettaRuntimeGraphSha512: "sha512-SoUJCWzp2p3N/h/S39QON/TRiQKI3RO2K2BTagcHNuJynxAOL9HR9gTA1JyBv5ENq+/4US4KrCaGcA35peIbjA==",
|
|
6433
6433
|
patchedDependencies: {
|
|
6434
6434
|
"@earendil-works/pi-ai@1.5.2": "patches/@earendil-works%2Fpi-ai@1.5.2.patch"
|
|
6435
6435
|
}
|
|
@@ -104938,6 +104938,9 @@ function isEmptyResponseError(detail) {
|
|
|
104938
104938
|
return false;
|
|
104939
104939
|
return detail.toLowerCase().includes(EMPTY_RESPONSE_DETAIL_FRAGMENT);
|
|
104940
104940
|
}
|
|
104941
|
+
function isProviderStreamTimeoutDetail(detail) {
|
|
104942
|
+
return typeof detail === "string" && /\bstream sent no output within|\bstream(?:ing)? (?:timed out|timeout)\b/i.test(detail);
|
|
104943
|
+
}
|
|
104941
104944
|
function isRetryableProviderErrorDetail(detail) {
|
|
104942
104945
|
if (isCloudflareEdge52xDetail(detail))
|
|
104943
104946
|
return true;
|
|
@@ -104960,7 +104963,7 @@ function shouldRetryRunMetadataError(errorType, detail) {
|
|
|
104960
104963
|
const nonRetryableErrorType = isNonRetryableRunErrorType(errorType);
|
|
104961
104964
|
const nonRetryableQuotaDetail = hasNonRetryableQuotaDetail(detail);
|
|
104962
104965
|
const retryable429Detail = typeof detail === "string" && RETRYABLE_429_PATTERN.test(detail);
|
|
104963
|
-
const retryableDetail = isRetryableProviderErrorDetail(detail);
|
|
104966
|
+
const retryableDetail = isRetryableProviderErrorDetail(detail) || isProviderStreamTimeoutDetail(detail);
|
|
104964
104967
|
const nonRetryableDetail = isNonRetryableProviderErrorDetail(detail);
|
|
104965
104968
|
if (nonRetryableErrorType)
|
|
104966
104969
|
return false;
|
|
@@ -203466,7 +203469,7 @@ var init_mcp_client = __esm(() => {
|
|
|
203466
203469
|
init_streamableHttp();
|
|
203467
203470
|
DEFAULT_CLIENT_INFO = {
|
|
203468
203471
|
name: "letta-code",
|
|
203469
|
-
version: "0.34.
|
|
203472
|
+
version: "0.34.72"
|
|
203470
203473
|
};
|
|
203471
203474
|
});
|
|
203472
203475
|
|
|
@@ -241980,7 +241983,7 @@ class CodexAppServerClient {
|
|
|
241980
241983
|
await this.request("initialize", {
|
|
241981
241984
|
clientInfo: {
|
|
241982
241985
|
name: "letta-code",
|
|
241983
|
-
version: "0.34.
|
|
241986
|
+
version: "0.34.72"
|
|
241984
241987
|
},
|
|
241985
241988
|
capabilities: null
|
|
241986
241989
|
});
|
|
@@ -246508,7 +246511,7 @@ async function fetchParentConversationMessages(params) {
|
|
|
246508
246511
|
}
|
|
246509
246512
|
return messages.reverse();
|
|
246510
246513
|
}
|
|
246511
|
-
function
|
|
246514
|
+
function contentText3(content) {
|
|
246512
246515
|
if (typeof content === "string")
|
|
246513
246516
|
return content;
|
|
246514
246517
|
if (!Array.isArray(content))
|
|
@@ -246534,7 +246537,7 @@ function renderToolCall(call) {
|
|
|
246534
246537
|
}
|
|
246535
246538
|
function renderToolResult(result3) {
|
|
246536
246539
|
const raw2 = result3.tool_return ?? result3.func_response;
|
|
246537
|
-
const text2 = typeof raw2 === "string" ? raw2 :
|
|
246540
|
+
const text2 = typeof raw2 === "string" ? raw2 : contentText3(raw2) || (raw2 == null ? "" : JSON.stringify(raw2));
|
|
246538
246541
|
return {
|
|
246539
246542
|
type: "tool_result",
|
|
246540
246543
|
call_id: result3.tool_call_id ?? undefined,
|
|
@@ -246570,11 +246573,11 @@ function userEvents(text2, speaker) {
|
|
|
246570
246573
|
function renderMessage(message2) {
|
|
246571
246574
|
switch (message2.message_type) {
|
|
246572
246575
|
case "user_message": {
|
|
246573
|
-
const text2 =
|
|
246576
|
+
const text2 = contentText3(message2.content).replace(SYSTEM_REMINDER_PATTERN, "").trim();
|
|
246574
246577
|
return userEvents(text2, message2.name ?? undefined);
|
|
246575
246578
|
}
|
|
246576
246579
|
case "assistant_message": {
|
|
246577
|
-
const text2 =
|
|
246580
|
+
const text2 = contentText3(message2.content).trim();
|
|
246578
246581
|
return text2 ? [
|
|
246579
246582
|
{
|
|
246580
246583
|
type: "message",
|
|
@@ -259300,11 +259303,14 @@ function getListenerBlockedReason(lifecycle, pendingApprovalsLen) {
|
|
|
259300
259303
|
}
|
|
259301
259304
|
|
|
259302
259305
|
// src/websocket/listener/image-policy.ts
|
|
259306
|
+
function hasImageContent(content) {
|
|
259307
|
+
return Array.isArray(content) && content.some((part) => part.type === "image");
|
|
259308
|
+
}
|
|
259303
259309
|
function getInboundImageFailureMode(incoming) {
|
|
259304
259310
|
return incoming?.imageFailureMode ?? "strict";
|
|
259305
259311
|
}
|
|
259306
259312
|
function getInboundImageFailureModes(incoming) {
|
|
259307
|
-
return getInboundImageFailureMode(incoming) === "drop" ? buildImageFailureModesByMessageOtid(incoming.messages, "drop") : undefined;
|
|
259313
|
+
return getInboundImageFailureMode(incoming) === "drop" ? buildImageFailureModesByMessageOtid(incoming.messages.filter((message2) => ("content" in message2) && hasImageContent(message2.content)), "drop") : undefined;
|
|
259308
259314
|
}
|
|
259309
259315
|
var init_image_policy = __esm(() => {
|
|
259310
259316
|
init_message_image_normalization();
|
|
@@ -259343,7 +259349,7 @@ function getBatchActingUserId(items) {
|
|
|
259343
259349
|
}
|
|
259344
259350
|
return actingUserId;
|
|
259345
259351
|
}
|
|
259346
|
-
function buildQueuedTurnMessage(runtime, batch) {
|
|
259352
|
+
function buildQueuedTurnMessage(runtime, batch, imageFailureMode) {
|
|
259347
259353
|
let template2;
|
|
259348
259354
|
const messages = [];
|
|
259349
259355
|
const durableInputIdentities = [];
|
|
@@ -259397,6 +259403,7 @@ function buildQueuedTurnMessage(runtime, batch) {
|
|
|
259397
259403
|
agentId: scopeItem?.agentId ?? runtime.agentId ?? undefined,
|
|
259398
259404
|
conversationId: scopeItem?.conversationId ?? runtime.conversationId,
|
|
259399
259405
|
...template2,
|
|
259406
|
+
imageFailureMode,
|
|
259400
259407
|
mcpOriginatorSuperRunId,
|
|
259401
259408
|
...processOwnedTurn ? { processOwnedTurn: true } : {},
|
|
259402
259409
|
actingUserId: batchActingUserId ?? undefined,
|
|
@@ -259425,7 +259432,7 @@ function getDequeuedClientMessageIds(runtime, batch) {
|
|
|
259425
259432
|
function shouldQueueInboundMessage(parsed) {
|
|
259426
259433
|
return parsed.messages.some((payload) => ("content" in payload));
|
|
259427
259434
|
}
|
|
259428
|
-
function consumeQueuedTurn(runtime) {
|
|
259435
|
+
function consumeQueuedTurn(runtime, options) {
|
|
259429
259436
|
const queuedItems = runtime.queueRuntime.peekReady();
|
|
259430
259437
|
const firstQueuedItem = queuedItems[0];
|
|
259431
259438
|
if (!firstQueuedItem) {
|
|
@@ -259440,6 +259447,9 @@ function consumeQueuedTurn(runtime) {
|
|
|
259440
259447
|
let batchImageFailureMode = null;
|
|
259441
259448
|
let batchPreferences = JSON.stringify(getStoredClientPreferences(runtime.agentId, runtime.conversationId));
|
|
259442
259449
|
const isNoCoalesce = (candidate) => candidate.kind === "message" && candidate.noCoalesce === true;
|
|
259450
|
+
if (options?.continuation && isNoCoalesce(firstQueuedItem)) {
|
|
259451
|
+
return null;
|
|
259452
|
+
}
|
|
259443
259453
|
for (const item of queuedItems) {
|
|
259444
259454
|
if (!hasSameQueueScope(firstQueuedItem, item)) {
|
|
259445
259455
|
break;
|
|
@@ -259460,11 +259470,14 @@ function consumeQueuedTurn(runtime) {
|
|
|
259460
259470
|
break;
|
|
259461
259471
|
}
|
|
259462
259472
|
batchConnectionId ??= itemConnectionId;
|
|
259463
|
-
const
|
|
259464
|
-
if (
|
|
259465
|
-
|
|
259473
|
+
const hasImages = incoming ? incoming.messages.some((message2) => ("content" in message2) && hasImageContent(message2.content)) : hasImageContent(item.content);
|
|
259474
|
+
if (hasImages) {
|
|
259475
|
+
const itemImageFailureMode = getInboundImageFailureMode(incoming);
|
|
259476
|
+
if (batchImageFailureMode !== null && itemImageFailureMode !== batchImageFailureMode) {
|
|
259477
|
+
break;
|
|
259478
|
+
}
|
|
259479
|
+
batchImageFailureMode = itemImageFailureMode;
|
|
259466
259480
|
}
|
|
259467
|
-
batchImageFailureMode = itemImageFailureMode;
|
|
259468
259481
|
}
|
|
259469
259482
|
queueLen += 1;
|
|
259470
259483
|
if (item.kind === "message") {
|
|
@@ -259507,7 +259520,7 @@ function consumeQueuedTurn(runtime) {
|
|
|
259507
259520
|
}
|
|
259508
259521
|
}
|
|
259509
259522
|
const clientMessageIds = getDequeuedClientMessageIds(runtime, dequeuedBatch);
|
|
259510
|
-
const queuedTurn = buildQueuedTurnMessage(runtime, dequeuedBatch);
|
|
259523
|
+
const queuedTurn = buildQueuedTurnMessage(runtime, dequeuedBatch, batchImageFailureMode ?? undefined);
|
|
259511
259524
|
if (!queuedTurn) {
|
|
259512
259525
|
return null;
|
|
259513
259526
|
}
|
|
@@ -448432,12 +448445,12 @@ function rowToolCalls(row, index, diagnostics2) {
|
|
|
448432
448445
|
}
|
|
448433
448446
|
return calls;
|
|
448434
448447
|
}
|
|
448435
|
-
function
|
|
448448
|
+
function contentText4(content) {
|
|
448436
448449
|
if (typeof content === "string") {
|
|
448437
448450
|
if (content.startsWith(CONTENT_JSON_PREFIX)) {
|
|
448438
448451
|
const encoded = content.slice(CONTENT_JSON_PREFIX.length);
|
|
448439
448452
|
try {
|
|
448440
|
-
return
|
|
448453
|
+
return contentText4(JSON.parse(encoded));
|
|
448441
448454
|
} catch {
|
|
448442
448455
|
return encoded;
|
|
448443
448456
|
}
|
|
@@ -448523,7 +448536,7 @@ var init_hermes = __esm(() => {
|
|
|
448523
448536
|
});
|
|
448524
448537
|
};
|
|
448525
448538
|
if (row.role === "user") {
|
|
448526
|
-
const content =
|
|
448539
|
+
const content = contentText4(row.content);
|
|
448527
448540
|
if (content) {
|
|
448528
448541
|
emit({
|
|
448529
448542
|
type: "message",
|
|
@@ -448543,7 +448556,7 @@ var init_hermes = __esm(() => {
|
|
|
448543
448556
|
...timestamp ? { timestamp } : {}
|
|
448544
448557
|
});
|
|
448545
448558
|
}
|
|
448546
|
-
const content =
|
|
448559
|
+
const content = contentText4(row.content);
|
|
448547
448560
|
if (content) {
|
|
448548
448561
|
emit({
|
|
448549
448562
|
type: "message",
|
|
@@ -448566,7 +448579,7 @@ var init_hermes = __esm(() => {
|
|
|
448566
448579
|
if (row.role === "tool") {
|
|
448567
448580
|
emit({
|
|
448568
448581
|
type: "tool_result",
|
|
448569
|
-
content:
|
|
448582
|
+
content: contentText4(row.content),
|
|
448570
448583
|
...typeof row.tool_call_id === "string" && row.tool_call_id ? { callId: row.tool_call_id } : {},
|
|
448571
448584
|
...timestamp ? { timestamp } : {}
|
|
448572
448585
|
});
|
|
@@ -453539,26 +453552,29 @@ var init_turn_observers = __esm(() => {
|
|
|
453539
453552
|
async function startTurnInput(params) {
|
|
453540
453553
|
const sendParams = {
|
|
453541
453554
|
...params,
|
|
453542
|
-
buildSendOptions: () =>
|
|
453543
|
-
|
|
453544
|
-
|
|
453545
|
-
|
|
453546
|
-
|
|
453547
|
-
|
|
453548
|
-
|
|
453549
|
-
|
|
453550
|
-
|
|
453551
|
-
|
|
453552
|
-
|
|
453553
|
-
|
|
453554
|
-
|
|
453555
|
-
|
|
453556
|
-
|
|
453557
|
-
|
|
453558
|
-
|
|
453559
|
-
|
|
453560
|
-
|
|
453561
|
-
|
|
453555
|
+
buildSendOptions: () => {
|
|
453556
|
+
const actingUserId = params.getActingUserId();
|
|
453557
|
+
return {
|
|
453558
|
+
...params.agentId ? { agentId: params.agentId } : {},
|
|
453559
|
+
streamTokens: true,
|
|
453560
|
+
background: true,
|
|
453561
|
+
workingDirectory: params.workingDirectory,
|
|
453562
|
+
permissionModeState: params.permissionModeState,
|
|
453563
|
+
...params.runtime.skillSources !== undefined ? { skillSources: params.runtime.skillSources } : {},
|
|
453564
|
+
preparedToolContext: params.preparedToolContext,
|
|
453565
|
+
...params.getInput().imageFailureModesByMessageOtid ? {
|
|
453566
|
+
imageFailureModesByMessageOtid: params.getInput().imageFailureModesByMessageOtid
|
|
453567
|
+
} : {},
|
|
453568
|
+
...params.overrideModel ? { overrideModel: params.overrideModel } : {},
|
|
453569
|
+
...params.responseFormat ? { responseFormat: params.responseFormat } : {},
|
|
453570
|
+
...actingUserId !== undefined ? { actingUserId } : {},
|
|
453571
|
+
...params.getInterruptedToolCallIds().length > 0 ? {
|
|
453572
|
+
approvalNormalization: {
|
|
453573
|
+
interruptedToolCallIds: params.getInterruptedToolCallIds()
|
|
453574
|
+
}
|
|
453575
|
+
} : {}
|
|
453576
|
+
};
|
|
453577
|
+
}
|
|
453562
453578
|
};
|
|
453563
453579
|
const sender = createTurnInputSender(sendParams);
|
|
453564
453580
|
const input = params.getInput();
|
|
@@ -453571,7 +453587,11 @@ async function startTurnInput(params) {
|
|
|
453571
453587
|
stream: sender.accept(result3)
|
|
453572
453588
|
};
|
|
453573
453589
|
}
|
|
453590
|
+
function getProviderRetryLimit(errorDetail3) {
|
|
453591
|
+
return isProviderStreamTimeoutDetail(errorDetail3) ? 1 : LLM_API_ERROR_MAX_RETRIES;
|
|
453592
|
+
}
|
|
453574
453593
|
async function prepareProviderRetryInput(params) {
|
|
453594
|
+
const maxAttempts = getProviderRetryLimit(params.errorDetail);
|
|
453575
453595
|
const delayMs = getRetryDelayMs2({
|
|
453576
453596
|
category: "transient_provider",
|
|
453577
453597
|
attempt: params.attempt,
|
|
@@ -453579,10 +453599,10 @@ async function prepareProviderRetryInput(params) {
|
|
|
453579
453599
|
});
|
|
453580
453600
|
emitRecoverableRetryNotice(params.socket, params.runtime, {
|
|
453581
453601
|
kind: "transient_provider_retry",
|
|
453582
|
-
message: getRetryStatusMessage(params.errorDetail) || `LLM API error encountered, retrying (attempt ${params.attempt}/${
|
|
453602
|
+
message: getRetryStatusMessage(params.errorDetail) || `LLM API error encountered, retrying (attempt ${params.attempt}/${maxAttempts})...`,
|
|
453583
453603
|
reason: "llm_api_error",
|
|
453584
453604
|
attempt: params.attempt,
|
|
453585
|
-
maxAttempts
|
|
453605
|
+
maxAttempts,
|
|
453586
453606
|
delayMs,
|
|
453587
453607
|
runId: params.runId ?? undefined,
|
|
453588
453608
|
agentId: params.agentId,
|
|
@@ -453594,11 +453614,37 @@ async function prepareProviderRetryInput(params) {
|
|
|
453594
453614
|
}
|
|
453595
453615
|
return refreshTurnInputOtidsForNewRequest(params.input);
|
|
453596
453616
|
}
|
|
453617
|
+
async function sendPostStopRetry(params) {
|
|
453618
|
+
const { agentId, conversationId, runtime, runId, socket, turnLease } = params;
|
|
453619
|
+
let input = params.deploymentInterrupted ? createDeploymentRecoveryTurnInput() : await prepareProviderRetryInput(params);
|
|
453620
|
+
if (params.finishIfInterrupted(runId))
|
|
453621
|
+
return { kind: "interrupted" };
|
|
453622
|
+
const consumed = params.deploymentInterrupted || params.noCoalesce ? null : consumeQueuedTurn(runtime, { continuation: true });
|
|
453623
|
+
if (consumed) {
|
|
453624
|
+
const { dequeuedBatch, queuedTurn } = consumed;
|
|
453625
|
+
queuedTurn.messages = ensureTurnInputMessageOtids(queuedTurn.messages);
|
|
453626
|
+
await params.onConsumeQueuedTurn(queuedTurn);
|
|
453627
|
+
if (params.finishIfInterrupted(runId))
|
|
453628
|
+
return { kind: "interrupted" };
|
|
453629
|
+
params.turnCorrelation.appendDequeuedBatch(dequeuedBatch.batchId);
|
|
453630
|
+
params.onDequeued(dequeuedBatch.batchId, queuedTurn.actingUserId ?? null);
|
|
453631
|
+
input = appendQueuedTurnToInput(input, queuedTurn);
|
|
453632
|
+
emitDequeuedUserMessage(socket, runtime, queuedTurn, dequeuedBatch);
|
|
453633
|
+
}
|
|
453634
|
+
setTurnLoopStatus(runtime, turnLease, "SENDING_API_REQUEST", {
|
|
453635
|
+
agent_id: agentId,
|
|
453636
|
+
conversation_id: conversationId
|
|
453637
|
+
});
|
|
453638
|
+
const messages = params.deploymentInterrupted ? input.messages : injectQueuedSkillContent(input.messages, params);
|
|
453639
|
+
params.setInput(updateTurnInputMessagesPreservingOtids(input, messages));
|
|
453640
|
+
const result3 = await params.sender.send(messages);
|
|
453641
|
+
return params.finishIfInterrupted(runId) ? { kind: "interrupted" } : { kind: "sent", result: result3 };
|
|
453642
|
+
}
|
|
453597
453643
|
async function shouldRetryPostStopTurn(params) {
|
|
453598
453644
|
if (params.deploymentInterrupted) {
|
|
453599
453645
|
return params.deploymentAttempts < CLOUD_API_DEPLOYMENT_RECOVERY_MAX_ATTEMPTS;
|
|
453600
453646
|
}
|
|
453601
|
-
if (params.providerAttempts >=
|
|
453647
|
+
if (params.providerAttempts >= getProviderRetryLimit(params.errorDetail))
|
|
453602
453648
|
return false;
|
|
453603
453649
|
return isRetriablePostStopError(params.stopReason, params.runId, params.errorDetail);
|
|
453604
453650
|
}
|
|
@@ -453631,11 +453677,15 @@ var init_turn_send = __esm(() => {
|
|
|
453631
453677
|
init_turn_recovery_policy();
|
|
453632
453678
|
init_error_formatter();
|
|
453633
453679
|
init_constants3();
|
|
453680
|
+
init_continuation_input();
|
|
453681
|
+
init_protocol_outbound();
|
|
453682
|
+
init_queue();
|
|
453634
453683
|
init_recoverable_notices();
|
|
453635
453684
|
init_recovery();
|
|
453636
453685
|
init_send();
|
|
453637
453686
|
init_skill_injection();
|
|
453638
453687
|
init_turn_input_state();
|
|
453688
|
+
init_turn_status();
|
|
453639
453689
|
});
|
|
453640
453690
|
|
|
453641
453691
|
// src/reminders/listen-context.ts
|
|
@@ -454314,24 +454364,17 @@ async function handleIncomingMessageInner(msg, socket, runtime, onStatusChange,
|
|
|
454314
454364
|
connectionId,
|
|
454315
454365
|
resolveClientMessageIds: () => turnCorrelation.clientMessageIds
|
|
454316
454366
|
});
|
|
454317
|
-
if (setup.kind === "interrupted") {
|
|
454318
|
-
finishTurn({
|
|
454319
|
-
stopReason: "cancelled",
|
|
454320
|
-
socket,
|
|
454321
|
-
agentId,
|
|
454322
|
-
conversationId
|
|
454323
|
-
});
|
|
454324
|
-
return;
|
|
454325
|
-
}
|
|
454326
|
-
if (setup.kind === "cancelled") {
|
|
454367
|
+
if (setup.kind === "interrupted" || setup.kind === "cancelled") {
|
|
454327
454368
|
finishTurn({
|
|
454328
454369
|
stopReason: "cancelled",
|
|
454329
454370
|
agentId: agentId || null,
|
|
454330
454371
|
conversationId,
|
|
454331
|
-
|
|
454332
|
-
|
|
454333
|
-
|
|
454334
|
-
|
|
454372
|
+
...setup.kind === "interrupted" ? { socket } : {
|
|
454373
|
+
errorNotice: {
|
|
454374
|
+
message: setup.reason,
|
|
454375
|
+
cancelRequested: turnAbortSignal.aborted,
|
|
454376
|
+
abortSignal: turnAbortSignal
|
|
454377
|
+
}
|
|
454335
454378
|
}
|
|
454336
454379
|
});
|
|
454337
454380
|
return;
|
|
@@ -454340,6 +454383,7 @@ async function handleIncomingMessageInner(msg, socket, runtime, onStatusChange,
|
|
|
454340
454383
|
const inboundUserTranscriptLines = setup.inboundUserTranscriptLines;
|
|
454341
454384
|
const overrideModel = setup.overrideModel;
|
|
454342
454385
|
let pendingNormalizationInterruptedToolCallIds = setup.pendingNormalizationInterruptedToolCallIds;
|
|
454386
|
+
let actingUserId = msg.suppressActingUserFallback ? null : msg.actingUserId;
|
|
454343
454387
|
const initial2 = await startTurnInput({
|
|
454344
454388
|
conversationId,
|
|
454345
454389
|
agentId,
|
|
@@ -454351,7 +454395,7 @@ async function handleIncomingMessageInner(msg, socket, runtime, onStatusChange,
|
|
|
454351
454395
|
preparedToolContext: setup.preparedToolContext.preparedToolContext,
|
|
454352
454396
|
overrideModel,
|
|
454353
454397
|
responseFormat: msg.responseFormat,
|
|
454354
|
-
|
|
454398
|
+
getActingUserId: () => actingUserId,
|
|
454355
454399
|
getInput: () => turnInput,
|
|
454356
454400
|
getInterruptedToolCallIds: () => pendingNormalizationInterruptedToolCallIds,
|
|
454357
454401
|
onTerminal: noteFinalization,
|
|
@@ -454479,6 +454523,12 @@ async function handleIncomingMessageInner(msg, socket, runtime, onStatusChange,
|
|
|
454479
454523
|
}
|
|
454480
454524
|
const latestErrorInfo = result3.errorInfo;
|
|
454481
454525
|
const errorDetail3 = getApprovalToolCallDesyncErrorText(latestErrorInfo ?? {}) || latestErrorInfo?.detail || latestErrorInfo?.message || runErrorInfo2?.detail || runErrorInfo2?.message || fallbackError || null;
|
|
454526
|
+
const retryErrorDetail = [
|
|
454527
|
+
latestErrorInfo?.detail,
|
|
454528
|
+
latestErrorInfo?.message,
|
|
454529
|
+
runErrorInfo2?.detail,
|
|
454530
|
+
runErrorInfo2?.message
|
|
454531
|
+
].find(isProviderStreamTimeoutDetail) ?? errorDetail3;
|
|
454482
454532
|
const quotaError = latestErrorInfo ?? runErrorInfo2 ?? errorDetail3;
|
|
454483
454533
|
const deploymentInterrupted = isCloudApiDeploymentInterrupted(latestErrorInfo) || isCloudApiDeploymentInterrupted(runErrorInfo2);
|
|
454484
454534
|
if (!deploymentInterrupted && shouldAttemptPostStopApprovalRecovery({
|
|
@@ -454636,42 +454686,51 @@ async function handleIncomingMessageInner(msg, socket, runtime, onStatusChange,
|
|
|
454636
454686
|
providerAttempts: llmApiErrorRetries,
|
|
454637
454687
|
stopReason: stopReason || "error",
|
|
454638
454688
|
runId: lastRunId,
|
|
454639
|
-
errorDetail:
|
|
454689
|
+
errorDetail: retryErrorDetail
|
|
454640
454690
|
});
|
|
454641
454691
|
if (finishIfInterrupted(lastRunId || runtime.activeRunId)) {
|
|
454642
454692
|
break;
|
|
454643
454693
|
}
|
|
454644
454694
|
if (shouldRetry) {
|
|
454645
|
-
if (deploymentInterrupted)
|
|
454695
|
+
if (deploymentInterrupted)
|
|
454646
454696
|
deploymentRecoveryAttempts += 1;
|
|
454647
|
-
|
|
454648
|
-
} else {
|
|
454697
|
+
else
|
|
454649
454698
|
llmApiErrorRetries += 1;
|
|
454650
|
-
|
|
454651
|
-
|
|
454652
|
-
|
|
454653
|
-
|
|
454654
|
-
|
|
454655
|
-
runtime,
|
|
454656
|
-
turnLease,
|
|
454657
|
-
agentId,
|
|
454658
|
-
conversationId,
|
|
454659
|
-
runId: lastRunId
|
|
454660
|
-
});
|
|
454661
|
-
}
|
|
454662
|
-
setTurnLoopStatus(runtime, turnLease, "SENDING_API_REQUEST", {
|
|
454663
|
-
agent_id: agentId,
|
|
454664
|
-
conversation_id: conversationId
|
|
454665
|
-
});
|
|
454666
|
-
const retryInputWithSkillContent = deploymentInterrupted ? turnInput.messages : injectQueuedSkillContent(turnInput.messages, {
|
|
454699
|
+
const retry3 = await sendPostStopRetry({
|
|
454700
|
+
deploymentInterrupted,
|
|
454701
|
+
input: turnInput,
|
|
454702
|
+
errorDetail: retryErrorDetail,
|
|
454703
|
+
attempt: llmApiErrorRetries,
|
|
454667
454704
|
socket,
|
|
454668
454705
|
runtime,
|
|
454706
|
+
turnLease,
|
|
454669
454707
|
agentId,
|
|
454670
|
-
conversationId
|
|
454708
|
+
conversationId,
|
|
454709
|
+
runId: lastRunId,
|
|
454710
|
+
sender: turnInputSender,
|
|
454711
|
+
setInput: (input) => {
|
|
454712
|
+
turnInput = input;
|
|
454713
|
+
},
|
|
454714
|
+
finishIfInterrupted,
|
|
454715
|
+
turnCorrelation,
|
|
454716
|
+
noCoalesce: msg.noCoalesce,
|
|
454717
|
+
onConsumeQueuedTurn: createQueuedTurnConsumer({
|
|
454718
|
+
parkedInput: msg,
|
|
454719
|
+
turnToolContextId,
|
|
454720
|
+
runtime,
|
|
454721
|
+
ownership: durabilityOwnership,
|
|
454722
|
+
interruptedRevisionRef,
|
|
454723
|
+
recoveryLineageId,
|
|
454724
|
+
recoveryEvidenceWriter
|
|
454725
|
+
}).onConsumeQueuedTurn,
|
|
454726
|
+
onDequeued: (batchId, queuedActingUserId) => {
|
|
454727
|
+
activeDequeuedBatchId = batchId;
|
|
454728
|
+
actingUserId = queuedActingUserId;
|
|
454729
|
+
}
|
|
454671
454730
|
});
|
|
454672
|
-
|
|
454673
|
-
|
|
454674
|
-
const retryStream = turnInputSender.accept(
|
|
454731
|
+
if (retry3.kind === "interrupted")
|
|
454732
|
+
break;
|
|
454733
|
+
const retryStream = turnInputSender.accept(retry3.result);
|
|
454675
454734
|
if (!retryStream) {
|
|
454676
454735
|
return;
|
|
454677
454736
|
}
|
|
@@ -539269,4 +539328,4 @@ function registerBunOAuthFlows() {
|
|
|
539269
539328
|
registerBunOAuthFlows();
|
|
539270
539329
|
await init_src5().then(() => exports_src2);
|
|
539271
539330
|
|
|
539272
|
-
//# debugId=
|
|
539331
|
+
//# debugId=B171A817D173726764756E2164756E21
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letta-ai/letta-code",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.72",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"packages": {
|
|
6
6
|
"node_modules/@alcalzone/ansi-tokenize": {
|
|
@@ -407,9 +407,9 @@
|
|
|
407
407
|
}
|
|
408
408
|
},
|
|
409
409
|
"node_modules/@babel/runtime": {
|
|
410
|
-
"version": "7.29.
|
|
411
|
-
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.
|
|
412
|
-
"integrity": "sha512-
|
|
410
|
+
"version": "7.29.16",
|
|
411
|
+
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.16.tgz",
|
|
412
|
+
"integrity": "sha512-LKBjGopxrQE0aFucNL69OyyyF143MOWUULEOftU3oCgyD35Sy84UUpVnt/sNvTb7ZmCyALSt7om+fojlW35zYQ==",
|
|
413
413
|
"license": "MIT",
|
|
414
414
|
"engines": {
|
|
415
415
|
"node": ">=6.9.0"
|
|
@@ -546,16 +546,16 @@
|
|
|
546
546
|
}
|
|
547
547
|
},
|
|
548
548
|
"node_modules/@earendil-works/pi-ai": {
|
|
549
|
-
"version": "1.
|
|
550
|
-
"resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.
|
|
551
|
-
"integrity": "sha512-
|
|
549
|
+
"version": "1.7.0",
|
|
550
|
+
"resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.7.0.tgz",
|
|
551
|
+
"integrity": "sha512-iKryMlUYniwWbU7YU0uS7W0+cGd9c6oJ6PzRLOn8j4+1njG4c+BQq1cNawctx/npDqGeOx8ME7Gkgl6K6arPuw==",
|
|
552
552
|
"license": "MIT",
|
|
553
553
|
"dependencies": {
|
|
554
554
|
"@anthropic-ai/sdk": "0.129.0",
|
|
555
555
|
"@aws-sdk/client-bedrock-runtime": "3.1127.0",
|
|
556
556
|
"@aws-sdk/credential-provider-node": "3.972.82",
|
|
557
|
-
"@earendil-works/pi-schema": "1.
|
|
558
|
-
"@earendil-works/pi-telemetry": "1.
|
|
557
|
+
"@earendil-works/pi-schema": "1.7.0",
|
|
558
|
+
"@earendil-works/pi-telemetry": "1.7.0",
|
|
559
559
|
"@google/genai": "3.6.1",
|
|
560
560
|
"@smithy/node-http-handler": "4.12.1",
|
|
561
561
|
"http-proxy-agent": "9.1.0",
|
|
@@ -571,18 +571,18 @@
|
|
|
571
571
|
}
|
|
572
572
|
},
|
|
573
573
|
"node_modules/@earendil-works/pi-schema": {
|
|
574
|
-
"version": "1.
|
|
575
|
-
"resolved": "https://registry.npmjs.org/@earendil-works/pi-schema/-/pi-schema-1.
|
|
576
|
-
"integrity": "sha512-
|
|
574
|
+
"version": "1.7.0",
|
|
575
|
+
"resolved": "https://registry.npmjs.org/@earendil-works/pi-schema/-/pi-schema-1.7.0.tgz",
|
|
576
|
+
"integrity": "sha512-skji4McLg9jum3NFWzFa/4QRGEZhMGnSi3QL8b9VljJkc/QopH2/BFuGKI+VcEwYzKGwsd0I8RzvXGnZGfGltQ==",
|
|
577
577
|
"license": "MIT",
|
|
578
578
|
"engines": {
|
|
579
579
|
"node": ">=22.19.0"
|
|
580
580
|
}
|
|
581
581
|
},
|
|
582
582
|
"node_modules/@earendil-works/pi-telemetry": {
|
|
583
|
-
"version": "1.
|
|
584
|
-
"resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.
|
|
585
|
-
"integrity": "sha512-
|
|
583
|
+
"version": "1.7.0",
|
|
584
|
+
"resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.7.0.tgz",
|
|
585
|
+
"integrity": "sha512-QZkngqktohuFZ2TZuJSXDuUntld4sCMW1tkUPaD4moMEX/z1lwcjycXnd9ChO9HNxm/Jfo+UTiC+N2hkAF9b0w==",
|
|
586
586
|
"license": "MIT",
|
|
587
587
|
"engines": {
|
|
588
588
|
"node": ">=22.19.0"
|
|
@@ -3147,9 +3147,9 @@
|
|
|
3147
3147
|
}
|
|
3148
3148
|
},
|
|
3149
3149
|
"node_modules/hono": {
|
|
3150
|
-
"version": "4.13.
|
|
3151
|
-
"resolved": "https://registry.npmjs.org/hono/-/hono-4.13.
|
|
3152
|
-
"integrity": "sha512-
|
|
3150
|
+
"version": "4.13.23",
|
|
3151
|
+
"resolved": "https://registry.npmjs.org/hono/-/hono-4.13.23.tgz",
|
|
3152
|
+
"integrity": "sha512-OS90dj7dcsftEEWCOef8jRbnHE5lbrOq0hNRqjSyPsOnaGZvvfof1KS05hQNb4kUOCfDq1mG3PmHoX37DMnHQg==",
|
|
3153
3153
|
"license": "MIT",
|
|
3154
3154
|
"engines": {
|
|
3155
3155
|
"node": ">=16.9.0"
|
|
@@ -5020,9 +5020,9 @@
|
|
|
5020
5020
|
"license": "ISC"
|
|
5021
5021
|
},
|
|
5022
5022
|
"node_modules/ws": {
|
|
5023
|
-
"version": "8.23.
|
|
5024
|
-
"resolved": "https://registry.npmjs.org/ws/-/ws-8.23.
|
|
5025
|
-
"integrity": "sha512-
|
|
5023
|
+
"version": "8.23.1",
|
|
5024
|
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.23.1.tgz",
|
|
5025
|
+
"integrity": "sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==",
|
|
5026
5026
|
"license": "MIT",
|
|
5027
5027
|
"engines": {
|
|
5028
5028
|
"node": ">=10.0.0"
|
|
@@ -5091,7 +5091,7 @@
|
|
|
5091
5091
|
},
|
|
5092
5092
|
"": {
|
|
5093
5093
|
"name": "@letta-ai/letta-code",
|
|
5094
|
-
"version": "0.34.
|
|
5094
|
+
"version": "0.34.72",
|
|
5095
5095
|
"dependencies": {
|
|
5096
5096
|
"@cursor/sdk": "1.1.0",
|
|
5097
5097
|
"@earendil-works/pi-ai": "^1.5.2",
|