@tangle-network/sandbox 0.64.40 → 0.65.1

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.
@@ -211,7 +211,7 @@ interface QuoteFilterInput {
211
211
  * class, duration, device count, the escrow derived from them,
212
212
  * confidentiality, and expiry.
213
213
  */
214
- declare function validateQuote(quote: OperatorQuote, input: QuoteFilterInput): ValidatedQuote | QuoteRejection;
214
+ declare function validateOperatorQuote(quote: OperatorQuote, input: QuoteFilterInput): ValidatedQuote | QuoteRejection;
215
215
  /**
216
216
  * Collect validated quotes from N operators and rank cheapest-first.
217
217
  * Operators that fail validation (or whose fetch rejects) are reported,
@@ -517,4 +517,4 @@ declare function projectGpuLeaseRefund(leaseId: `0x${string}`, chain: GpuLeaseCh
517
517
  nowSeconds: bigint;
518
518
  }>;
519
519
  //#endregion
520
- export { Capabilities, ClassCapability, GPU_LEASE_JOBS, GPU_LEASE_REQUEST_ABI, GPU_LEASE_SCHEMA_VERSION, GPU_LEASE_VAULT_ABI, GpuLeaseChain, GpuLeaseOperatorClient, GpuLeaseOptions, GpuLeaseOutcome, GpuLeaseOutputDecoded, GpuLeaseRequestParams, INTENT_VERSION, JsonRequestBody, LEASE_STATE, LeaseStatus, OperatorEndpoint, OperatorQuote, QuoteFilterInput, QuoteParams, QuoteRejection, RefundReceipt, SessionChallenge, SessionCredential, ValidatedQuote, VaultLeaseView, canonicalQuotePayload, decodeGpuLeaseOutput, encodeGpuLeaseRequest, gpuLease, gpuLeaseIntentHash, maxAffordableSeconds, projectGpuLeaseRefund, projectRefundWei, releaseGpuLease, selectQuotes, validateQuote, validateQuoteIdentity, verifyOperatorQuote };
520
+ export { Capabilities, ClassCapability, GPU_LEASE_JOBS, GPU_LEASE_REQUEST_ABI, GPU_LEASE_SCHEMA_VERSION, GPU_LEASE_VAULT_ABI, GpuLeaseChain, GpuLeaseOperatorClient, GpuLeaseOptions, GpuLeaseOutcome, GpuLeaseOutputDecoded, GpuLeaseRequestParams, INTENT_VERSION, JsonRequestBody, LEASE_STATE, LeaseStatus, OperatorEndpoint, OperatorQuote, QuoteFilterInput, QuoteParams, QuoteRejection, RefundReceipt, SessionChallenge, SessionCredential, ValidatedQuote, VaultLeaseView, canonicalQuotePayload, decodeGpuLeaseOutput, encodeGpuLeaseRequest, gpuLease, gpuLeaseIntentHash, maxAffordableSeconds, projectGpuLeaseRefund, projectRefundWei, releaseGpuLease, selectQuotes, validateOperatorQuote, validateQuoteIdentity, verifyOperatorQuote };
@@ -147,7 +147,7 @@ async function verifyOperatorQuote(quote) {
147
147
  * class, duration, device count, the escrow derived from them,
148
148
  * confidentiality, and expiry.
149
149
  */
150
- function validateQuote(quote, input) {
150
+ function validateOperatorQuote(quote, input) {
151
151
  const now = (input.now ?? Date.now)() / 1e3;
152
152
  if (quote.gpuClass !== input.requestedClass) return {
153
153
  kind: "class-mismatch",
@@ -197,7 +197,7 @@ function selectQuotes(quotes, input) {
197
197
  const ranked = [];
198
198
  const rejected = [];
199
199
  for (const { operator, quote } of quotes) {
200
- const result = validateQuote(quote, input);
200
+ const result = validateOperatorQuote(quote, input);
201
201
  if ("kind" in result) rejected.push({
202
202
  operator,
203
203
  reason: result
@@ -428,4 +428,4 @@ async function projectGpuLeaseRefund(leaseId, chain, explicitNowSeconds) {
428
428
  };
429
429
  }
430
430
  //#endregion
431
- 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 };
431
+ 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, validateOperatorQuote, validateQuoteIdentity, verifyOperatorQuote };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "0.64.40",
3
+ "version": "0.65.1",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -168,8 +168,8 @@
168
168
  "@tangle-network/sse-core": "0.0.0"
169
169
  },
170
170
  "tangleRelease": {
171
- "sourceSha": "95d18463475354e08cd77b9c9a446d64728edf91",
172
- "mergedAt": "2026-10-24T16:13:06-06:00"
171
+ "sourceSha": "fd20025ce7bffcc0afacd8d2b6b47c5b07839c15",
172
+ "mergedAt": "2026-10-24T17:40:20-06:00"
173
173
  },
174
174
  "scripts": {
175
175
  "build": "node scripts/build-dist.mjs",