@tangle-network/agent-app 0.43.53 → 0.43.55
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 +41 -35
- package/dist/assistant/index.d.ts +2 -2
- package/dist/assistant/index.js +3 -3
- package/dist/{attachment-validation-DX2KIzMC.d.ts → attachment-validation-D0csjCvz.d.ts} +1 -1
- package/dist/chat-routes/index.d.ts +12 -9
- package/dist/chat-routes/index.js +328 -146
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-store/index.d.ts +2 -2
- package/dist/chat-store/index.js +1 -1
- package/dist/{chunk-3EKOSBYL.js → chunk-K63OWUDJ.js} +2 -2
- package/dist/{chunk-EIG7ZQW2.js → chunk-RVUISYUE.js} +15 -3
- package/dist/chunk-RVUISYUE.js.map +1 -0
- package/dist/{chunk-JGYOYY5D.js → chunk-XKBIYSSM.js} +1 -1
- package/dist/chunk-XKBIYSSM.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{parts-IB-Kbb7z.d.ts → parts-1sRYSPjF.d.ts} +58 -1
- package/dist/web-react/index.d.ts +16 -4
- package/dist/web-react/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-EIG7ZQW2.js.map +0 -1
- package/dist/chunk-JGYOYY5D.js.map +0 -1
- /package/dist/{chunk-3EKOSBYL.js.map → chunk-K63OWUDJ.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { B as BULK_DELETE_MAX_THREADS, C as ChatStoreInputError, t as threadTitleFromMessage } from '../core-7qIM7svy.js';
|
|
2
|
-
import { g as ChatMessagePart } from '../parts-
|
|
3
|
-
export { C as ChatAttachmentKind, a as ChatAttachmentPart, b as ChatFilePart, c as ChatImagePart, d as ChatInteractionPart, e as ChatMentionKind, f as ChatMentionPart, h as ChatNoticePart, i as ChatPartTime, j as ChatPlanPart, k as ChatReasoningPart, l as ChatStepFinishPart, m as ChatStepStartPart, n as ChatSubtaskPart, o as ChatTextPart, p as ChatToolPart, q as ChatToolState, r as ChatToolStatus, s as ChatUsageTokens, D as DEFAULT_ATTACHMENT_PROMPT_HEADER, S as StorableHarnessPartKind, t as attachmentInputToPart, u as attachmentKindForMime, v as attachmentPartsFromMessageParts, w as buildAttachmentPromptBlock, x as historyContentWithAttachments, y as isChatAttachmentPart, z as isChatInteractionPart, A as isChatMentionPart, B as isChatPlanPart, E as isChatStepFinishPart, F as isChatTextPart, G as isChatToolPart, H as mentionInputToPart, I as mentionPartsFromMessageParts, J as toChatMessageParts } from '../parts-
|
|
2
|
+
import { g as ChatMessagePart } from '../parts-1sRYSPjF.js';
|
|
3
|
+
export { C as ChatAttachmentKind, a as ChatAttachmentPart, b as ChatFilePart, c as ChatImagePart, d as ChatInteractionPart, e as ChatMentionKind, f as ChatMentionPart, h as ChatNoticePart, i as ChatPartTime, j as ChatPlanPart, k as ChatReasoningPart, l as ChatStepFinishPart, m as ChatStepStartPart, n as ChatSubtaskPart, o as ChatTextPart, p as ChatToolPart, q as ChatToolState, r as ChatToolStatus, s as ChatUsageTokens, D as DEFAULT_ATTACHMENT_PROMPT_HEADER, S as StorableHarnessPartKind, t as attachmentInputToPart, u as attachmentKindForMime, v as attachmentPartsFromMessageParts, w as buildAttachmentPromptBlock, x as historyContentWithAttachments, y as isChatAttachmentPart, z as isChatInteractionPart, A as isChatMentionPart, B as isChatPlanPart, E as isChatStepFinishPart, F as isChatTextPart, G as isChatToolPart, H as mentionInputToPart, I as mentionPartsFromMessageParts, J as toChatMessageParts } from '../parts-1sRYSPjF.js';
|
|
4
4
|
import * as drizzle_orm from 'drizzle-orm';
|
|
5
5
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
6
6
|
import { SQLiteColumnBuilderBase, AnySQLiteTable, AnySQLiteColumn, BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
|
package/dist/chat-store/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatBytes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XKBIYSSM.js";
|
|
4
4
|
|
|
5
5
|
// src/chat-routes/binary-sniff.ts
|
|
6
6
|
function bytesStartWith(bytes, offset, signature) {
|
|
@@ -236,4 +236,4 @@ export {
|
|
|
236
236
|
attachmentTotalSizeErrorMessage,
|
|
237
237
|
createSandboxFileIndexRoute
|
|
238
238
|
};
|
|
239
|
-
//# sourceMappingURL=chunk-
|
|
239
|
+
//# sourceMappingURL=chunk-K63OWUDJ.js.map
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
checkAttachmentType,
|
|
10
10
|
sanitizeAttachmentFileName,
|
|
11
11
|
sniffBinary
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-K63OWUDJ.js";
|
|
13
13
|
import {
|
|
14
14
|
stepActivityFlowTrace
|
|
15
15
|
} from "./chunk-2QI7XV2T.js";
|
|
16
16
|
import {
|
|
17
17
|
attachmentPartsFromMessageParts,
|
|
18
18
|
formatBytes
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XKBIYSSM.js";
|
|
20
20
|
import {
|
|
21
21
|
cancelStatusFor,
|
|
22
22
|
fieldAcceptsFreeText,
|
|
@@ -1393,6 +1393,13 @@ function dispatchChatStreamLine(line, cb) {
|
|
|
1393
1393
|
if (u) cb.onUsage?.({ promptTokens: u.promptTokens ?? 0, completionTokens: u.completionTokens ?? 0 });
|
|
1394
1394
|
break;
|
|
1395
1395
|
}
|
|
1396
|
+
case "notice": {
|
|
1397
|
+
if (typeof evt.id === "string" && (evt.noticeKind === "warning" || evt.noticeKind === "auto-declined") && typeof evt.text === "string") {
|
|
1398
|
+
cb.onNotice?.({ id: evt.id, noticeKind: evt.noticeKind, text: evt.text });
|
|
1399
|
+
receivedContent = true;
|
|
1400
|
+
}
|
|
1401
|
+
break;
|
|
1402
|
+
}
|
|
1396
1403
|
case "metadata":
|
|
1397
1404
|
cb.onMetadata?.(evt.data ?? {});
|
|
1398
1405
|
break;
|
|
@@ -1419,6 +1426,11 @@ function dispatchChatStreamLine(line, cb) {
|
|
|
1419
1426
|
case "error": {
|
|
1420
1427
|
const data = evt.data;
|
|
1421
1428
|
const message = String(data?.message ?? evt.details ?? evt.error ?? "Unknown stream error");
|
|
1429
|
+
cb.onErrorEventDetail?.({
|
|
1430
|
+
message,
|
|
1431
|
+
...typeof data?.code === "string" ? { code: data.code } : {},
|
|
1432
|
+
...data?.details && typeof data.details === "object" ? { details: data.details } : {}
|
|
1433
|
+
});
|
|
1422
1434
|
if (cb.onErrorEvent) {
|
|
1423
1435
|
cb.onErrorEvent(message);
|
|
1424
1436
|
} else {
|
|
@@ -3879,4 +3891,4 @@ export {
|
|
|
3879
3891
|
useThinkingSeconds,
|
|
3880
3892
|
ChatMessages
|
|
3881
3893
|
};
|
|
3882
|
-
//# sourceMappingURL=chunk-
|
|
3894
|
+
//# sourceMappingURL=chunk-RVUISYUE.js.map
|