@tangle-network/agent-app 0.60.133 → 0.60.135

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.
Files changed (33) hide show
  1. package/dist/assistant/index.js +5 -5
  2. package/dist/chat-react/index.js +3 -3
  3. package/dist/chat-routes/index.js +17 -7
  4. package/dist/chat-routes/index.js.map +1 -1
  5. package/dist/chat-routes/wire.d.ts +2 -0
  6. package/dist/chat-store/index.js +2 -2
  7. package/dist/{chunk-XZ4M2ZPO.js → chunk-2ZGB4V7I.js} +54 -16
  8. package/dist/chunk-2ZGB4V7I.js.map +1 -0
  9. package/dist/{chunk-JEM4BKR4.js → chunk-JTBPQEGM.js} +3 -3
  10. package/dist/{chunk-2GP6JOWE.js → chunk-N5M7YT6P.js} +3 -3
  11. package/dist/{chunk-ZBPOWSYN.js → chunk-NFAOHX4Z.js} +2 -2
  12. package/dist/{chunk-NNNAC3DV.js → chunk-WAMJU3G4.js} +2 -2
  13. package/dist/{chunk-D52LB6UQ.js → chunk-WTC6AOPL.js} +2 -2
  14. package/dist/{chunk-2NHJNINW.js → chunk-YHRWZZJN.js} +1 -1
  15. package/dist/chunk-YHRWZZJN.js.map +1 -0
  16. package/dist/{chunk-VXWEJ7F2.js → chunk-YR6TZ777.js} +2 -2
  17. package/dist/public-consultation/index.js +3 -3
  18. package/dist/runtime/index.js +2 -2
  19. package/dist/runtime/router-turn.d.ts +22 -0
  20. package/dist/runtime/router-turn.js +1 -1
  21. package/dist/skills-placement/index.d.ts +32 -0
  22. package/dist/skills-placement/index.js +43 -1
  23. package/dist/skills-placement/index.js.map +1 -1
  24. package/dist/web-react/index.js +5 -5
  25. package/package.json +1 -1
  26. package/dist/chunk-2NHJNINW.js.map +0 -1
  27. package/dist/chunk-XZ4M2ZPO.js.map +0 -1
  28. /package/dist/{chunk-JEM4BKR4.js.map → chunk-JTBPQEGM.js.map} +0 -0
  29. /package/dist/{chunk-2GP6JOWE.js.map → chunk-N5M7YT6P.js.map} +0 -0
  30. /package/dist/{chunk-ZBPOWSYN.js.map → chunk-NFAOHX4Z.js.map} +0 -0
  31. /package/dist/{chunk-NNNAC3DV.js.map → chunk-WAMJU3G4.js.map} +0 -0
  32. /package/dist/{chunk-D52LB6UQ.js.map → chunk-WTC6AOPL.js.map} +0 -0
  33. /package/dist/{chunk-VXWEJ7F2.js.map → chunk-YR6TZ777.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  chatToolCallPart
3
- } from "../chunk-JEM4BKR4.js";
3
+ } from "../chunk-JTBPQEGM.js";
4
4
  import "../chunk-HZGKPWVA.js";
5
5
  import "../chunk-3HUFJ5LO.js";
6
6
  import "../chunk-FBVLEGEG.js";
@@ -12,7 +12,7 @@ import "../chunk-Y6PRDUFJ.js";
12
12
  import "../chunk-GEYACSFW.js";
13
13
  import {
14
14
  ChatComposer
15
- } from "../chunk-NNNAC3DV.js";
15
+ } from "../chunk-WAMJU3G4.js";
16
16
  import "../chunk-L7MB2LLM.js";
17
17
  import "../chunk-SJWIZT7B.js";
18
18
  import "../chunk-T6BAHD5S.js";
@@ -25,14 +25,14 @@ import {
25
25
  AsyncView
26
26
  } from "../chunk-LSUELMHY.js";
27
27
  import "../chunk-FQYAJYPW.js";
28
- import "../chunk-D52LB6UQ.js";
28
+ import "../chunk-WTC6AOPL.js";
29
29
  import "../chunk-WVESWAJJ.js";
30
30
  import "../chunk-B7CL7ENS.js";
31
31
  import "../chunk-PV33JZKV.js";
32
32
  import "../chunk-AMUXRAUO.js";
33
- import "../chunk-VXWEJ7F2.js";
33
+ import "../chunk-YR6TZ777.js";
34
34
  import "../chunk-ZVEEWGDK.js";
35
- import "../chunk-2NHJNINW.js";
35
+ import "../chunk-YHRWZZJN.js";
36
36
  import "../chunk-TXD5HXLE.js";
37
37
  import "../chunk-XNKLQG26.js";
38
38
  import "../chunk-LQYIBL3G.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  ComposerModeControls,
3
3
  EntryComposer
4
- } from "../chunk-NNNAC3DV.js";
4
+ } from "../chunk-WAMJU3G4.js";
5
5
  import "../chunk-L7MB2LLM.js";
