@tangle-network/sandbox 0.37.1 → 0.38.0
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.
|
@@ -297,8 +297,6 @@ declare const AgentSandboxBlueprintAbi: readonly [{
|
|
|
297
297
|
*/
|
|
298
298
|
/** Tangle mainnet chain ID. */
|
|
299
299
|
declare const TANGLE_CHAIN_ID = 5845;
|
|
300
|
-
/** Tangle mainnet RPC endpoint. */
|
|
301
|
-
declare const TANGLE_MAINNET_RPC = "https://rpc.tangle.tools";
|
|
302
300
|
/** ITangleJobs precompile contract address. */
|
|
303
301
|
declare const TANGLE_JOBS_CONTRACT: "0x0000000000000000000000000000000000000808";
|
|
304
302
|
/** Job indices matching the blueprint's job IDs. */
|
|
@@ -311,8 +309,12 @@ interface TangleSandboxClientConfig {
|
|
|
311
309
|
wallet?: unknown;
|
|
312
310
|
/** Hex-encoded private key for Node.js environments. Mutually exclusive with wallet. */
|
|
313
311
|
privateKey?: `0x${string}`;
|
|
314
|
-
/**
|
|
315
|
-
|
|
312
|
+
/**
|
|
313
|
+
* HTTP JSON-RPC endpoint for the Tangle chain. Required for both the
|
|
314
|
+
* privateKey and wallet paths: the SDK ships no default endpoint because the
|
|
315
|
+
* legacy public host was retired.
|
|
316
|
+
*/
|
|
317
|
+
rpcUrl: string;
|
|
316
318
|
/** Blueprint contract address for view calls (getAvailableCapacity, etc). */
|
|
317
319
|
blueprintContractAddress?: `0x${string}`;
|
|
318
320
|
/** ITangleJobs precompile address. Defaults to 0x...0808. */
|
|
@@ -374,4 +376,4 @@ declare class TangleSandboxClient implements HttpClient {
|
|
|
374
376
|
private fetchOperatorApi;
|
|
375
377
|
}
|
|
376
378
|
//#endregion
|
|
377
|
-
export { TANGLE_JOBS_CONTRACT as a,
|
|
379
|
+
export { TANGLE_JOBS_CONTRACT as a, ITangleJobsAbi as c, SandboxCreateResponseParamTypes as d, SandboxIdParamTypes as f, TANGLE_CHAIN_ID as i, JsonResponseParamTypes as l, JOB_SANDBOX_CREATE as n, TangleSandboxClientConfig as o, JOB_SANDBOX_DELETE as r, AgentSandboxBlueprintAbi as s, TangleSandboxClient as t, SandboxCreateParamTypes as u };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as Collabo
|
|
|
7
7
|
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-CMLW3u5K.js";
|
|
8
8
|
import { a as NetworkError, c as QuotaError, d as SandboxFailureDetail, f as ServerError, h as ValidationError, i as FileWriteConflictError, l as SandboxError, m as TimeoutError, n as CapabilityError, o as NotFoundError, p as StateError, r as EgressProxyRecoveryError, s as PartialFailureError, t as AuthError, u as SandboxErrorJson } from "./errors-CQOvGddH.js";
|
|
9
9
|
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-Bq1aHHPy.js";
|
|
10
|
-
import {
|
|
10
|
+
import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-Dace0mEd.js";
|
|
11
11
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
12
12
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
13
13
|
import * as _$zod from "zod";
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { _ as parseBackendRegistryResponse, a as splitInlineProfileSkills, c as
|
|
|
4
4
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, c as createInteractiveControlHolderId, l as interactiveSessionIdentityDigest, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-Dv0gbFMu.js";
|
|
5
5
|
import { A as toOtelJson, C as collectAgentResponseText, D as buildTraceExportPayload, O as exportTraceBundle, S as collectAgentFinalMessageText, T as isToolBearingEvent, _ as TerminalStream, a as WorkspaceImages, c as SandboxTaskSession, d as agentInteractiveSessionPromptRequestDigest, f as InteractiveTerminalFrameLog, g as InteractiveSessionController, h as BrowserInteractiveSessionController, k as otelTraceIdForTangleTrace, l as SandboxSession, m as createInteractiveTerminalSession, o as GPU_LEASE_PROVIDER_NAMES, p as createInteractiveTerminalCapture, s as MAX_EGRESS_DENIALS_LIMIT, t as SandboxInstance, u as InteractiveSessionHandle, v as TerminalStreamError, w as getSandboxEventText, x as applySandboxEventText, y as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./sandbox-CVj0AN5M.js";
|
|
6
6
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DQD9kCdN.js";
|
|
7
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
7
|
+
import { t as TangleSandboxClient } from "./tangle-3FFO8aMq.js";
|
|
8
8
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
//#region src/confidential.ts
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as
|
|
2
|
-
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT,
|
|
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 TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-Dace0mEd.js";
|
|
2
|
+
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as
|
|
2
|
-
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT,
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-3FFO8aMq.js";
|
|
2
|
+
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient };
|
|
@@ -359,8 +359,6 @@ const AgentSandboxBlueprintAbi = [
|
|
|
359
359
|
*/
|
|
360
360
|
/** Tangle mainnet chain ID. */
|
|
361
361
|
const TANGLE_CHAIN_ID = 5845;
|
|
362
|
-
/** Tangle mainnet RPC endpoint. */
|
|
363
|
-
const TANGLE_MAINNET_RPC = "https://rpc.tangle.tools";
|
|
364
362
|
/** ITangleJobs precompile contract address. */
|
|
365
363
|
const TANGLE_JOBS_CONTRACT = "0x0000000000000000000000000000000000000808";
|
|
366
364
|
/** Job indices matching the blueprint's job IDs. */
|
|
@@ -406,13 +404,14 @@ var TangleChainClient = class {
|
|
|
406
404
|
publicClient: this.publicClient,
|
|
407
405
|
walletClient: this.walletClient
|
|
408
406
|
};
|
|
407
|
+
const rpcUrl = this.config.rpcUrl;
|
|
408
|
+
if (typeof rpcUrl !== "string" || rpcUrl.trim().length === 0) throw new Error("TangleSandboxClient requires rpcUrl: the SDK has no default Tangle RPC endpoint");
|
|
409
409
|
let viem;
|
|
410
410
|
try {
|
|
411
411
|
viem = await import("viem");
|
|
412
412
|
} catch {
|
|
413
413
|
throw new Error("viem is required for TangleSandboxClient. Install it: npm install viem");
|
|
414
414
|
}
|
|
415
|
-
const rpcUrl = this.config.rpcUrl ?? "https://rpc.tangle.tools";
|
|
416
415
|
const chain = {
|
|
417
416
|
id: TANGLE_CHAIN_ID,
|
|
418
417
|
name: "Tangle",
|
|
@@ -933,4 +932,4 @@ var TangleSandboxClient = class {
|
|
|
933
932
|
}
|
|
934
933
|
};
|
|
935
934
|
//#endregion
|
|
936
|
-
export { TANGLE_JOBS_CONTRACT as a,
|
|
935
|
+
export { TANGLE_JOBS_CONTRACT as a, JsonResponseParamTypes as c, SandboxIdParamTypes as d, TANGLE_CHAIN_ID as i, SandboxCreateParamTypes as l, JOB_SANDBOX_CREATE as n, AgentSandboxBlueprintAbi as o, JOB_SANDBOX_DELETE as r, ITangleJobsAbi as s, TangleSandboxClient as t, SandboxCreateResponseParamTypes as u };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
"yjs": "13.6.30",
|
|
138
138
|
"@tangle-network/cli-agent-registry": "0.3.15",
|
|
139
139
|
"@tangle-network/runtime-contracts": "0.6.5",
|
|
140
|
-
"@
|
|
141
|
-
"@
|
|
140
|
+
"@tangle-network/sse-core": "0.0.0",
|
|
141
|
+
"@repo/shared": "0.0.0"
|
|
142
142
|
},
|
|
143
143
|
"scripts": {
|
|
144
144
|
"build": "node scripts/build-dist.mjs",
|