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