@tangle-network/sandbox 1.0.117 → 1.0.118
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.
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +3 -3
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +1 -1
- package/dist/{agent-run-outcome-Baj0Jv83.d.ts → agent-run-outcome-1zf14Qvo.d.ts} +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-BbbyXoS1.d.ts → browser-interactive-control-controller-DjgTiPSK.d.ts} +1 -1
- package/dist/{cli-auth-bundle-De_G0zg3.js → cli-auth-bundle-BGZQl8pf.js} +1 -1
- package/dist/{client-JovtyXn7.d.ts → client-51zzwdCg.d.ts} +6 -16
- package/dist/{client-DPM_Z-gR.js → client-DvLeWxd6.js} +9 -17
- package/dist/{core-CBVuqbD-.js → core-CPmZrgBo.js} +3 -3
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/{index-C7B3bVLg.d.ts → index-DlCzW_SB.d.ts} +30 -184
- package/dist/index.d.ts +9 -9
- package/dist/index.js +6 -6
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-D6utTcix.js → interactive-controller-BQzNEYZu.js} +1 -1
- package/dist/{interactive-controller-BI8pMiTR.d.ts → interactive-controller-U_ClwSA2.d.ts} +3 -3
- package/dist/{lines-Cra3SJs-.d.ts → lines-xAhkGjwI.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-BrlmQZ68.js → local-cli-auth-BZMvbmFe.js} +1 -1
- package/dist/{preview-BuwEdvzT.d.ts → preview-Dhe5MKdu.d.ts} +3 -3
- package/dist/{profile-schema-DFZTAn1S.js → profile-schema--qCcNrz1.js} +6 -2
- package/dist/{public-templates-BFPbBQSO.d.ts → public-templates-B-bkdTUO.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-B_fFzaht.js → sandbox-gF473YxX.js} +45 -199
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CGLUu3Xx.js → tangle-TNrvVHbo.js} +1 -1
- package/dist/{terminal-stream-types-pMCEfsJv.d.ts → terminal-stream-types-CpPRMcYv.d.ts} +160 -1
- package/dist/{types-BEYAZXvg.d.ts → types-DeLaTirQ.d.ts} +24 -99
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as ProxySecretReceipt, G as AgentProfileConfidential, L as AgentExactRunControlRef, Q as ReasoningEffort, U as AgentProfile, V as InteractionRequest, W as AgentProfileCapabilities, Z as AgentProfileValidationResult, a as TerminalStreamOptions, b as SandboxSizePreset, g as TerminalReadyInfo, i as TerminalStreamHandlers, kt as SandboxCreateReceipt, s as TerminalStreamToken, t as TerminalAttachTimings, tt as PlanContinuation, x as AgentRuntimeAttachments } from "./terminal-stream-types-CpPRMcYv.js";
|
|
2
2
|
import { t as CliAuthReference } from "./cli-auth-bundle-99-eo7R4.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
|
|
@@ -5765,19 +5765,9 @@ interface SSHCommandDescriptor {
|
|
|
5765
5765
|
command: string;
|
|
5766
5766
|
env: Record<string, string>;
|
|
5767
5767
|
}
|
|
5768
|
-
/**
|
|
5769
|
-
* Connection information for a sandbox.
|
|
5770
|
-
*
|
|
5771
|
-
* Most code should use `SandboxInstance` methods (`exec`, `prompt`, etc.).
|
|
5772
|
-
* The raw `runtimeUrl` and `authToken` are surfaced only for advanced
|
|
5773
|
-
* lower-level use cases such as custom protocol clients.
|
|
5774
|
-
*/
|
|
5768
|
+
/** Server-issued runtime connection details; use the SDK accessors to select a route. */
|
|
5775
5769
|
interface SandboxConnection {
|
|
5776
|
-
/**
|
|
5777
|
-
* The owning host's runtime origin (`https://<slot>.h.<zone>`). Every
|
|
5778
|
-
* runtime call can go here directly, at `/v1/sandboxes/<id>/runtime/*`, with
|
|
5779
|
-
* `authToken` in the `Authorization` header; the token names this host.
|
|
5780
|
-
*/
|
|
5770
|
+
/** Owning host runtime origin; distinct from the regional controller URL. */
|
|
5781
5771
|
hostUrl?: string;
|
|
5782
5772
|
/** Sandbox runtime API URL for programmatic access */
|
|
5783
5773
|
runtimeUrl?: string;
|
|
@@ -5801,16 +5791,8 @@ interface SandboxConnection {
|
|
|
5801
5791
|
/** Web terminal URL if `webTerminalEnabled` was true during creation */
|
|
5802
5792
|
webTerminalUrl?: string;
|
|
5803
5793
|
}
|
|
5804
|
-
/**
|
|
5805
|
-
*
|
|
5806
|
-
* platform startup pipeline. Mirrors the platform
|
|
5807
|
-
* `StartupOperationTiming` shape one-to-one.
|
|
5808
|
-
*
|
|
5809
|
-
* - `operation` is by convention `<service>.<phase>`
|
|
5810
|
-
* (e.g. `host-agent.container_create`).
|
|
5811
|
-
* - `durationMs` is wall-clock time the step took. The platform
|
|
5812
|
-
* marks it optional on `skipped` steps, so it is optional here too.
|
|
5813
|
-
*/
|
|
5794
|
+
/** One server-attributed startup operation. Nested operations overlap; use parent links
|
|
5795
|
+
* rather than summing every duration. */
|
|
5814
5796
|
interface StartupOperation {
|
|
5815
5797
|
/** `<service>.<phase>` operation name. */
|
|
5816
5798
|
operation: string;
|
|
@@ -5820,31 +5802,13 @@ interface StartupOperation {
|
|
|
5820
5802
|
status?: string;
|
|
5821
5803
|
/** Wall-clock duration of the step in milliseconds, when measured. */
|
|
5822
5804
|
durationMs?: number;
|
|
5823
|
-
/**
|
|
5824
|
-
* `operation` of the step whose wall CONTAINS this one; absent means the
|
|
5825
|
-
* step hangs directly under the flow total. Add only the steps that no
|
|
5826
|
-
* other step names as its parent — a parent re-measures the time its
|
|
5827
|
-
* children already report, so summing both over-counts the flow.
|
|
5828
|
-
*/
|
|
5805
|
+
/** Containing operation name; absent for a top-level operation. */
|
|
5829
5806
|
parent?: string;
|
|
5830
5807
|
/** PII-scrubbed step detail (counts, ids, error codes). */
|
|
5831
5808
|
metadata?: Record<string, unknown>;
|
|
5832
5809
|
}
|
|
5833
|
-
/**
|
|
5834
|
-
*
|
|
5835
|
-
* {@link SandboxInstance.startupDiagnostics} so a customer can read where
|
|
5836
|
-
* provisioning time went (host selection, container create/start, health
|
|
5837
|
-
* checks, runtime readiness, workspace setup, etc.).
|
|
5838
|
-
*
|
|
5839
|
-
* `operations` is the raw ordered list from the platform. `phases`
|
|
5840
|
-
* is a derived convenience map of operation name → `durationMs` for the
|
|
5841
|
-
* steps that reported a duration; steps without a measured duration are
|
|
5842
|
-
* omitted from `phases` but still present in `operations`.
|
|
5843
|
-
*
|
|
5844
|
-
* `phases` mixes containing steps with the steps they contain, so its values
|
|
5845
|
-
* do NOT add up to the flow wall. To add durations, filter `operations` to
|
|
5846
|
-
* those no other operation names as its `parent`.
|
|
5847
|
-
*/
|
|
5810
|
+
/** Server startup operations and their operation-name → duration map, exposed by
|
|
5811
|
+
* SandboxInstance.startupDiagnostics. */
|
|
5848
5812
|
interface StartupDiagnostics {
|
|
5849
5813
|
/** Ordered startup steps exactly as the platform emitted them. */
|
|
5850
5814
|
operations: StartupOperation[];
|
|
@@ -5855,6 +5819,7 @@ interface StartupDiagnostics {
|
|
|
5855
5819
|
* Full sandbox information returned from the API.
|
|
5856
5820
|
*/
|
|
5857
5821
|
interface SandboxInfo {
|
|
5822
|
+
readonly proxySecretReceipt?: ProxySecretReceipt;
|
|
5858
5823
|
/** Unique sandbox identifier */
|
|
5859
5824
|
id: string;
|
|
5860
5825
|
/** Human-readable name */
|
|
@@ -5873,16 +5838,8 @@ interface SandboxInfo {
|
|
|
5873
5838
|
metadata?: Record<string, unknown>;
|
|
5874
5839
|
/** Verified current container identity, available on create and get. */
|
|
5875
5840
|
captureProof?: SandboxCreateReceipt["captureProof"];
|
|
5876
|
-
/**
|
|
5877
|
-
*
|
|
5878
|
-
* positive claim `{ hipaa: true }`, pinned from verified Platform
|
|
5879
|
-
* attribution at provision. No create option sets it: the create's
|
|
5880
|
-
* `compliance` option only narrows placement (a caller without the
|
|
5881
|
-
* entitlement is refused), so a tenant can neither dodge the
|
|
5882
|
-
* observability gates nor claim protection the platform never granted.
|
|
5883
|
-
* Absent means the platform made no claim; `hipaa: false` is never
|
|
5884
|
-
* emitted.
|
|
5885
|
-
*/
|
|
5841
|
+
/** Verified Platform compliance attribution, read-only. Only {hipaa:true} is emitted;
|
|
5842
|
+
* create options may narrow placement but cannot grant compliance. */
|
|
5886
5843
|
readonly compliance?: {
|
|
5887
5844
|
readonly hipaa: true;
|
|
5888
5845
|
};
|
|
@@ -5905,28 +5862,13 @@ interface SandboxInfo {
|
|
|
5905
5862
|
error?: string;
|
|
5906
5863
|
/** GPU lease attached during sandbox creation, when requested. */
|
|
5907
5864
|
gpuLease?: GpuLease;
|
|
5908
|
-
/**
|
|
5909
|
-
*
|
|
5910
|
-
* and on a `get` whose billing record could be read; absent on a list row
|
|
5911
|
-
* and when the platform has no record to read, where it reports no grant
|
|
5912
|
-
* rather than a default the box may not be running at. A sandbox created
|
|
5913
|
-
* before the platform recorded shapes reports what its billing row holds,
|
|
5914
|
-
* which for such a row is the repair value the ledger charges.
|
|
5915
|
-
*/
|
|
5865
|
+
/** Actual granted cgroup/volume shape, read from billing. Omitted means unknown, not a
|
|
5866
|
+
* default allocation; older rows report their ledger repair value. */
|
|
5916
5867
|
resources?: SandboxShape;
|
|
5917
|
-
/**
|
|
5918
|
-
* Startup phase breakdown, present only on the create response (the
|
|
5919
|
-
* platform emits it once, at provision time). Use
|
|
5920
|
-
* {@link SandboxInstance.startupDiagnostics} rather than reading this
|
|
5921
|
-
* directly.
|
|
5922
|
-
*/
|
|
5868
|
+
/** Create-only startup details; see SandboxInstance.startupDiagnostics. */
|
|
5923
5869
|
startupDiagnostics?: StartupDiagnostics;
|
|
5924
|
-
/**
|
|
5925
|
-
*
|
|
5926
|
-
* Present only on the create response. An absent value means the platform
|
|
5927
|
-
* reported no receipt: treat it as `unknown`, never as `created`. Use
|
|
5928
|
-
* {@link SandboxInstance.createReceipt} rather than reading this directly.
|
|
5929
|
-
*/
|
|
5870
|
+
/** Create-only platform verdict; absence means unknown, never created. See
|
|
5871
|
+
* SandboxInstance.createReceipt. */
|
|
5930
5872
|
createReceipt?: SandboxCreateReceipt;
|
|
5931
5873
|
/** Resolved egress policy */
|
|
5932
5874
|
egressPolicy?: EgressPolicy;
|
|
@@ -5967,31 +5909,17 @@ interface SandboxTerminalAttachOptions {
|
|
|
5967
5909
|
command?: string;
|
|
5968
5910
|
cwd?: string;
|
|
5969
5911
|
env?: Record<string, string>;
|
|
5970
|
-
/**
|
|
5971
|
-
*
|
|
5972
|
-
* a reattached PTY replays its buffered screen immediately after the
|
|
5973
|
-
* attach acknowledgement, so a handler added after `attach()` resolves
|
|
5974
|
-
* would miss the replayed frames.
|
|
5975
|
-
*/
|
|
5912
|
+
/** Register callbacks before opening: a reattached PTY replays buffered frames
|
|
5913
|
+
* immediately after acknowledgement. */
|
|
5976
5914
|
handlers?: TerminalStreamHandlers;
|
|
5977
5915
|
}
|
|
5978
|
-
/**
|
|
5979
|
-
*
|
|
5980
|
-
* surface. `attach()` opens the terminal WebSocket through the secured
|
|
5981
|
-
* sidecar proxy — a Node caller sends its API key on the upgrade, a browser a
|
|
5982
|
-
* short-lived scoped token minted per dial — as a
|
|
5983
|
-
* {@link TerminalStream}: reusing a connection id reattaches the existing
|
|
5984
|
-
* PTY and replays its history; a new id spawns a fresh shell (or `command`).
|
|
5985
|
-
*/
|
|
5916
|
+
/** REST terminals plus secured WebSocket attach (API key in Node, scoped token in
|
|
5917
|
+
* browsers). Reused IDs reattach and replay history; new IDs start a shell or command. */
|
|
5986
5918
|
interface SandboxTerminals extends SandboxTerminalManager {
|
|
5987
5919
|
attach(connectionId: string, options?: SandboxTerminalAttachOptions): Promise<TerminalStream>;
|
|
5988
5920
|
}
|
|
5989
|
-
/**
|
|
5990
|
-
*
|
|
5991
|
-
*
|
|
5992
|
-
* Pass this object to `@tangle-network/tcloud-attestation` for caller-side
|
|
5993
|
-
* policy checks and hardware verification.
|
|
5994
|
-
*/
|
|
5921
|
+
/** Raw runtime TEE evidence; verify hardware and caller policy with
|
|
5922
|
+
* @tangle-network/tcloud-attestation. */
|
|
5995
5923
|
interface TeeAttestationReport {
|
|
5996
5924
|
/** TEE backend that produced the report, e.g. `Tdx`, `Sev`, or `Nitro`. */
|
|
5997
5925
|
tee_type: string;
|
|
@@ -6037,11 +5965,8 @@ interface TeePublicKeyResponse {
|
|
|
6037
5965
|
* Options for requesting fresh TEE attestation evidence.
|
|
6038
5966
|
*/
|
|
6039
5967
|
interface TeeAttestationOptions {
|
|
6040
|
-
/**
|
|
6041
|
-
*
|
|
6042
|
-
* backend, the runtime binds this to report data so the caller can reject
|
|
6043
|
-
* replayed quotes.
|
|
6044
|
-
*/
|
|
5968
|
+
/** Hex-encoded 32–64 byte caller nonce; supported backends bind it into report data to
|
|
5969
|
+
* prevent replay. */
|
|
6045
5970
|
attestationNonce?: string;
|
|
6046
5971
|
}
|
|
6047
5972
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.118",
|
|
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
|
-
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
158
|
-
"@tangle-network/runtime-contracts": "0.20.0",
|
|
159
157
|
"@repo/shared": "0.0.0",
|
|
160
|
-
"@tangle-network/
|
|
158
|
+
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
159
|
+
"@tangle-network/cli-agent-registry": "0.14.0",
|
|
160
|
+
"@tangle-network/runtime-contracts": "0.20.0"
|
|
161
161
|
},
|
|
162
162
|
"tangleRelease": {
|
|
163
|
-
"sourceSha": "
|
|
164
|
-
"mergedAt": "2026-10-30T00:
|
|
163
|
+
"sourceSha": "873f3d2698e15b23f590b4b18ac753d70fa5a71d",
|
|
164
|
+
"mergedAt": "2026-10-30T00:46:26-06:00"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "node scripts/build-dist.mjs",
|