@tangle-network/sandbox 0.15.0-develop.20260728001022.b6f21c2 → 0.15.1-develop.20260728041342.fdda452

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,6 +1,6 @@
1
1
  import { c as encodeTextForWire, d as normalizeRuntimeBackendConfig, f as backendTypeSchema, i as SANDBOX_PROXY_REQUEST_MAX_BYTES, l as applyRequestedModel, o as combineAbortSignals, s as encodePromptForWire, u as assertCurrentBackendType } from "./runtime-api-CCvDLhAW.js";
2
2
  import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, l as ServerError, o as PartialFailureError, p as parseErrorResponse, t as AuthError } from "./errors-D9fFOWX9.js";
3
- import { g as exportTraceBundle, m as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, y as parseSSEStream } from "./sandbox-ClU3H3WT.js";
3
+ import { g as exportTraceBundle, m as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, y as parseSSEStream } from "./sandbox-B7rCqgj0.js";
4
4
  import { agentProfileSchema } from "@tangle-network/agent-interface";
5
5
  import { z } from "zod";
6
6
  //#region ../../../packages/runtime-contracts/dist/git-policy.js
package/dist/core.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, l as ServerError, n as CapabilityError, o as PartialFailureError, s as QuotaError, t as AuthError, u as StateError } from "./errors-D9fFOWX9.js";
2
- import { n as Sandbox } from "./client-Dj9pI8pq.js";
3
- import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-ClU3H3WT.js";
2
+ import { n as Sandbox } from "./client-CpBHDj0W.js";
3
+ import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-B7rCqgj0.js";
4
4
  export { AuthError, CapabilityError, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages };
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { d as normalizeRuntimeBackendConfig, f as backendTypeSchema } from "./runtime-api-CCvDLhAW.js";
2
2
  import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, l as ServerError, n as CapabilityError, o as PartialFailureError, r as EgressProxyRecoveryError, s as QuotaError, t as AuthError, u as StateError } from "./errors-D9fFOWX9.js";
3
- import { a as splitInlineProfileSkills, c as SandboxFleetClient, i as splitInlineProfileFileMounts, l as createBatchResultAccumulator, n as Sandbox, o as validateDeferredProfileFileMounts, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as validateBatchRunRequest } from "./client-Dj9pI8pq.js";
4
- import { _ as otelTraceIdForTangleTrace, a as TERMINAL_WS_ECHO_SUBPROTOCOL, c as SandboxTaskSession, d as applySandboxEventText, f as collectAgentResponseText, g as exportTraceBundle, h as buildTraceExportPayload, i as WorkspaceImages, l as SandboxSession, o as TerminalStream, p as getSandboxEventText, s as TerminalStreamError, t as SandboxInstance, u as InteractiveSessionHandle, v as toOtelJson, y as parseSSEStream } from "./sandbox-ClU3H3WT.js";
3
+ import { a as splitInlineProfileSkills, c as SandboxFleetClient, i as splitInlineProfileFileMounts, l as createBatchResultAccumulator, n as Sandbox, o as validateDeferredProfileFileMounts, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as validateBatchRunRequest } from "./client-CpBHDj0W.js";
4
+ import { _ as otelTraceIdForTangleTrace, a as TERMINAL_WS_ECHO_SUBPROTOCOL, c as SandboxTaskSession, d as applySandboxEventText, f as collectAgentResponseText, g as exportTraceBundle, h as buildTraceExportPayload, i as WorkspaceImages, l as SandboxSession, o as TerminalStream, p as getSandboxEventText, s as TerminalStreamError, t as SandboxInstance, u as InteractiveSessionHandle, v as toOtelJson, y as parseSSEStream } from "./sandbox-B7rCqgj0.js";
5
5
  import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DdD_rFZQ.js";
6
- import { t as TangleSandboxClient } from "./tangle-Co7xFRJm.js";
6
+ import { t as TangleSandboxClient } from "./tangle-B9paQHTm.js";
7
7
  import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
8
8
  import { z } from "zod";
9
9
  //#region src/confidential.ts
@@ -359,8 +359,9 @@ function normalizeSshCredentials(raw) {
359
359
  * - `token` — an incremental token; text under `value`/`delta`/`text`/
360
360
  * `content`.
361
361
  * - `message.part.updated` — a streamed assistant message part; the text part
362
- * lives at `data.part.text` (or `.content`) when
363
- * `part.type === "text"`.
362
+ * lives at `data.part.text` on direct run streams, or at
363
+ * `data.properties.part.text` when replayed by the session
364
+ * endpoint.
364
365
  */
365
366
  function isRecord$1(v) {
366
367
  return typeof v === "object" && v !== null;
@@ -377,7 +378,8 @@ function getSandboxEventText(event) {
377
378
  if (event.type === "result") return firstString(data.finalText, data.response, data.output, data.content, data.text);
378
379
  if (event.type === "token") return firstString(data.value, data.delta, data.text, data.content);
379
380
  if (event.type !== "message.part.updated") return;
380
- const part = isRecord$1(data.part) ? data.part : void 0;
381
+ const properties = isRecord$1(data.properties) ? data.properties : void 0;
382
+ const part = isRecord$1(data.part) ? data.part : isRecord$1(properties?.part) ? properties.part : void 0;
381
383
  if (part?.type !== "text") return;
382
384
  return firstString(part.text, part.content);
383
385
  }
@@ -1,2 +1,2 @@
1
- import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../tangle-Co7xFRJm.js";
1
+ import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../tangle-B9paQHTm.js";
2
2
  export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TANGLE_MAINNET_RPC, TangleSandboxClient };
@@ -1,5 +1,5 @@
1
1
  import { p as parseErrorResponse } from "./errors-D9fFOWX9.js";
2
- import { n as createSandboxInstanceFromResponse } from "./sandbox-ClU3H3WT.js";
2
+ import { n as createSandboxInstanceFromResponse } from "./sandbox-B7rCqgj0.js";
3
3
  //#region src/tangle/abi.ts
4
4
  /**
5
5
  * Tangle Contract ABI Definitions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "0.15.0-develop.20260728001022.b6f21c2",
3
+ "version": "0.15.1-develop.20260728041342.fdda452",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -128,8 +128,8 @@
128
128
  "ws": "^8.20.0",
129
129
  "yjs": "13.6.30",
130
130
  "@tangle-network/cli-agent-registry": "0.3.1",
131
- "@repo/shared": "0.0.0",
132
- "@tangle-network/runtime-contracts": "0.3.1"
131
+ "@tangle-network/runtime-contracts": "0.3.1",
132
+ "@repo/shared": "0.0.0"
133
133
  },
134
134
  "scripts": {
135
135
  "build": "node scripts/build-dist.mjs",