@t2000/cli 5.18.0 → 5.19.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.
|
@@ -81765,6 +81765,23 @@ async function listModels(opts) {
|
|
|
81765
81765
|
}));
|
|
81766
81766
|
}
|
|
81767
81767
|
var RECEIPT_ANCHORED_SUFFIX = "::anchor::ReceiptAnchored";
|
|
81768
|
+
function normalizeClaims(claims) {
|
|
81769
|
+
if (!claims) {
|
|
81770
|
+
return [];
|
|
81771
|
+
}
|
|
81772
|
+
if (Array.isArray(claims)) {
|
|
81773
|
+
return claims.filter((c) => c.name).map((c) => ({
|
|
81774
|
+
name: c.name,
|
|
81775
|
+
status: c.status ?? "unknown",
|
|
81776
|
+
source: c.source
|
|
81777
|
+
}));
|
|
81778
|
+
}
|
|
81779
|
+
return Object.entries(claims).map(([name, v]) => ({
|
|
81780
|
+
name,
|
|
81781
|
+
status: v?.status ?? "unknown",
|
|
81782
|
+
source: v?.source
|
|
81783
|
+
}));
|
|
81784
|
+
}
|
|
81768
81785
|
function fullnodeUrl(network) {
|
|
81769
81786
|
return network === "testnet" ? "https://fullnode.testnet.sui.io" : "https://fullnode.mainnet.sui.io";
|
|
81770
81787
|
}
|
|
@@ -81858,6 +81875,7 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
81858
81875
|
});
|
|
81859
81876
|
const upstreamEv = receipt.event_log.find((e) => e.type === "upstream.verified");
|
|
81860
81877
|
const upstreamOk = upstreamEv?.result === "verified";
|
|
81878
|
+
const claims = normalizeClaims(upstreamEv?.claims);
|
|
81861
81879
|
checks.push({
|
|
81862
81880
|
name: "Confidential upstream",
|
|
81863
81881
|
status: upstreamEv ? upstreamOk ? "pass" : "fail" : "skip",
|
|
@@ -81959,8 +81977,11 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
81959
81977
|
workloadId,
|
|
81960
81978
|
upstream: upstreamEv ? {
|
|
81961
81979
|
provider: upstreamEv.provider ?? upstreamEv.upstream_name,
|
|
81980
|
+
modelId: upstreamEv.model_id,
|
|
81962
81981
|
result: upstreamEv.result,
|
|
81963
|
-
tcbStatus: upstreamEv.tcb_status
|
|
81982
|
+
tcbStatus: upstreamEv.tcb_status,
|
|
81983
|
+
sessionId: upstreamEv.session_id,
|
|
81984
|
+
claims: claims.length > 0 ? claims : void 0
|
|
81964
81985
|
} : void 0,
|
|
81965
81986
|
anchor
|
|
81966
81987
|
};
|
|
@@ -83062,7 +83083,7 @@ Through this wallet you can reach essentially any major external API, billed to
|
|
|
83062
83083
|
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).
|
|
83063
83084
|
|
|
83064
83085
|
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.`;
|
|
83065
|
-
var PKG_VERSION = "5.
|
|
83086
|
+
var PKG_VERSION = "5.19.0";
|
|
83066
83087
|
console.log = (...args) => console.error("[log]", ...args);
|
|
83067
83088
|
console.warn = (...args) => console.error("[warn]", ...args);
|
|
83068
83089
|
async function startMcpServer(opts) {
|
|
@@ -83136,4 +83157,4 @@ mime-types/index.js:
|
|
|
83136
83157
|
@scure/bip39/index.js:
|
|
83137
83158
|
(*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
|
|
83138
83159
|
*/
|
|
83139
|
-
//# sourceMappingURL=dist-
|
|
83160
|
+
//# sourceMappingURL=dist-MKAGVSAK.js.map
|