@t2000/cli 5.20.0 → 5.20.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.
|
@@ -96562,7 +96562,15 @@ async function verifyTdxQuote(base, model, receiptWorkloadId) {
|
|
|
96562
96562
|
};
|
|
96563
96563
|
}
|
|
96564
96564
|
try {
|
|
96565
|
-
const
|
|
96565
|
+
const dcap = await Promise.resolve().then(() => __toESM(require_src2(), 1));
|
|
96566
|
+
const getCollateralAndVerify = dcap.getCollateralAndVerify ?? dcap.default?.getCollateralAndVerify;
|
|
96567
|
+
if (typeof getCollateralAndVerify !== "function") {
|
|
96568
|
+
return {
|
|
96569
|
+
status: "fail",
|
|
96570
|
+
forged: false,
|
|
96571
|
+
detail: "DCAP verifier unavailable in this build"
|
|
96572
|
+
};
|
|
96573
|
+
}
|
|
96566
96574
|
const quoteBytes = hexToBytes2(quoteHex.replace(/^0x/, ""));
|
|
96567
96575
|
const vr = await getCollateralAndVerify(quoteBytes);
|
|
96568
96576
|
const td = vr.report.asTd10() ?? vr.report.asTd15()?.base ?? null;
|
|
@@ -96688,7 +96696,6 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
96688
96696
|
});
|
|
96689
96697
|
}
|
|
96690
96698
|
}
|
|
96691
|
-
let signatureForged = false;
|
|
96692
96699
|
let sigStatus = "skip";
|
|
96693
96700
|
let sigDetail = "no signature on receipt";
|
|
96694
96701
|
if (receipt.signature?.value) {
|
|
@@ -96705,7 +96712,6 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
96705
96712
|
} else {
|
|
96706
96713
|
const ok = verifyReceiptSignature(receipt, att.signingKey);
|
|
96707
96714
|
sigStatus = ok ? "pass" : "fail";
|
|
96708
|
-
signatureForged = !ok;
|
|
96709
96715
|
sigDetail = ok ? `signed by the attested receipt key (${receipt.signature.key_id ?? "key"})` : "signature does NOT recover the attested receipt key \u2014 forged/altered";
|
|
96710
96716
|
}
|
|
96711
96717
|
} catch {
|
|
@@ -96718,7 +96724,6 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
96718
96724
|
detail: sigDetail,
|
|
96719
96725
|
trust: sigStatus === "skip" ? "roadmap" : "trustless"
|
|
96720
96726
|
});
|
|
96721
|
-
let quoteForged = false;
|
|
96722
96727
|
if (opts.skipQuote) {
|
|
96723
96728
|
checks.push({
|
|
96724
96729
|
name: "TDX quote (DCAP)",
|
|
@@ -96732,7 +96737,6 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
96732
96737
|
opts.model ?? "phala/glm-5.2",
|
|
96733
96738
|
workloadId ?? ""
|
|
96734
96739
|
);
|
|
96735
|
-
quoteForged = q.forged;
|
|
96736
96740
|
checks.push({
|
|
96737
96741
|
name: "TDX quote (DCAP)",
|
|
96738
96742
|
status: q.status,
|
|
@@ -96740,9 +96744,12 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
96740
96744
|
trust: "trustless"
|
|
96741
96745
|
});
|
|
96742
96746
|
}
|
|
96747
|
+
const trustlessFailed = checks.some(
|
|
96748
|
+
(c) => c.trust === "trustless" && c.status === "fail"
|
|
96749
|
+
);
|
|
96743
96750
|
return {
|
|
96744
96751
|
receiptId,
|
|
96745
|
-
verified: Boolean(wireHash && workloadId) &&
|
|
96752
|
+
verified: Boolean(wireHash && workloadId) && !trustlessFailed,
|
|
96746
96753
|
anchorVerified,
|
|
96747
96754
|
checks,
|
|
96748
96755
|
wireHash,
|
|
@@ -97855,7 +97862,7 @@ Through this wallet you can reach essentially any major external API, billed to
|
|
|
97855
97862
|
CRITICAL: When the user asks to use any external or paid API, names a provider (e.g. "via fal.ai", "with ElevenLabs"), or requests a capability one of the services above provides, DO NOT say you cannot reach that service, that it isn't on an allowlist, or that there's no connector \u2014 and do NOT fall back to writing a script for the user to run. You CAN do it directly through this wallet. Use t2000_services to discover the endpoint and request shape, then t2000_pay to execute, then show the user the result (display image/audio URLs returned in the response).
|
|
97856
97863
|
|
|
97857
97864
|
Spending is the user's own USDC and every t2000_pay call is bounded by maxPrice. For larger or multi-step spends, state the estimated cost first and proceed once the user is happy. Use t2000_balance to check funds. The v4 wallet is payments-only; savings / lending live on audric.ai.`;
|
|
97858
|
-
var PKG_VERSION = "5.20.
|
|
97865
|
+
var PKG_VERSION = "5.20.1";
|
|
97859
97866
|
console.log = (...args) => console.error("[log]", ...args);
|
|
97860
97867
|
console.warn = (...args) => console.error("[warn]", ...args);
|
|
97861
97868
|
async function startMcpServer(opts) {
|
|
@@ -97929,4 +97936,4 @@ mime-types/index.js:
|
|
|
97929
97936
|
@scure/bip39/index.js:
|
|
97930
97937
|
(*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
|
|
97931
97938
|
*/
|
|
97932
|
-
//# sourceMappingURL=dist-
|
|
97939
|
+
//# sourceMappingURL=dist-O7YCMJB2.js.map
|