@tangle-network/agent-app 0.63.14 → 0.63.15

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,16 +1,16 @@
1
1
  import {
2
2
  createChatTurnRoutes,
3
3
  streamChatRouteAsSandboxEvents
4
- } from "../chunk-IRD2IVX2.js";
4
+ } from "../chunk-UKVLJBP4.js";
5
5
  import "../chunk-KH4QSBNI.js";
6
6
  import "../chunk-CQGEGPY7.js";
7
7
  import "../chunk-RN4WPTBH.js";
8
8
  import "../chunk-WP2GYFZ4.js";
9
9
  import "../chunk-4DBHC63F.js";
10
- import "../chunk-MH74DY2I.js";
11
10
  import "../chunk-MM6RLOXF.js";
12
- import "../chunk-562GGG3L.js";
11
+ import "../chunk-ZXZU32Q4.js";
13
12
  import "../chunk-F4TUZYMX.js";
13
+ import "../chunk-MH74DY2I.js";
14
14
  import "../chunk-N6URQ6DM.js";
15
15
  import "../chunk-Z4RD5UF7.js";
16
16
  import "../chunk-YG66IHDU.js";
@@ -101,10 +101,11 @@ import {
101
101
  warmKey,
102
102
  warmReceiptId,
103
103
  warmWeekdayOf
104
- } from "../chunk-562GGG3L.js";
104
+ } from "../chunk-ZXZU32Q4.js";
105
105
  import {
106
106
  createWarmCache
107
107
  } from "../chunk-F4TUZYMX.js";
108
+ import "../chunk-MH74DY2I.js";
108
109
  import {
109
110
  EGRESS_PROXY_RECOVERY_PHASE,
110
111
  EGRESS_PROXY_RECOVERY_REQUIRED,
@@ -28,6 +28,13 @@ import { type Outcome } from './outcome';
28
28
  * A blank-but-present `result.finalText` is ignored in favour of the streamed
29
29
  * text rather than overwriting a real answer with whitespace.
30
30
  *
31
+ * A turn with no answer is never returned as an empty string. It throws a
32
+ * `SandboxRunError` that keeps the runtime's own account: `sandbox_unconfirmed`
33
+ * when the stream never confirmed an end, `sandbox_failed` with the redacted
34
+ * failure text the stream reported, else `sandbox_empty`. The error's cause
35
+ * lists the event types the stream carried, so a product's failure log names
36
+ * what the box did.
37
+ *
31
38
  * @param events raw sandbox turn events, in order
32
39
  * @param message the prompt as handed to the stream, so an echo of it is dropped
33
40
  * @param history folded into the dispatched prompt by `streamSandboxPrompt`;
@@ -39,7 +46,8 @@ export declare function collectSandboxPromptText(events: AsyncIterable<unknown>,
39
46
  * final string. The shell's profile / model / MCP resolution and severed-stream
40
47
  * fail-loud come from `streamSandboxPrompt`; the aggregation is
41
48
  * `collectSandboxPromptText`, which products driving their own generator should
42
- * import directly.
49
+ * import directly. Unlike that collector, an answer does not excuse a stream
50
+ * that never confirmed its end or that reported a failure.
43
51
  */
44
52
  export declare function runSandboxPrompt(shell: SandboxRuntimeConfig, box: SandboxInstance, message: string | PromptInputPart[], options?: StreamSandboxPromptOptions): Promise<string>;
45
53
  /** Define options to manage deterministic session resumption and turn idempotency in sandboxed drive turns */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.63.14",
3
+ "version": "0.63.15",
4
4
  "packageManager": "pnpm@11.24.0",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [