@t2000/cli 5.20.0 → 5.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -96453,7 +96453,8 @@ async function listModels(opts) {
|
|
|
96453
96453
|
contextWindow: m.context_window ?? m.context_length,
|
|
96454
96454
|
inputPer1M: m.pricing?.input_per_1m ?? m.pricing?.prompt,
|
|
96455
96455
|
outputPer1M: m.pricing?.output_per_1m ?? m.pricing?.completion,
|
|
96456
|
-
privacy: m.privacy ?? m.privacy_tier
|
|
96456
|
+
privacy: m.privacy ?? m.privacy_tier,
|
|
96457
|
+
reasoning: m.reasoning
|
|
96457
96458
|
}));
|
|
96458
96459
|
}
|
|
96459
96460
|
var RECEIPT_ANCHORED_SUFFIX = "::anchor::ReceiptAnchored";
|
|
@@ -96562,7 +96563,15 @@ async function verifyTdxQuote(base, model, receiptWorkloadId) {
|
|
|
96562
96563
|
};
|
|
96563
96564
|
}
|
|
96564
96565
|
try {
|
|
96565
|
-
const
|
|
96566
|
+
const dcap = await Promise.resolve().then(() => __toESM(require_src2(), 1));
|
|
96567
|
+
const getCollateralAndVerify = dcap.getCollateralAndVerify ?? dcap.default?.getCollateralAndVerify;
|
|
96568
|
+
if (typeof getCollateralAndVerify !== "function") {
|
|
96569
|
+
return {
|
|
96570
|
+
status: "fail",
|
|
96571
|
+
forged: false,
|
|
96572
|
+
detail: "DCAP verifier unavailable in this build"
|
|
96573
|
+
};
|
|
96574
|
+
}
|
|
96566
96575
|
const quoteBytes = hexToBytes2(quoteHex.replace(/^0x/, ""));
|
|
96567
96576
|
const vr = await getCollateralAndVerify(quoteBytes);
|
|
96568
96577
|
const td = vr.report.asTd10() ?? vr.report.asTd15()?.base ?? null;
|
|
@@ -96688,7 +96697,6 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
96688
96697
|
});
|
|
96689
96698
|
}
|
|
96690
96699
|
}
|
|
96691
|
-
let signatureForged = false;
|
|
96692
96700
|
let sigStatus = "skip";
|
|
96693
96701
|
let sigDetail = "no signature on receipt";
|
|
96694
96702
|
if (receipt.signature?.value) {
|
|
@@ -96705,7 +96713,6 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
96705
96713
|
} else {
|
|
96706
96714
|
const ok = verifyReceiptSignature(receipt, att.signingKey);
|
|
96707
96715
|
sigStatus = ok ? "pass" : "fail";
|
|
96708
|
-
signatureForged = !ok;
|
|
96709
96716
|
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
96717
|
}
|
|
96711
96718
|
} catch {
|
|
@@ -96718,7 +96725,6 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
96718
96725
|
detail: sigDetail,
|
|
96719
96726
|
trust: sigStatus === "skip" ? "roadmap" : "trustless"
|
|
96720
96727
|
});
|
|
96721
|
-
let quoteForged = false;
|
|
96722
96728
|
if (opts.skipQuote) {
|
|
96723
96729
|
checks.push({
|
|
96724
96730
|
name: "TDX quote (DCAP)",
|
|
@@ -96732,7 +96738,6 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
96732
96738
|
opts.model ?? "phala/glm-5.2",
|
|
96733
96739
|
workloadId ?? ""
|
|
96734
96740
|
);
|
|
96735
|
-
quoteForged = q.forged;
|
|
96736
96741
|
checks.push({
|
|
96737
96742
|
name: "TDX quote (DCAP)",
|
|
96738
96743
|
status: q.status,
|
|
@@ -96740,9 +96745,12 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
96740
96745
|
trust: "trustless"
|
|
96741
96746
|
});
|
|
96742
96747
|
}
|
|
96748
|
+
const trustlessFailed = checks.some(
|
|
96749
|
+
(c) => c.trust === "trustless" && c.status === "fail"
|
|
96750
|
+
);
|
|
96743
96751
|
return {
|
|
96744
96752
|
receiptId,
|
|
96745
|
-
verified: Boolean(wireHash && workloadId) &&
|
|
96753
|
+
verified: Boolean(wireHash && workloadId) && !trustlessFailed,
|
|
96746
96754
|
anchorVerified,
|
|
96747
96755
|
checks,
|
|
96748
96756
|
wireHash,
|
|
@@ -97855,7 +97863,7 @@ Through this wallet you can reach essentially any major external API, billed to
|
|
|
97855
97863
|
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
97864
|
|
|
97857
97865
|
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.
|
|
97866
|
+
var PKG_VERSION = "5.21.0";
|
|
97859
97867
|
console.log = (...args) => console.error("[log]", ...args);
|
|
97860
97868
|
console.warn = (...args) => console.error("[warn]", ...args);
|
|
97861
97869
|
async function startMcpServer(opts) {
|
|
@@ -97929,4 +97937,4 @@ mime-types/index.js:
|
|
|
97929
97937
|
@scure/bip39/index.js:
|
|
97930
97938
|
(*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
|
|
97931
97939
|
*/
|
|
97932
|
-
//# sourceMappingURL=dist-
|
|
97940
|
+
//# sourceMappingURL=dist-FBZWN6ED.js.map
|