@t2000/mcp 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.
- package/dist/bin.js +23 -2
- package/dist/bin.js.map +1 -1
- package/dist/index.js +23 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -81771,6 +81771,23 @@ async function listModels(opts) {
|
|
|
81771
81771
|
}));
|
|
81772
81772
|
}
|
|
81773
81773
|
var RECEIPT_ANCHORED_SUFFIX = "::anchor::ReceiptAnchored";
|
|
81774
|
+
function normalizeClaims(claims) {
|
|
81775
|
+
if (!claims) {
|
|
81776
|
+
return [];
|
|
81777
|
+
}
|
|
81778
|
+
if (Array.isArray(claims)) {
|
|
81779
|
+
return claims.filter((c) => c.name).map((c) => ({
|
|
81780
|
+
name: c.name,
|
|
81781
|
+
status: c.status ?? "unknown",
|
|
81782
|
+
source: c.source
|
|
81783
|
+
}));
|
|
81784
|
+
}
|
|
81785
|
+
return Object.entries(claims).map(([name, v]) => ({
|
|
81786
|
+
name,
|
|
81787
|
+
status: v?.status ?? "unknown",
|
|
81788
|
+
source: v?.source
|
|
81789
|
+
}));
|
|
81790
|
+
}
|
|
81774
81791
|
function fullnodeUrl(network) {
|
|
81775
81792
|
return network === "testnet" ? "https://fullnode.testnet.sui.io" : "https://fullnode.mainnet.sui.io";
|
|
81776
81793
|
}
|
|
@@ -81864,6 +81881,7 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
81864
81881
|
});
|
|
81865
81882
|
const upstreamEv = receipt.event_log.find((e) => e.type === "upstream.verified");
|
|
81866
81883
|
const upstreamOk = upstreamEv?.result === "verified";
|
|
81884
|
+
const claims = normalizeClaims(upstreamEv?.claims);
|
|
81867
81885
|
checks.push({
|
|
81868
81886
|
name: "Confidential upstream",
|
|
81869
81887
|
status: upstreamEv ? upstreamOk ? "pass" : "fail" : "skip",
|
|
@@ -81965,8 +81983,11 @@ async function verifyReceipt(receiptId, opts = {}) {
|
|
|
81965
81983
|
workloadId,
|
|
81966
81984
|
upstream: upstreamEv ? {
|
|
81967
81985
|
provider: upstreamEv.provider ?? upstreamEv.upstream_name,
|
|
81986
|
+
modelId: upstreamEv.model_id,
|
|
81968
81987
|
result: upstreamEv.result,
|
|
81969
|
-
tcbStatus: upstreamEv.tcb_status
|
|
81988
|
+
tcbStatus: upstreamEv.tcb_status,
|
|
81989
|
+
sessionId: upstreamEv.session_id,
|
|
81990
|
+
claims: claims.length > 0 ? claims : void 0
|
|
81970
81991
|
} : void 0,
|
|
81971
81992
|
anchor
|
|
81972
81993
|
};
|
|
@@ -83092,7 +83113,7 @@ CRITICAL: When the user asks to use any external or paid API, names a provider (
|
|
|
83092
83113
|
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.`;
|
|
83093
83114
|
|
|
83094
83115
|
// src/index.ts
|
|
83095
|
-
var PKG_VERSION = "5.
|
|
83116
|
+
var PKG_VERSION = "5.19.0" ;
|
|
83096
83117
|
console.log = (...args) => console.error("[log]", ...args);
|
|
83097
83118
|
console.warn = (...args) => console.error("[warn]", ...args);
|
|
83098
83119
|
async function startMcpServer(opts) {
|