@tangle-network/sandbox 1.0.63 → 1.0.64

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.
@@ -329,8 +329,10 @@ interface IntelligenceTraceClient {
329
329
  * page by page. Seals are on the first page of {@link listRunSessionFiles}.
330
330
  */
331
331
  iterateRunSessionFiles(runId: string, params?: ListRunSessionFilesParams): AsyncGenerator<RunSessionFile, void, unknown>;
332
- /** Download one captured file's stored (redacted) bytes. */
333
- downloadRunSessionFile(runId: string, file: Pick<RunSessionFile, "sandboxId" | "sessionId" | "path">): Promise<Uint8Array>;
332
+ /** Download stored bytes, or return their stream for bounded consumers. */
333
+ downloadRunSessionFile<Stream extends boolean = false>(runId: string, file: Pick<RunSessionFile, "sandboxId" | "sessionId" | "path">, options?: {
334
+ stream: Stream;
335
+ }): Promise<Stream extends true ? ReadableStream<Uint8Array> : Uint8Array>;
334
336
  /** List tenant-wide session summaries (one row per session), newest first. */
335
337
  listSessions(params?: ListSessionsParams): Promise<SessionSummaryList>;
336
338
  /** List one session's traces as the trace-summary shape, keyset-paginated. */
@@ -168,7 +168,7 @@ function createIntelligenceClient(config) {
168
168
  cursor = page.nextCursor;
169
169
  }
170
170
  }
171
- async function downloadRunSessionFile(runId, file) {
171
+ async function downloadRunSessionFile(runId, file, options) {
172
172
  const search = new URLSearchParams({
173
173
  sandboxId: file.sandboxId,
174
174
  sessionId: file.sessionId,
@@ -180,6 +180,10 @@ function createIntelligenceClient(config) {
180
180
  method: "GET",
181
181
  path
182
182
  }, response.headers);
183
+ if (options?.stream) {
184
+ if (!response.body) throw new NetworkError("Run-session download returned no source body");
185
+ return response.body;
186
+ }
183
187
  return new Uint8Array(await response.arrayBuffer());
184
188
  });
185
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -154,14 +154,14 @@
154
154
  "ws": "^8.22.0",
155
155
  "yjs": "13.6.33",
156
156
  "@products/sandbox-test-utils": "0.0.0",
157
- "@repo/shared": "0.0.0",
158
- "@tangle-network/agent-profile-materialize": "0.27.1",
159
157
  "@tangle-network/cli-agent-registry": "0.14.0",
160
- "@tangle-network/runtime-contracts": "0.20.0"
158
+ "@tangle-network/runtime-contracts": "0.20.0",
159
+ "@repo/shared": "0.0.0",
160
+ "@tangle-network/agent-profile-materialize": "0.27.1"
161
161
  },
162
162
  "tangleRelease": {
163
- "sourceSha": "3adca738603b0b972c48f75100cb139a503b6652",
164
- "mergedAt": "2026-10-28T20:53:28-06:00"
163
+ "sourceSha": "1d403e3f6f63d0aaad2ab99329bb3809419e0062",
164
+ "mergedAt": "2026-10-28T21:23:31-06:00"
165
165
  },
166
166
  "scripts": {
167
167
  "build": "node scripts/build-dist.mjs",