6
6
  import "../chunk-SJWIZT7B.js";
7
7
  import "../chunk-T6BAHD5S.js";
8
8
  import "../chunk-WTHMHOU2.js";
9
9
  import "../chunk-GE7Y7ODP.js";
10
10
  import "../chunk-MLG6XKPV.js";
11
- import "../chunk-D52LB6UQ.js";
11
+ import "../chunk-WTC6AOPL.js";
12
12
  import "../chunk-WVESWAJJ.js";
13
13
  import "../chunk-AMUXRAUO.js";
14
- import "../chunk-2NHJNINW.js";
14
+ import "../chunk-YHRWZZJN.js";
15
15
  import "../chunk-TXD5HXLE.js";
16
16
  export {
17
17
  ComposerModeControls,
@@ -24,7 +24,7 @@ import {
24
24
  checkAttachmentType,
25
25
  sanitizeAttachmentFileName,
26
26
  sniffBinary
27
- } from "../chunk-D52LB6UQ.js";
27
+ } from "../chunk-WTC6AOPL.js";
28
28
  import {
29
29
  DEFAULT_STALE_TURN_LOCK_GRACE_MS,
30
30
  DEFAULT_TERMINAL_TURN_LOCK_GRACE_MS,
@@ -55,10 +55,10 @@ import "../chunk-UGWQLQDS.js";
55
55
  import "../chunk-TMOYOMSW.js";
56
56
  import {
57
57
  runProtectedRouterTurn
58
- } from "../chunk-ZBPOWSYN.js";
58
+ } from "../chunk-NFAOHX4Z.js";
59
59
  import {
60
60
  runRouterTurn
61
- } from "../chunk-XZ4M2ZPO.js";
61
+ } from "../chunk-2ZGB4V7I.js";
62
62
  import "../chunk-D6UJEOZQ.js";
63
63
  import "../chunk-AMUXRAUO.js";
64
64
  import {
@@ -72,7 +72,7 @@ import {
72
72
  rowIdOf,
73
73
  storeSupportsDraftPersistence,
74
74
  streamChatRouteAsSandboxEvents
75
- } from "../chunk-2GP6JOWE.js";
75
+ } from "../chunk-N5M7YT6P.js";
76
76
  import "../chunk-UTAIRVOK.js";
77
77
  import "../chunk-RN4WPTBH.js";
78
78
  import "../chunk-Q7WEEN7P.js";
@@ -81,7 +81,7 @@ import {
81
81
  attachmentInputToPart,
82
82
  attachmentKindForMime,
83
83
  toChatMessageParts
84
- } from "../chunk-VXWEJ7F2.js";
84
+ } from "../chunk-YR6TZ777.js";
85
85
  import "../chunk-ZVEEWGDK.js";
86
86
  import {
87
87
  ChatTurnInputError,
@@ -115,7 +115,7 @@ import {
115
115
  settleTurnResponse,
116
116
  turnResponseEventFor,
117
117
  validateSandboxMentionPath
118
- } from "../chunk-2NHJNINW.js";
118
+ } from "../chunk-YHRWZZJN.js";
119
119
  import {
120
120
  isWorkspaceFileExportable
121
121
  } from "../chunk-TXD5HXLE.js";
@@ -1166,6 +1166,7 @@ function createRouterTurnProducer(options) {
1166
1166
  const toolParts = /* @__PURE__ */ new Map();
1167
1167
  let textPart = null;
1168
1168
  let textSegment = 0;
1169
+ let reasoningPart = null;
1169
1170
  const push = (event) => {
1170
1171
  queue.push(event);
1171
1172
  wake?.();
@@ -1180,8 +1181,17 @@ function createRouterTurnProducer(options) {
1180
1181
  parts.push(textPart);
1181
1182
  }
1182
1183
  textPart.text += event.delta;
1184
+ reasoningPart = null;
1183
1185
  push({ type: "text", text: event.delta });
1186
+ } else if (event.type === "reasoning") {
1187
+ if (!reasoningPart) {
1188
+ reasoningPart = { type: "reasoning", text: "" };
1189
+ parts.push(reasoningPart);
1190
+ }
1191
+ reasoningPart.text += event.delta;
1192
+ push({ type: "reasoning", text: event.delta });
1184
1193
  } else if (event.type === "tool") {
1194
+ reasoningPart = null;
1185
1195
  if (event.status === "running") {
1186
1196
  const part = {
1187
1197
  type: "tool",
@@ -1201,7 +1211,7 @@ function createRouterTurnProducer(options) {
1201
1211
  type: "tool_result",
1202
1212
  toolCallId: event.callId,
1203
1213
  toolName: event.toolName,
1204
- outcome: event.status === "completed" ? { ok: true, result: event.output } : { ok: false, message: event.error.message }
1214
+ outcome: event.status === "completed" ? { ok: true, result: event.output } : { ok: false, message: event.error.message, code: event.error.code }
1205
1215
  });
1206
1216
  }
1207
1217
  } else if (event.type === "usage") {