@tangle-network/sandbox 0.60.16 → 0.60.17-develop.20261006075143.f71065e
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/README.md +21 -0
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{client-CbOQtx9b.d.ts → client-6u7a1HMx.d.ts} +105 -2
- package/dist/{client-CT9Td-BV.js → client-BtsaKP2y.js} +93 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/gpu-lease/index.d.ts +503 -0
- package/dist/gpu-lease/index.js +410 -0
- package/dist/index.d.ts +12 -12
- package/dist/index.js +2 -2
- package/dist/intelligence/index.d.ts +75 -1
- package/dist/intelligence/index.js +71 -20
- package/dist/{preview-T96_mF5c.d.ts → preview-BXglWD2M.d.ts} +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
import { decodeAbiParameters, encodeAbiParameters, keccak256, parseAbi, parseAbiParameters, recoverMessageAddress, stringToHex } from "viem";
|
|
2
|
+
//#region src/gpu-lease/intent.ts
|
|
3
|
+
/**
|
|
4
|
+
* Canonical GPU-lease intent + job ABI encoding — MUST match:
|
|
5
|
+
* gpu-lease-blueprint/gpu-lease-blueprint-lib/src/jobs/mod.rs (intent_hash)
|
|
6
|
+
* gpu-lease-blueprint/contracts/src/GpuLeaseBlueprint.sol (GpuLeaseRequest)
|
|
7
|
+
* gpu-lease-blueprint/metadata/blueprint.json (encodeType, generated).
|
|
8
|
+
*/
|
|
9
|
+
const INTENT_VERSION = 1;
|
|
10
|
+
/** keccak256 of the canonical intent string. */
|
|
11
|
+
function gpuLeaseIntentHash(input) {
|
|
12
|
+
return keccak256(stringToHex(`gpu-lease-intent|v${input.intentVersion}|${input.gpuClass}|${input.durationSeconds}|${input.confidentiality}|${input.region}`));
|
|
13
|
+
}
|
|
14
|
+
/** ABI shape of GpuLeaseRequest — mirrors the blueprint's sol! type. */
|
|
15
|
+
const GPU_LEASE_REQUEST_ABI = parseAbiParameters("(uint8 intentVersion, bytes32 intentHash, uint128 pricePerSecond, uint64 durationSeconds, uint8 confidentiality, string gpuClass, string region, address lessee, bytes32 leaseId)");
|
|
16
|
+
/**
|
|
17
|
+
* ABI-encoded GpuLeaseRequest — the LEASE job calldata payload.
|
|
18
|
+
* Positional (ABI order) — order is pinned by the blueprint's generated
|
|
19
|
+
* encodeType in metadata/blueprint.json.
|
|
20
|
+
*/
|
|
21
|
+
function encodeGpuLeaseRequest(params) {
|
|
22
|
+
return encodeAbiParameters(GPU_LEASE_REQUEST_ABI, [[
|
|
23
|
+
params.intentVersion,
|
|
24
|
+
params.intentHash,
|
|
25
|
+
params.pricePerSecondWei,
|
|
26
|
+
params.durationSeconds,
|
|
27
|
+
params.confidentiality,
|
|
28
|
+
params.gpuClass,
|
|
29
|
+
params.region,
|
|
30
|
+
params.lessee,
|
|
31
|
+
params.leaseId
|
|
32
|
+
]]);
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/gpu-lease/types.ts
|
|
36
|
+
/**
|
|
37
|
+
* GPU lease client types — mirrors the gpu-lease-blueprint operator API
|
|
38
|
+
* (gpu-lease-blueprint/gpu-lease-blueprint-lib/src/api.rs) and the on-chain
|
|
39
|
+
* ABI (contracts/src/GpuLeaseBlueprint.sol sol! mirror).
|
|
40
|
+
*
|
|
41
|
+
* Every on-chain and off-chain surface is schemaVersioned; unknown versions
|
|
42
|
+
* fail closed (SPEC §3 of the blueprint).
|
|
43
|
+
*/
|
|
44
|
+
/** The only schema this client understands. */
|
|
45
|
+
const GPU_LEASE_SCHEMA_VERSION = 1;
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/gpu-lease/operators.ts
|
|
48
|
+
function assertKnownSchema(actual, where) {
|
|
49
|
+
if (actual !== 1) throw new Error(`${where}: unknown schemaVersion ${actual} (client understands ${GPU_LEASE_VERSION_TEXT}) — failing closed`);
|
|
50
|
+
}
|
|
51
|
+
const GPU_LEASE_VERSION_TEXT = String(1);
|
|
52
|
+
async function getJson(endpoint, path) {
|
|
53
|
+
const res = await (endpoint.fetch ?? fetch)(new URL(path, endpoint.baseUrl).toString(), { headers: { accept: "application/json" } });
|
|
54
|
+
if (!res.ok) throw new Error(`GET ${path}: operator returned ${res.status}`);
|
|
55
|
+
const body = await res.json();
|
|
56
|
+
assertKnownSchema(body.schemaVersion, `GET ${path}`);
|
|
57
|
+
return body;
|
|
58
|
+
}
|
|
59
|
+
async function postJson(endpoint, path, payload, requireSchema = false) {
|
|
60
|
+
const res = await (endpoint.fetch ?? fetch)(new URL(path, endpoint.baseUrl).toString(), {
|
|
61
|
+
method: "POST",
|
|
62
|
+
headers: {
|
|
63
|
+
"content-type": "application/json",
|
|
64
|
+
accept: "application/json"
|
|
65
|
+
},
|
|
66
|
+
body: JSON.stringify(payload)
|
|
67
|
+
});
|
|
68
|
+
if (!res.ok) {
|
|
69
|
+
const detail = await res.text().catch(() => "");
|
|
70
|
+
throw new Error(`POST ${path}: operator returned ${res.status} ${detail.slice(0, 200)}`);
|
|
71
|
+
}
|
|
72
|
+
const body = await res.json();
|
|
73
|
+
if (requireSchema) assertKnownSchema(body.schemaVersion, `POST ${path}`);
|
|
74
|
+
return body;
|
|
75
|
+
}
|
|
76
|
+
var GpuLeaseOperatorClient = class {
|
|
77
|
+
constructor(endpoint) {
|
|
78
|
+
this.endpoint = endpoint;
|
|
79
|
+
}
|
|
80
|
+
capabilities() {
|
|
81
|
+
return getJson(this.endpoint, "/api/capabilities");
|
|
82
|
+
}
|
|
83
|
+
async quote(params) {
|
|
84
|
+
const quote = await postJson(this.endpoint, "/api/quote", {
|
|
85
|
+
gpuClass: params.gpuClass,
|
|
86
|
+
durationSeconds: params.durationSeconds,
|
|
87
|
+
confidentiality: params.confidentiality ?? 0,
|
|
88
|
+
...params.region !== void 0 ? { region: params.region } : {}
|
|
89
|
+
}, true);
|
|
90
|
+
return {
|
|
91
|
+
...quote,
|
|
92
|
+
operatorAddress: quote.operatorAddress ?? this.endpoint.address
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
leaseStatus(leaseId) {
|
|
96
|
+
return getJson(this.endpoint, `/api/leases/${leaseId.replace(/^0x/, "")}`);
|
|
97
|
+
}
|
|
98
|
+
sessionChallenge(leaseId, lessee) {
|
|
99
|
+
return postJson(this.endpoint, "/api/session/challenge", {
|
|
100
|
+
leaseId,
|
|
101
|
+
lessee
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
sessionVerify(nonce, signature) {
|
|
105
|
+
return postJson(this.endpoint, "/api/session/verify", {
|
|
106
|
+
nonce,
|
|
107
|
+
signature
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/gpu-lease/output.ts
|
|
113
|
+
/**
|
|
114
|
+
* GpuLeaseOutput decoding — the LEASE job result payload. The operator API
|
|
115
|
+
* does NOT carry this (it is a job RESULT); it arrives from the chain via
|
|
116
|
+
* the injected job client.
|
|
117
|
+
*/
|
|
118
|
+
const GPU_LEASE_OUTPUT_ABI = parseAbiParameters("(bytes32 leaseId, string endpoint, uint16 schemaVersion)");
|
|
119
|
+
/** Decode + fail closed on unknown schemaVersion (blueprint SPEC §3). */
|
|
120
|
+
function decodeGpuLeaseOutput(encoded) {
|
|
121
|
+
const [decoded] = decodeAbiParameters(GPU_LEASE_OUTPUT_ABI, encoded);
|
|
122
|
+
if (decoded.schemaVersion !== 1) throw new Error(`GpuLeaseOutput: unknown schemaVersion ${decoded.schemaVersion} — failing closed`);
|
|
123
|
+
return decoded;
|
|
124
|
+
}
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/gpu-lease/quotes.ts
|
|
127
|
+
/**
|
|
128
|
+
* Multi-operator RFQ: collect quotes, validate each against fail-closed
|
|
129
|
+
* rules, rank by price. Pure — no I/O. Mirrors the validated-quote flow
|
|
130
|
+
* proven in blueprint #1568 and the operator policy's ceiling semantics.
|
|
131
|
+
*/
|
|
132
|
+
/** The exact string the operator signs — mirrors the blueprint's
|
|
133
|
+
* `canonical_quote_payload` byte-for-byte. Every priced field is bound. */
|
|
134
|
+
function canonicalQuotePayload(quote) {
|
|
135
|
+
return `gpu-lease-quote|v1|${quote.gpuClass}|${quote.pricePerSecond}|${quote.durationSeconds}|${quote.confidentiality}|${quote.escrowTotal}|${quote.intentHash}|${quote.validUntil}`;
|
|
136
|
+
}
|
|
137
|
+
/** Offline EIP-191 recovery over the canonical payload. */
|
|
138
|
+
async function verifyOperatorQuote(quote) {
|
|
139
|
+
return (await recoverMessageAddress({
|
|
140
|
+
message: canonicalQuotePayload(quote),
|
|
141
|
+
signature: quote.signature
|
|
142
|
+
})).toLowerCase();
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Validate one quote. Fail-closed on every field the RFQ binds:
|
|
146
|
+
* class, duration-derived escrow, confidentiality, and expiry.
|
|
147
|
+
*/
|
|
148
|
+
function validateQuote(quote, input) {
|
|
149
|
+
const now = (input.now ?? Date.now)() / 1e3;
|
|
150
|
+
if (quote.gpuClass !== input.requestedClass) return {
|
|
151
|
+
kind: "class-mismatch",
|
|
152
|
+
requested: input.requestedClass,
|
|
153
|
+
quoted: quote.gpuClass
|
|
154
|
+
};
|
|
155
|
+
if (quote.confidentiality !== input.requestedConfidentiality) return {
|
|
156
|
+
kind: "confidentiality-mismatch",
|
|
157
|
+
requested: input.requestedConfidentiality,
|
|
158
|
+
quoted: quote.confidentiality
|
|
159
|
+
};
|
|
160
|
+
const price = BigInt(quote.pricePerSecond);
|
|
161
|
+
const expectedEscrow = price * BigInt(quote.durationSeconds);
|
|
162
|
+
const actualEscrow = BigInt(quote.escrowTotal);
|
|
163
|
+
if (expectedEscrow !== actualEscrow) return {
|
|
164
|
+
kind: "escrow-inconsistent",
|
|
165
|
+
expected: expectedEscrow,
|
|
166
|
+
actual: actualEscrow
|
|
167
|
+
};
|
|
168
|
+
if (quote.validUntil <= now) return {
|
|
169
|
+
kind: "stale",
|
|
170
|
+
validUntil: quote.validUntil,
|
|
171
|
+
now
|
|
172
|
+
};
|
|
173
|
+
return {
|
|
174
|
+
quote,
|
|
175
|
+
pricePerSecondWei: price,
|
|
176
|
+
escrowTotalWei: actualEscrow
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Collect validated quotes from N operators and rank cheapest-first.
|
|
181
|
+
* Operators that fail validation (or whose fetch rejects) are reported,
|
|
182
|
+
* never silently dropped — the buyer sees why an operator lost.
|
|
183
|
+
*/
|
|
184
|
+
function selectQuotes(quotes, input) {
|
|
185
|
+
const ranked = [];
|
|
186
|
+
const rejected = [];
|
|
187
|
+
for (const { operator, quote } of quotes) {
|
|
188
|
+
const result = validateQuote(quote, input);
|
|
189
|
+
if ("kind" in result) rejected.push({
|
|
190
|
+
operator,
|
|
191
|
+
reason: result
|
|
192
|
+
});
|
|
193
|
+
else ranked.push({
|
|
194
|
+
operator,
|
|
195
|
+
validated: result
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
ranked.sort((a, b) => {
|
|
199
|
+
if (a.validated.pricePerSecondWei !== b.validated.pricePerSecondWei) return a.validated.pricePerSecondWei < b.validated.pricePerSecondWei ? -1 : 1;
|
|
200
|
+
return a.validated.escrowTotalWei < b.validated.escrowTotalWei ? -1 : 1;
|
|
201
|
+
});
|
|
202
|
+
return {
|
|
203
|
+
ranked,
|
|
204
|
+
rejected
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Enforce the signed RFQ envelope when present:
|
|
209
|
+
* - signature present => it MUST recover to the claimed operator address;
|
|
210
|
+
* invalid signature => reject (config-trust is dead on this path).
|
|
211
|
+
* - no signature => the endpoint-config address is used (interim fallback);
|
|
212
|
+
* strict mode rejects unsigned quotes outright.
|
|
213
|
+
*/
|
|
214
|
+
async function validateQuoteIdentity(quote, opts = {}) {
|
|
215
|
+
const base = {
|
|
216
|
+
quote,
|
|
217
|
+
pricePerSecondWei: BigInt(quote.pricePerSecond),
|
|
218
|
+
escrowTotalWei: BigInt(quote.escrowTotal)
|
|
219
|
+
};
|
|
220
|
+
if (quote.signature) {
|
|
221
|
+
const recovered = await verifyOperatorQuote(quote).catch(() => null);
|
|
222
|
+
const claimed = quote.operatorAddress.toLowerCase();
|
|
223
|
+
if (recovered === null || recovered !== claimed) return {
|
|
224
|
+
kind: "signature-mismatch",
|
|
225
|
+
claimed,
|
|
226
|
+
recovered: recovered ?? "unrecoverable"
|
|
227
|
+
};
|
|
228
|
+
return base;
|
|
229
|
+
}
|
|
230
|
+
if (opts.strict) return {
|
|
231
|
+
kind: "unsigned",
|
|
232
|
+
operator: quote.operatorAddress
|
|
233
|
+
};
|
|
234
|
+
return base;
|
|
235
|
+
}
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region src/gpu-lease/vault.ts
|
|
238
|
+
/**
|
|
239
|
+
* Vault money semantics — the client mirror of GpuLeaseVault.sol
|
|
240
|
+
* (gpu-lease-blueprint/contracts/src/GpuLeaseVault.sol), invariants I1–I5.
|
|
241
|
+
* Exact integers everywhere; wei only, never floats.
|
|
242
|
+
*/
|
|
243
|
+
const GPU_LEASE_VAULT_ABI = parseAbi([
|
|
244
|
+
"function create(address operator, uint128 pricePerSecond, uint64 durationSeconds, bytes32 intentHash, uint8 confidentiality, bytes endpointInfo) external payable returns (bytes32 leaseId)",
|
|
245
|
+
"function extend(bytes32 leaseId, uint64 addSeconds) external payable",
|
|
246
|
+
"function release(bytes32 leaseId) external",
|
|
247
|
+
"function reap(bytes32 leaseId) external",
|
|
248
|
+
"function withdrawEarnings() external",
|
|
249
|
+
"function totalEscrowed() external view returns (uint256)",
|
|
250
|
+
"function operatorEarnings() external view returns (uint256)",
|
|
251
|
+
"function leases(bytes32) external view returns (address operator, address lessee, uint128 escrow, uint128 pricePerSecond, uint64 expiry, bytes32 intentHash, uint8 confidentiality, uint8 state)",
|
|
252
|
+
"event LeaseCreated(bytes32 indexed leaseId, address indexed operator, address indexed lessee, uint128 escrow, uint128 pricePerSecond, uint64 expiry, bytes32 intentHash, uint8 confidentiality, bytes endpointInfo, uint16 schemaVersion)",
|
|
253
|
+
"event LeaseReleased(bytes32 indexed leaseId, uint128 refund, uint128 operatorTake)",
|
|
254
|
+
"event LeaseReaped(bytes32 indexed leaseId, uint128 operatorTake, address caller)"
|
|
255
|
+
]);
|
|
256
|
+
/** Vault lease states (mirrors the contract). */
|
|
257
|
+
const LEASE_STATE = {
|
|
258
|
+
LIVE: 0,
|
|
259
|
+
RELEASED: 1,
|
|
260
|
+
REAPED: 2
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* Exact refund projection (I3): pricePerSecond × max(expiry − now, 0).
|
|
264
|
+
* Exact by construction because escrow === price × paidSeconds in the vault.
|
|
265
|
+
*/
|
|
266
|
+
function projectRefundWei(lease, nowSeconds) {
|
|
267
|
+
const remaining = lease.expiry > nowSeconds ? lease.expiry - nowSeconds : 0n;
|
|
268
|
+
const refundWei = lease.pricePerSecondWei * remaining;
|
|
269
|
+
return {
|
|
270
|
+
refundWei,
|
|
271
|
+
operatorTakeWei: lease.escrowWei - refundWei
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
/** I2 from the client side: unpayable time can never be requested. */
|
|
275
|
+
function maxAffordableSeconds(escrowWei, pricePerSecondWei) {
|
|
276
|
+
if (pricePerSecondWei <= 0n) throw new Error("pricePerSecond must be positive");
|
|
277
|
+
return escrowWei / pricePerSecondWei;
|
|
278
|
+
}
|
|
279
|
+
//#endregion
|
|
280
|
+
//#region src/gpu-lease/resolver.ts
|
|
281
|
+
/**
|
|
282
|
+
* `gpuLease()` — the SPEC §5 resolver: collect + validate quotes → escrow on
|
|
283
|
+
* the vault → LEASE job through tnt-core → teardown with an exact refund
|
|
284
|
+
* receipt. Chain and job submission are INJECTED (transport-agnostic: works
|
|
285
|
+
* with viem wallets, the TangleDriver, or test doubles).
|
|
286
|
+
*/
|
|
287
|
+
/** Job ids — MUST match the blueprint router (sequential, no gaps). */
|
|
288
|
+
const GPU_LEASE_JOBS = {
|
|
289
|
+
LEASE: 0,
|
|
290
|
+
RELEASE: 1,
|
|
291
|
+
EXTEND: 2,
|
|
292
|
+
REAP: 3
|
|
293
|
+
};
|
|
294
|
+
/** Resolve a GPU lease end-to-end. Throws with the full picture on failure. */
|
|
295
|
+
async function gpuLease(options) {
|
|
296
|
+
const { gpuClass, durationSeconds, region = "any" } = options;
|
|
297
|
+
const confidentiality = options.confidentiality ?? 0;
|
|
298
|
+
const collected = (await Promise.allSettled(options.operators.map(async (endpoint) => {
|
|
299
|
+
const quote = await new GpuLeaseOperatorClient(endpoint).quote({
|
|
300
|
+
gpuClass,
|
|
301
|
+
durationSeconds,
|
|
302
|
+
confidentiality,
|
|
303
|
+
region
|
|
304
|
+
});
|
|
305
|
+
return {
|
|
306
|
+
operator: endpoint.baseUrl,
|
|
307
|
+
quote
|
|
308
|
+
};
|
|
309
|
+
}))).flatMap((s) => s.status === "fulfilled" ? [s.value] : []);
|
|
310
|
+
if (collected.length === 0) throw new Error("gpuLease: no operator returned a quote");
|
|
311
|
+
const { ranked, rejected } = selectQuotes(collected, {
|
|
312
|
+
requestedClass: gpuClass,
|
|
313
|
+
requestedDurationSeconds: durationSeconds,
|
|
314
|
+
requestedConfidentiality: confidentiality,
|
|
315
|
+
now: options.now
|
|
316
|
+
});
|
|
317
|
+
if (ranked.length === 0) {
|
|
318
|
+
const reasons = rejected.map((r) => `${r.operator}: ${r.reason.kind}`).join(", ");
|
|
319
|
+
throw new Error(`gpuLease: every quote failed validation (${reasons})`);
|
|
320
|
+
}
|
|
321
|
+
let best;
|
|
322
|
+
for (const candidate of ranked) {
|
|
323
|
+
const identity = await validateQuoteIdentity(candidate.validated.quote);
|
|
324
|
+
if ("kind" in identity) {
|
|
325
|
+
rejected.push({
|
|
326
|
+
operator: candidate.operator,
|
|
327
|
+
reason: identity
|
|
328
|
+
});
|
|
329
|
+
continue;
|
|
330
|
+
}
|
|
331
|
+
best = {
|
|
332
|
+
...candidate,
|
|
333
|
+
validated: identity
|
|
334
|
+
};
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
337
|
+
if (!best) {
|
|
338
|
+
const reasons = rejected.map((r) => `${r.operator}: ${r.reason.kind}`).join(", ");
|
|
339
|
+
throw new Error(`gpuLease: no quote passed identity verification (${reasons})`);
|
|
340
|
+
}
|
|
341
|
+
const operatorAddress = best.validated.quote.operatorAddress;
|
|
342
|
+
const intentHash = gpuLeaseIntentHash({
|
|
343
|
+
intentVersion: 1,
|
|
344
|
+
gpuClass,
|
|
345
|
+
durationSeconds,
|
|
346
|
+
confidentiality,
|
|
347
|
+
region
|
|
348
|
+
});
|
|
349
|
+
const leaseId = await options.chain.createVaultLease({
|
|
350
|
+
operator: operatorAddress,
|
|
351
|
+
pricePerSecondWei: best.validated.pricePerSecondWei,
|
|
352
|
+
durationSeconds: BigInt(durationSeconds),
|
|
353
|
+
intentHash,
|
|
354
|
+
confidentiality,
|
|
355
|
+
endpointInfo: "{}",
|
|
356
|
+
escrowWei: best.validated.escrowTotalWei
|
|
357
|
+
});
|
|
358
|
+
const encoded = encodeGpuLeaseRequest({
|
|
359
|
+
intentVersion: 1,
|
|
360
|
+
intentHash,
|
|
361
|
+
pricePerSecondWei: best.validated.pricePerSecondWei,
|
|
362
|
+
durationSeconds: BigInt(durationSeconds),
|
|
363
|
+
confidentiality,
|
|
364
|
+
gpuClass,
|
|
365
|
+
region,
|
|
366
|
+
lessee: options.chain.account,
|
|
367
|
+
leaseId
|
|
368
|
+
});
|
|
369
|
+
const output = decodeGpuLeaseOutput(await options.chain.submitJob(GPU_LEASE_JOBS.LEASE, encoded));
|
|
370
|
+
if (output.leaseId !== leaseId) throw new Error(`gpuLease: job returned leaseId ${output.leaseId}, expected the vault leaseId ${leaseId} (one identity across money and routing)`);
|
|
371
|
+
return {
|
|
372
|
+
lease: {
|
|
373
|
+
leaseId,
|
|
374
|
+
endpoint: output.endpoint,
|
|
375
|
+
schemaVersion: output.schemaVersion,
|
|
376
|
+
quote: best.validated
|
|
377
|
+
},
|
|
378
|
+
rankedOperators: ranked.map((r) => r.operator)
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
/** Teardown: voluntary release with an exact-refund receipt (I3/I4). */
|
|
382
|
+
async function releaseGpuLease(leaseId, chain) {
|
|
383
|
+
const { refundWei, operatorTakeWei } = await chain.releaseLease(leaseId);
|
|
384
|
+
return {
|
|
385
|
+
leaseId,
|
|
386
|
+
refundWei,
|
|
387
|
+
operatorTakeWei
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Refund projection for UI meters. Uses the chain clock when the injected
|
|
392
|
+
* chain provides `chainNow()`; otherwise requires an explicit timestamp.
|
|
393
|
+
* Never Date.now() — the drift lesson from the blueprint's own E2E.
|
|
394
|
+
*/
|
|
395
|
+
async function projectGpuLeaseRefund(leaseId, chain, explicitNowSeconds) {
|
|
396
|
+
const lease = await chain.readLease(leaseId);
|
|
397
|
+
let nowSeconds = explicitNowSeconds;
|
|
398
|
+
if (nowSeconds === void 0) {
|
|
399
|
+
if (!chain.chainNow) throw new Error("projectGpuLeaseRefund: chain has no chainNow() — pass explicitNowSeconds");
|
|
400
|
+
nowSeconds = await chain.chainNow();
|
|
401
|
+
}
|
|
402
|
+
const { refundWei, operatorTakeWei } = projectRefundWei(lease, nowSeconds);
|
|
403
|
+
return {
|
|
404
|
+
refundWei,
|
|
405
|
+
operatorTakeWei,
|
|
406
|
+
nowSeconds
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
//#endregion
|
|
410
|
+
export { GPU_LEASE_JOBS, GPU_LEASE_REQUEST_ABI, GPU_LEASE_SCHEMA_VERSION, GPU_LEASE_VAULT_ABI, GpuLeaseOperatorClient, INTENT_VERSION, LEASE_STATE, canonicalQuotePayload, decodeGpuLeaseOutput, encodeGpuLeaseRequest, gpuLease, gpuLeaseIntentHash, maxAffordableSeconds, projectGpuLeaseRefund, projectRefundWei, releaseGpuLease, selectQuotes, validateQuote, validateQuoteIdentity, verifyOperatorQuote };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { c as MintScopedTokenOptions, d as TERMINAL_WS_ECHO_SUBPROTOCOL, f as Te
|
|
|
4
4
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as InteractiveSessionNotRunningError, m as InteractiveControlClaimOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimAcknowledgement, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as createInteractiveControlHolderId } from "./browser-interactive-control-controller-DRCfxOQz.js";
|
|
5
5
|
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-ykaThYp6.js";
|
|
6
6
|
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, q as LineApplicationView, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-BTZTbYDz.js";
|
|
7
|
-
import { A as
|
|
7
|
+
import { A as BackendRegistryInteractionKind, C as SandboxFleet, D as parseSSEStream, E as ParsedSSEEvent, F as backendRegistryResponseSchema, I as isBackendRegistryInteractionKind, L as parseBackendRegistryResponse, M as backendRegistryCapabilitiesSchema, N as backendRegistryEntrySchema, O as BackendRegistryCapabilities, P as backendRegistryInteractionKindSchema, R as parseBackendRegistryResponseBody, S as InstancesClient, T as ParseSSEStreamOptions, _ as HostedInstance, a as Team, b as InstanceRestartingError, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as EnsureInstanceOptions, h as RunsClient, i as Sandbox, j as BackendRegistryResponse, k as BackendRegistryEntry, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as InstanceProfile, w as SandboxFleetClient, x as InstanceStart, y as InstanceRecord } from "./client-6u7a1HMx.js";
|
|
8
8
|
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as StateError, h as ServerError, i as EgressProxyRecoveryError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxErrorJson, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-DS32ViPj.js";
|
|
9
9
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-BoQeoNOD.js";
|
|
10
10
|
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-BXcL8P-U.js";
|
|
@@ -870,8 +870,8 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
870
870
|
off: "off";
|
|
871
871
|
}>>;
|
|
872
872
|
logs: z.ZodOptional<z.ZodEnum<{
|
|
873
|
-
off: "off";
|
|
874
873
|
on: "on";
|
|
874
|
+
off: "off";
|
|
875
875
|
}>>;
|
|
876
876
|
}, z.core.$strict>>;
|
|
877
877
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -1199,8 +1199,8 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1199
1199
|
off: "off";
|
|
1200
1200
|
}>>;
|
|
1201
1201
|
logs: z.ZodOptional<z.ZodEnum<{
|
|
1202
|
-
off: "off";
|
|
1203
1202
|
on: "on";
|
|
1203
|
+
off: "off";
|
|
1204
1204
|
}>>;
|
|
1205
1205
|
}, z.core.$strict>>;
|
|
1206
1206
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -1538,8 +1538,8 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1538
1538
|
off: "off";
|
|
1539
1539
|
}>>;
|
|
1540
1540
|
logs: z.ZodOptional<z.ZodEnum<{
|
|
1541
|
-
off: "off";
|
|
1542
1541
|
on: "on";
|
|
1542
|
+
off: "off";
|
|
1543
1543
|
}>>;
|
|
1544
1544
|
}, z.core.$strict>>;
|
|
1545
1545
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -1862,8 +1862,8 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1862
1862
|
off: "off";
|
|
1863
1863
|
}>>;
|
|
1864
1864
|
logs: z.ZodOptional<z.ZodEnum<{
|
|
1865
|
-
off: "off";
|
|
1866
1865
|
on: "on";
|
|
1866
|
+
off: "off";
|
|
1867
1867
|
}>>;
|
|
1868
1868
|
}, z.core.$strict>>;
|
|
1869
1869
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -2191,8 +2191,8 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2191
2191
|
off: "off";
|
|
2192
2192
|
}>>;
|
|
2193
2193
|
logs: z.ZodOptional<z.ZodEnum<{
|
|
2194
|
-
off: "off";
|
|
2195
2194
|
on: "on";
|
|
2195
|
+
off: "off";
|
|
2196
2196
|
}>>;
|
|
2197
2197
|
}, z.core.$strict>>;
|
|
2198
2198
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -2625,8 +2625,8 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2625
2625
|
off: "off";
|
|
2626
2626
|
}>>;
|
|
2627
2627
|
logs: z.ZodOptional<z.ZodEnum<{
|
|
2628
|
-
off: "off";
|
|
2629
2628
|
on: "on";
|
|
2629
|
+
off: "off";
|
|
2630
2630
|
}>>;
|
|
2631
2631
|
}, z.core.$strict>>;
|
|
2632
2632
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -2954,8 +2954,8 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2954
2954
|
off: "off";
|
|
2955
2955
|
}>>;
|
|
2956
2956
|
logs: z.ZodOptional<z.ZodEnum<{
|
|
2957
|
-
off: "off";
|
|
2958
2957
|
on: "on";
|
|
2958
|
+
off: "off";
|
|
2959
2959
|
}>>;
|
|
2960
2960
|
}, z.core.$strict>>;
|
|
2961
2961
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -3293,8 +3293,8 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3293
3293
|
off: "off";
|
|
3294
3294
|
}>>;
|
|
3295
3295
|
logs: z.ZodOptional<z.ZodEnum<{
|
|
3296
|
-
off: "off";
|
|
3297
3296
|
on: "on";
|
|
3297
|
+
off: "off";
|
|
3298
3298
|
}>>;
|
|
3299
3299
|
}, z.core.$strict>>;
|
|
3300
3300
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -3617,8 +3617,8 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3617
3617
|
off: "off";
|
|
3618
3618
|
}>>;
|
|
3619
3619
|
logs: z.ZodOptional<z.ZodEnum<{
|
|
3620
|
-
off: "off";
|
|
3621
3620
|
on: "on";
|
|
3621
|
+
off: "off";
|
|
3622
3622
|
}>>;
|
|
3623
3623
|
}, z.core.$strict>>;
|
|
3624
3624
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -3946,8 +3946,8 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3946
3946
|
off: "off";
|
|
3947
3947
|
}>>;
|
|
3948
3948
|
logs: z.ZodOptional<z.ZodEnum<{
|
|
3949
|
-
off: "off";
|
|
3950
3949
|
on: "on";
|
|
3950
|
+
off: "off";
|
|
3951
3951
|
}>>;
|
|
3952
3952
|
}, z.core.$strict>>;
|
|
3953
3953
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -4459,4 +4459,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4459
4459
|
}
|
|
4460
4460
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4461
4461
|
//#endregion
|
|
4462
|
-
export { ALL_BACKEND_TYPES, type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentInteractiveTerminalSession, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileSecurityPolicy, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunOutcome, type AgentRunOutcomeTracker, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendMcpServerStatus, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, type BackendRuntimeConfigUpdate, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchResult, type BatchResultAccumulator, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, type BrowserInteractiveSessionControllerOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type ConversationTurnOptions, type ConversationTurnResult, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteMatchingSandboxOutcome, type DeleteMatchingSandboxResult, type DeleteMatchingSandboxesFilter, type DeleteMatchingSandboxesOptions, type DeleteMatchingSandboxesResult, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DownloadResult, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionResult, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EnsureInstanceOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, FileWriteConflictError, type FileWriteResult, type FleetAgentId, type FleetAgentPlacement, type FleetAgentResult, type FleetAgentRunStatus, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type FleetPromptDispatchResult, type FleetRunEvent, type FleetRunOptions, type ForkAcknowledgement, type ForkCounts, type ForkIdempotency, type ForkLookupOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, type InstanceProfile, type InstanceRecord, InstanceRestartingError, type InstanceStart, InstancesClient, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAttachRequest, type InteractiveControlClaimAcknowledgement, type InteractiveControlClaimOptions, type InteractiveControlClaimRequest, type InteractivePromptCommand, type InteractiveRequestOptions, type InteractiveSessionControlClaim, InteractiveSessionControlController, type InteractiveSessionControlControllerOptions, type InteractiveSessionControlTransport, InteractiveSessionController, type InteractiveSessionControllerOptions, type InteractiveSessionControllerTransport, InteractiveSessionHandle, type InteractiveSessionHandleOptions, type InteractiveSessionHost, type InteractiveSessionIdentity, type InteractiveSessionIncarnationId, type InteractiveSessionInfo, InteractiveSessionNotRunningError, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, type Line, type LineAgentRolePolicy, type LineAllowance, type LineAllowanceSubject, type LineApplication, type LineApplicationAttachOptions, type LineApplicationRequest, type LineApplicationResult, type LineApplicationState, type LineApplicationView, type LineAttachOptions, type LineAttachment, type LineAttachmentReauthorization, type LineExecutionKey, type LineFromConnectionInput, type LineInstanceAttachOptions, type LineInstanceCreate, type LineLimits, type LineMember, type LineMemberInstance, type LineMemberPatch, type LineMemberSpec, type LineMessage, type LineNumberInventory, type LineProvider, type LineReminderPreferences, type LineReplyCode, type LineReplyCodeInput, type LineReplyGate, type LineRespondAgent, type LineRespondView, type LineRole, type LineSendInput, type LineSendReceipt, type LineSenderVerification, type LineSenderVerificationStart, type LineThread, type LineTransport, type LineVoice, type LineVoiceOptions, LinesClient, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, ManagedProcessClient, type ManagedProcessJobs, type ManagedProcessOptions, type ManagedProcessRecord, type ManagedProcessResumeOptions, type ManagedProcessSpec, type ManagedProcessState, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type RawEvidenceArchiveManifest, type RawEvidenceDirectoryExport, type RawEvidenceExport, type RawEvidenceExportOptions, type RawEvidenceNativeFile, type RawEvidencePayloadFile, type RawEvidenceRecordsFile, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, ResumeEnvRequiredError, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxCreateOutcome, type SandboxCreateReceipt, type SandboxDeleteAcknowledgement, type SandboxDeleteOptions, type SandboxDeleteOutcome, type SandboxEnvRecovery, type SandboxEnvRecoveryView, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetAgent, type SandboxFleetAgentSpec, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetParent, type SandboxFleetPlacement, type SandboxFleetPolicy, type SandboxFleetProfileRef, type SandboxFleetSpend, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, SandboxLines, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRunGeneration, type SandboxRuntimeCapabilities, type SandboxRuntimeHealth, SandboxSession, type SandboxShape, type SandboxShapePreset, type SandboxShapesInfo, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionExecutionInfo, type SessionExecutionStatus, type SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageAdmission, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotDeleteAcknowledgement, type SnapshotDeleteOutcome, type SnapshotIdempotency, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalInteractiveSessionIdentity, type TerminalOutputMessage, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WorkspaceOperationLookup, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
4462
|
+
export { ALL_BACKEND_TYPES, type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentInteractiveTerminalSession, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileSecurityPolicy, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunOutcome, type AgentRunOutcomeTracker, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendMcpServerStatus, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, type BackendRuntimeConfigUpdate, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchResult, type BatchResultAccumulator, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, type BrowserInteractiveSessionControllerOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type ConversationTurnOptions, type ConversationTurnResult, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteMatchingSandboxOutcome, type DeleteMatchingSandboxResult, type DeleteMatchingSandboxesFilter, type DeleteMatchingSandboxesOptions, type DeleteMatchingSandboxesResult, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DownloadResult, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionResult, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EnsureInstanceOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, FileWriteConflictError, type FileWriteResult, type FleetAgentId, type FleetAgentPlacement, type FleetAgentResult, type FleetAgentRunStatus, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type FleetPromptDispatchResult, type FleetRunEvent, type FleetRunOptions, type ForkAcknowledgement, type ForkCounts, type ForkIdempotency, type ForkLookupOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, type InstanceProfile, type InstanceRecord, InstanceRestartingError, type InstanceStart, InstancesClient, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAttachRequest, type InteractiveControlClaimAcknowledgement, type InteractiveControlClaimOptions, type InteractiveControlClaimRequest, type InteractivePromptCommand, type InteractiveRequestOptions, type InteractiveSessionControlClaim, InteractiveSessionControlController, type InteractiveSessionControlControllerOptions, type InteractiveSessionControlTransport, InteractiveSessionController, type InteractiveSessionControllerOptions, type InteractiveSessionControllerTransport, InteractiveSessionHandle, type InteractiveSessionHandleOptions, type InteractiveSessionHost, type InteractiveSessionIdentity, type InteractiveSessionIncarnationId, type InteractiveSessionInfo, InteractiveSessionNotRunningError, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, type Line, type LineAgentRolePolicy, type LineAllowance, type LineAllowanceSubject, type LineApplication, type LineApplicationAttachOptions, type LineApplicationRequest, type LineApplicationResult, type LineApplicationState, type LineApplicationView, type LineAttachOptions, type LineAttachment, type LineAttachmentReauthorization, type LineExecutionKey, type LineFromConnectionInput, type LineInstanceAttachOptions, type LineInstanceCreate, type LineLimits, type LineMember, type LineMemberInstance, type LineMemberPatch, type LineMemberSpec, type LineMessage, type LineNumberInventory, type LineProvider, type LineReminderPreferences, type LineReplyCode, type LineReplyCodeInput, type LineReplyGate, type LineRespondAgent, type LineRespondView, type LineRole, type LineSendInput, type LineSendReceipt, type LineSenderVerification, type LineSenderVerificationStart, type LineThread, type LineTransport, type LineVoice, type LineVoiceOptions, LinesClient, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, ManagedProcessClient, type ManagedProcessJobs, type ManagedProcessOptions, type ManagedProcessRecord, type ManagedProcessResumeOptions, type ManagedProcessSpec, type ManagedProcessState, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type RawEvidenceArchiveManifest, type RawEvidenceDirectoryExport, type RawEvidenceExport, type RawEvidenceExportOptions, type RawEvidenceNativeFile, type RawEvidencePayloadFile, type RawEvidenceRecordsFile, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, ResumeEnvRequiredError, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunOptions, type RunPlacement, type RunPlacementRecord, type RunRecord, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, type RunWaitOptions, RunsClient, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxCreateOutcome, type SandboxCreateReceipt, type SandboxDeleteAcknowledgement, type SandboxDeleteOptions, type SandboxDeleteOutcome, type SandboxEnvRecovery, type SandboxEnvRecoveryView, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetAgent, type SandboxFleetAgentSpec, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetParent, type SandboxFleetPlacement, type SandboxFleetPolicy, type SandboxFleetProfileRef, type SandboxFleetSpend, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, SandboxLines, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRunGeneration, type SandboxRuntimeCapabilities, type SandboxRuntimeHealth, SandboxSession, type SandboxShape, type SandboxShapePreset, type SandboxShapesInfo, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionExecutionInfo, type SessionExecutionStatus, type SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageAdmission, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotDeleteAcknowledgement, type SnapshotDeleteOutcome, type SnapshotIdempotency, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalInteractiveSessionIdentity, type TerminalOutputMessage, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WorkspaceOperationLookup, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as parseBackendType, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-C7b_Gpa0.js";
|
|
2
2
|
import { D as parseSSEStream, F as deriveAgentResultOutcome, I as deriveAgentRunOutcome, M as normalizeRuntimeBackendConfig, P as createAgentRunOutcomeTracker, a as TERMINAL_WS_ECHO_SUBPROTOCOL, i as TerminalStreamError, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController } from "./interactive-controller-5_ixpFnR.js";
|
|
3
3
|
import { a as FileWriteConflictError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as ValidationError, h as TimeoutError, i as EgressProxyRecoveryError, l as PartialFailureError, m as StateError, n as CapabilityError, o as KeyBudgetExhaustedError, p as ServerError, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-D1JIX7Jm.js";
|
|
4
|
-
import { _ as
|
|
4
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-BtsaKP2y.js";
|
|
5
5
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
6
6
|
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, M as toOtelJson, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, _ as collectAgentFinalMessageText, b as isToolBearingEvent, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, j as otelTraceIdForTangleTrace, k as buildTraceExportPayload, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileSkills, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-D3VcDY8b.js";
|
|
7
7
|
import { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
@@ -1481,4 +1481,4 @@ function stripUndefined(value) {
|
|
|
1481
1481
|
return Object.fromEntries(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, stripUndefined(v)]));
|
|
1482
1482
|
}
|
|
1483
1483
|
//#endregion
|
|
1484
|
-
export { ALL_BACKEND_TYPES, AuthError, BrowserInteractiveSessionControlController, BrowserInteractiveSessionController, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EdgeNotReadyError, EgressProxyRecoveryError, FileWriteConflictError, GPU_LEASE_PROVIDER_NAMES, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, ImageBuilder, InstanceRestartingError, InstancesClient, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveSessionNotRunningError, InteractiveTerminalFrameLog, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, QuotaError, ResumeEnvRequiredError, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxLines, SandboxSession, SandboxTaskSession, ServerError, StateError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
1484
|
+
export { ALL_BACKEND_TYPES, AuthError, BrowserInteractiveSessionControlController, BrowserInteractiveSessionController, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EdgeNotReadyError, EgressProxyRecoveryError, FileWriteConflictError, GPU_LEASE_PROVIDER_NAMES, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, ImageBuilder, InstanceRestartingError, InstancesClient, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveSessionNotRunningError, InteractiveTerminalFrameLog, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, QuotaError, ResumeEnvRequiredError, RunsClient, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxLines, SandboxSession, SandboxTaskSession, ServerError, StateError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|