@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.
@@ -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-IB-Kbb7z.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-IB-Kbb7z.js';
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';
@@ -20,7 +20,7 @@ import {
20
20
  mentionInputToPart,
21
21
  mentionPartsFromMessageParts,
22
22
  toChatMessageParts
23
- } from "../chunk-JGYOYY5D.js";
23
+ } from "../chunk-XKBIYSSM.js";
24
24
  import {
25
25
  attachmentPartKey
26
26
  } from "../chunk-5MG74GVQ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  formatBytes
3
- } from "./chunk-JGYOYY5D.js";
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-3EKOSBYL.js.map
239
+ //# sourceMappingURL=chunk-K63OWUDJ.js.map
@@ -9,14 +9,14 @@ import {
9
9
  checkAttachmentType,
10
10
  sanitizeAttachmentFileName,
11
11
  sniffBinary
12
- } from "./chunk-3EKOSBYL.js";
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-JGYOYY5D.js";
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-EIG7ZQW2.js.map
3894
+ //# sourceMappingURL=chunk-RVUISYUE.js.map