@tangle-network/agent-app 4.0.25 → 4.0.26

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.
@@ -43,7 +43,7 @@ import {
43
43
  } from "../chunk-75DKKZQ3.js";
44
44
  import {
45
45
  runProtectedRouterTurn
46
- } from "../chunk-HCNEVBPJ.js";
46
+ } from "../chunk-RK2VCJQW.js";
47
47
  import {
48
48
  HYBRID_TURN_GUIDANCE,
49
49
  INTENT_LINE_HISTORY_MESSAGES,
@@ -74,14 +74,14 @@ import {
74
74
  turnPromptText,
75
75
  valueRedactor,
76
76
  withProducerStream
77
- } from "../chunk-GPCQRTWF.js";
77
+ } from "../chunk-4YRRHORE.js";
78
78
  import "../chunk-SBHFMDR7.js";
79
79
  import "../chunk-H6BRJU5M.js";
80
80
  import "../chunk-4DBHC63F.js";
81
81
  import "../chunk-RN4WPTBH.js";
82
82
  import "../chunk-MM6RLOXF.js";
83
83
  import "../chunk-M4QITAQV.js";
84
- import "../chunk-Z5M2Z2QK.js";
84
+ import "../chunk-U4HKZV5U.js";
85
85
  import "../chunk-F4TUZYMX.js";
86
86
  import {
87
87
  redactErrorMessage
@@ -185,9 +185,9 @@ import "../chunk-S5SRJJQG.js";
185
185
  import "../chunk-GD4ONMKJ.js";
186
186
  import "../chunk-UGWQLQDS.js";
187
187
  import "../chunk-R32MULDK.js";
188
- import "../chunk-V3YVG7DJ.js";
188
+ import "../chunk-LSUJ2RIC.js";
189
189
  import "../chunk-D6UJEOZQ.js";
190
- import "../chunk-ZZZLYVZX.js";
190
+ import "../chunk-H7NMUXNZ.js";
191
191
  import "../chunk-KSLTD4FI.js";
192
192
  import {
193
193
  sniffMimeFromName
@@ -30,7 +30,7 @@ import {
30
30
  sandboxRunFailureDetail,
31
31
  streamSandboxPrompt,
32
32
  turnStorageBindings
33
- } from "./chunk-Z5M2Z2QK.js";
33
+ } from "./chunk-U4HKZV5U.js";
34
34
  import {
35
35
  redactErrorMessage
36
36
  } from "./chunk-MH74DY2I.js";
@@ -143,7 +143,7 @@ import {
143
143
  composeRouterTurnPromptSections,
144
144
  narratesBefore,
145
145
  runRouterTurn
146
- } from "./chunk-V3YVG7DJ.js";
146
+ } from "./chunk-LSUJ2RIC.js";
147
147
  import {
148
148
  createIntelligenceTurnTraceReader,
149
149
  createIntelligenceTurnTraceSink,
@@ -151,7 +151,7 @@ import {
151
151
  formatServerTiming,
152
152
  otlpTraceId,
153
153
  turnTraceId
154
- } from "./chunk-ZZZLYVZX.js";
154
+ } from "./chunk-H7NMUXNZ.js";
155
155
  import {
156
156
  readSandboxBinaryBytes,
157
157
  statSandboxFileSize
@@ -2036,7 +2036,7 @@ function createTurnTraceRoute({ projectId, authorize, reader, log }) {
2036
2036
  const threadId = executionThreadId(executionId, projectId);
2037
2037
  if (!threadId) return notFound("turn_trace_not_found");
2038
2038
  const auth = await authorize({ request, intent: "running", threadId });
2039
- if (!auth.ok) return auth.response.status === 401 ? auth.response : notFound("turn_trace_not_found");
2039
+ if (!auth.ok) return auth.response.status === 401 || auth.response.status >= 500 ? auth.response : notFound("turn_trace_not_found");
2040
2040
  if (auth.intent !== void 0 && auth.intent !== "running") return notFound("turn_trace_not_found");
2041
2041
  if (!reader) return notFound("turn_trace_unreadable");
2042
2042
  let exported;
@@ -3720,4 +3720,4 @@ export {
3720
3720
  createChatTurnRoutes,
3721
3721
  streamChatRouteAsSandboxEvents
3722
3722
  };
3723
- //# sourceMappingURL=chunk-GPCQRTWF.js.map
3723
+ //# sourceMappingURL=chunk-4YRRHORE.js.map