@tangle-network/agent-app 0.60.32 → 0.60.34
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/app-auth/index.js +1 -1
- package/dist/assistant/index.js +7 -7
- package/dist/chat-react/index.js +3 -3
- package/dist/chat-routes/index.js +15 -12
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-routes/turn-routes.d.ts +2 -0
- package/dist/chat-routes/wire.d.ts +2 -0
- package/dist/chat-store/index.js +4 -4
- package/dist/chat-store/parts.d.ts +2 -0
- package/dist/{chunk-HWJOTTEI.js → chunk-4EVEBEJX.js} +9 -4
- package/dist/chunk-4EVEBEJX.js.map +1 -0
- package/dist/{chunk-FCON65I2.js → chunk-6VQCFJWP.js} +3 -3
- package/dist/{chunk-FCON65I2.js.map → chunk-6VQCFJWP.js.map} +1 -1
- package/dist/{chunk-WTGSLW5X.js → chunk-FPCIJCS3.js} +3 -3
- package/dist/chunk-FPCIJCS3.js.map +1 -0
- package/dist/{chunk-H6MKILMQ.js → chunk-FZJRATBY.js} +4 -4
- package/dist/{chunk-NJA6X7JI.js → chunk-GBGSC42G.js} +2 -2
- package/dist/{chunk-GYDFGEJ2.js → chunk-HOZMP3AR.js} +1 -1
- package/dist/chunk-HOZMP3AR.js.map +1 -0
- package/dist/{chunk-BF7M3NW2.js → chunk-MCAIZKQ5.js} +1 -1
- package/dist/chunk-MCAIZKQ5.js.map +1 -0
- package/dist/{chunk-DECJLOS4.js → chunk-TCPRFFZK.js} +2 -2
- package/dist/{chunk-6VRVRWYN.js → chunk-UKZMJND6.js} +2 -2
- package/dist/{chunk-OYN2UY3K.js → chunk-WOTWQ2ST.js} +31 -1
- package/dist/{chunk-OYN2UY3K.js.map → chunk-WOTWQ2ST.js.map} +1 -1
- package/dist/{chunk-N56FWDSP.js → chunk-ZGUXI5SI.js} +2 -2
- package/dist/email/index.d.ts +1 -1
- package/dist/email/index.js +3 -1
- package/dist/email/templates.d.ts +20 -0
- package/dist/hub-approvals/index.js +1 -1
- package/dist/hub-approvals/types.d.ts +14 -0
- package/dist/hub-approvals-react/index.d.ts +1 -1
- package/dist/hub-approvals-react/index.js +24 -8
- package/dist/hub-approvals-react/index.js.map +1 -1
- package/dist/hub-approvals-react/parts.d.ts +8 -1
- package/dist/interactions/contract.d.ts +3 -1
- package/dist/interactions/index.js +2 -2
- package/dist/operator/chat-adapter.d.ts +6 -1
- package/dist/operator/index.js +4 -2
- package/dist/operator/index.js.map +1 -1
- package/dist/public-consultation/index.js +6 -6
- package/dist/stream/index.js +2 -2
- package/dist/web-react/index.js +7 -7
- package/package.json +1 -1
- package/dist/chunk-BF7M3NW2.js.map +0 -1
- package/dist/chunk-GYDFGEJ2.js.map +0 -1
- package/dist/chunk-HWJOTTEI.js.map +0 -1
- package/dist/chunk-WTGSLW5X.js.map +0 -1
- /package/dist/{chunk-H6MKILMQ.js.map → chunk-FZJRATBY.js.map} +0 -0
- /package/dist/{chunk-NJA6X7JI.js.map → chunk-GBGSC42G.js.map} +0 -0
- /package/dist/{chunk-DECJLOS4.js.map → chunk-TCPRFFZK.js.map} +0 -0
- /package/dist/{chunk-6VRVRWYN.js.map → chunk-UKZMJND6.js.map} +0 -0
- /package/dist/{chunk-N56FWDSP.js.map → chunk-ZGUXI5SI.js.map} +0 -0
package/dist/app-auth/index.js
CHANGED
package/dist/assistant/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chatToolCallPart
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-FZJRATBY.js";
|
|
4
4
|
import "../chunk-FAU5FIFD.js";
|
|
5
5
|
import "../chunk-3HUFJ5LO.js";
|
|
6
6
|
import "../chunk-FBVLEGEG.js";
|
|
7
7
|
import "../chunk-Y6PRDUFJ.js";
|
|
8
8
|
import {
|
|
9
9
|
ChatComposer
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-TCPRFFZK.js";
|
|
11
11
|
import "../chunk-L7MB2LLM.js";
|
|
12
12
|
import "../chunk-KHCJKVQN.js";
|
|
13
13
|
import "../chunk-XEURJVS5.js";
|
|
@@ -22,18 +22,18 @@ import {
|
|
|
22
22
|
AsyncView
|
|
23
23
|
} from "../chunk-LSUELMHY.js";
|
|
24
24
|
import "../chunk-FQYAJYPW.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-GBGSC42G.js";
|
|
26
26
|
import "../chunk-MLG6XKPV.js";
|
|
27
27
|
import "../chunk-MCYJON3F.js";
|
|
28
28
|
import "../chunk-B7CL7ENS.js";
|
|
29
29
|
import "../chunk-PV33JZKV.js";
|
|
30
30
|
import "../chunk-7YA4QNTU.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-FPCIJCS3.js";
|
|
32
|
+
import "../chunk-HOZMP3AR.js";
|
|
33
33
|
import "../chunk-ZVEEWGDK.js";
|
|
34
34
|
import "../chunk-TXD5HXLE.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-ZGUXI5SI.js";
|
|
36
|
+
import "../chunk-6VQCFJWP.js";
|
|
37
37
|
import "../chunk-LQYIBL3G.js";
|
|
38
38
|
|
|
39
39
|
// src/assistant/sse.ts
|
package/dist/chat-react/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComposerModeControls,
|
|
3
3
|
EntryComposer
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-TCPRFFZK.js";
|
|
5
5
|
import "../chunk-L7MB2LLM.js";
|
|
6
6
|
import "../chunk-NJDQ2JCP.js";
|
|
7
7
|
import "../chunk-HG4OONJA.js";
|
|
8
8
|
import "../chunk-SJWIZT7B.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-GBGSC42G.js";
|
|
10
10
|
import "../chunk-MLG6XKPV.js";
|
|
11
11
|
import "../chunk-MCYJON3F.js";
|
|
12
12
|
import "../chunk-7YA4QNTU.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-HOZMP3AR.js";
|
|
14
14
|
import "../chunk-TXD5HXLE.js";
|
|
15
15
|
export {
|
|
16
16
|
ComposerModeControls,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
checkAttachmentType,
|
|
25
25
|
sanitizeAttachmentFileName,
|
|
26
26
|
sniffBinary
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-GBGSC42G.js";
|
|
28
28
|
import {
|
|
29
29
|
DEFAULT_STALE_TURN_LOCK_GRACE_MS,
|
|
30
30
|
DEFAULT_TERMINAL_TURN_LOCK_GRACE_MS,
|
|
@@ -64,8 +64,8 @@ import {
|
|
|
64
64
|
rowIdOf,
|
|
65
65
|
storeSupportsDraftPersistence,
|
|
66
66
|
streamChatRouteAsSandboxEvents
|
|
67
|
-
} from "../chunk-
|
|
68
|
-
import "../chunk-
|
|
67
|
+
} from "../chunk-4EVEBEJX.js";
|
|
68
|
+
import "../chunk-UKZMJND6.js";
|
|
69
69
|
import "../chunk-UTAIRVOK.js";
|
|
70
70
|
import "../chunk-RN4WPTBH.js";
|
|
71
71
|
import "../chunk-3NCPXNBZ.js";
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
attachmentInputToPart,
|
|
80
80
|
attachmentKindForMime,
|
|
81
81
|
toChatMessageParts
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-FPCIJCS3.js";
|
|
83
83
|
import {
|
|
84
84
|
ChatTurnInputError,
|
|
85
85
|
DISPATCH_MAX_MEDIA_PARTS,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
parseFileMentions,
|
|
101
101
|
promptPartsByteSize,
|
|
102
102
|
validateSandboxMentionPath
|
|
103
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-HOZMP3AR.js";
|
|
104
104
|
import "../chunk-ZVEEWGDK.js";
|
|
105
105
|
import {
|
|
106
106
|
isWorkspaceFileExportable
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
normalizePersistedPart,
|
|
118
118
|
normalizeToolEvent,
|
|
119
119
|
terminalizeDanglingAssistantToolUpdates
|
|
120
|
-
} from "../chunk-
|
|
120
|
+
} from "../chunk-ZGUXI5SI.js";
|
|
121
121
|
import {
|
|
122
122
|
cancelStatusFor,
|
|
123
123
|
interactionPartKey,
|
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
noticePartKey,
|
|
128
128
|
parseInteractionCancel,
|
|
129
129
|
parseInteractionRequest
|
|
130
|
-
} from "../chunk-
|
|
130
|
+
} from "../chunk-6VQCFJWP.js";
|
|
131
131
|
import {
|
|
132
132
|
parsePlanSubmittedEvent,
|
|
133
133
|
persistedPartToPlan,
|
|
@@ -657,6 +657,9 @@ function sandboxStreamErrorMessage(data) {
|
|
|
657
657
|
return "Sandbox stream returned an error event without details.";
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
|
+
function sandboxStreamErrorCode(data) {
|
|
661
|
+
return asString(asRecord(data)?.code) ?? "sandbox.stream_error";
|
|
662
|
+
}
|
|
660
663
|
function toProducerWireEvent(event) {
|
|
661
664
|
return event;
|
|
662
665
|
}
|
|
@@ -816,11 +819,11 @@ function createSandboxChatProducer(options) {
|
|
|
816
819
|
}
|
|
817
820
|
}
|
|
818
821
|
let errorNoticeCount = 0;
|
|
819
|
-
function* emitErrorNotice(text) {
|
|
822
|
+
function* emitErrorNotice(text, code) {
|
|
820
823
|
errorNoticeCount += 1;
|
|
821
|
-
const notice = noticePart("error", `error-${errorNoticeCount}`, text);
|
|
824
|
+
const notice = noticePart("error", `error-${errorNoticeCount}`, text, code);
|
|
822
825
|
recordPersistedPart(notice, void 0, noticePartKey(notice.id));
|
|
823
|
-
yield { type: "notice", id: notice.id, noticeKind: "error", text };
|
|
826
|
+
yield { type: "notice", id: notice.id, noticeKind: "error", text, code };
|
|
824
827
|
}
|
|
825
828
|
async function* stream() {
|
|
826
829
|
try {
|
|
@@ -1053,7 +1056,7 @@ Error: ${message}` : `The sandbox agent returned an error before producing a vis
|
|
|
1053
1056
|
|
|
1054
1057
|
Error: ${message}`;
|
|
1055
1058
|
if (options.errorNotice) {
|
|
1056
|
-
yield* emitErrorNotice(errorContent);
|
|
1059
|
+
yield* emitErrorNotice(errorContent, sandboxStreamErrorCode(event.data));
|
|
1057
1060
|
} else if (options.includeErrorText !== false) {
|
|
1058
1061
|
const errorDelta = fullText ? `
|
|
1059
1062
|
|
|
@@ -1077,7 +1080,7 @@ ${errorContent}` : errorContent;
|
|
|
1077
1080
|
error: streamErr instanceof Error ? streamErr.message : String(streamErr)
|
|
1078
1081
|
});
|
|
1079
1082
|
if (options.errorNotice) {
|
|
1080
|
-
yield* emitErrorNotice(diagnostic.userMessage);
|
|
1083
|
+
yield* emitErrorNotice(diagnostic.userMessage, diagnostic.code);
|
|
1081
1084
|
} else if (options.includeErrorText !== false) {
|
|
1082
1085
|
const errorDelta = fullText ? `
|
|
1083
1086
|
|