@t2000/engine 0.53.3 → 0.53.4

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/index.js CHANGED
@@ -1418,14 +1418,14 @@ var balanceCheckTool = buildTool({
1418
1418
  const subjectPrefix = isSelfQuery ? "Balance" : `Balance for ${address.slice(0, 6)}\u2026${address.slice(-4)}`;
1419
1419
  const defiSummaryText = (() => {
1420
1420
  if (defi2.source === "degraded") {
1421
- return ' DeFi positions (Bluefin / Suilend / Cetus / etc.): UNAVAILABLE \u2014 DeFi data source is currently unreachable. Do NOT assert "no DeFi positions"; tell the user this slice is temporarily unknown.';
1421
+ return ' DeFi positions (Bluefin / Suilend / Cetus / etc.): UNAVAILABLE \u2014 DeFi data source is currently unreachable. Do NOT assert "no DeFi positions"; tell the user this slice is temporarily unknown and the total above EXCLUDES DeFi.';
1422
1422
  }
1423
1423
  if (defi2.totalUsd > 0) {
1424
1424
  const partialNote = defi2.source === "partial" ? " (partial \u2014 one or more protocols failed; value may under-count)" : "";
1425
1425
  return ` Other DeFi positions (LPs/staking/lending across ${Object.keys(defi2.perProtocol).join("/")}): $${defi2.totalUsd.toFixed(2)}${partialNote}.`;
1426
1426
  }
1427
1427
  if (defi2.source === "partial") {
1428
- return " DeFi positions: $0 across the protocols that responded, but at least one protocol failed \u2014 caveat that the picture may be incomplete.";
1428
+ return ' DeFi positions: UNKNOWN \u2014 at least one protocol failed to respond. The total above EXCLUDES any DeFi the failing protocols may hold. Do NOT assert "no DeFi positions" or "DeFi: $0"; tell the user DeFi is temporarily unreachable for this address.';
1429
1429
  }
1430
1430
  return "";
1431
1431
  })();
@@ -1465,14 +1465,14 @@ var balanceCheckTool = buildTool({
1465
1465
  const sdkSaveableUsdsui = usdsuiHolding ? usdsuiHolding.balance ?? 0 : 0;
1466
1466
  const sdkDefiSummaryText = (() => {
1467
1467
  if (defi.source === "degraded") {
1468
- return ' DeFi positions: UNAVAILABLE \u2014 data source unreachable. Do NOT claim "no DeFi positions"; report this slice as temporarily unknown.';
1468
+ return ' DeFi positions: UNAVAILABLE \u2014 data source unreachable. Do NOT claim "no DeFi positions"; report this slice as temporarily unknown and the total above EXCLUDES DeFi.';
1469
1469
  }
1470
1470
  if (defi.totalUsd > 0) {
1471
1471
  const partialNote = defi.source === "partial" ? " (partial \u2014 one or more protocols failed; value may under-count)" : "";
1472
1472
  return ` Other DeFi positions (LPs/staking/lending across ${Object.keys(defi.perProtocol).join("/")}): $${defi.totalUsd.toFixed(2)}${partialNote}.`;
1473
1473
  }
1474
1474
  if (defi.source === "partial") {
1475
- return " DeFi positions: $0 across the protocols that responded, but at least one protocol failed \u2014 caveat that the picture may be incomplete.";
1475
+ return ' DeFi positions: UNKNOWN \u2014 at least one protocol failed to respond. The total above EXCLUDES any DeFi the failing protocols may hold. Do NOT assert "no DeFi positions" or "DeFi: $0"; tell the user DeFi is temporarily unreachable for this wallet.';
1476
1476
  }
1477
1477
  return "";
1478
1478
  })();