rightcard-mcp 0.1.20 → 0.1.21
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/valuation.js +8 -4
- package/package.json +1 -1
package/dist/valuation.js
CHANGED
|
@@ -119,16 +119,20 @@ const hay = (c) => (c.id + " " + c.displayName).toLowerCase();
|
|
|
119
119
|
/** RewardValuation.pooledPrograms(wallet:) */
|
|
120
120
|
export function pooledPrograms(wallet) {
|
|
121
121
|
const map = {};
|
|
122
|
-
|
|
122
|
+
// The plain no-fee "Chase Sapphire" can't transfer, so only Preferred /
|
|
123
|
+
// Reserve unlock; it pools like a Freedom card (mirrors Swift, Nov 11 2026).
|
|
124
|
+
const isURUnlock = (c) => {
|
|
123
125
|
const s = hay(c);
|
|
124
|
-
return s.includes("sapphire") || (s.includes("ink") && s.includes("preferred"));
|
|
125
|
-
}
|
|
126
|
+
return s.includes("sapphire preferred") || s.includes("sapphire reserve") || (s.includes("ink") && s.includes("preferred"));
|
|
127
|
+
};
|
|
128
|
+
const urUnlocked = wallet.some(isURUnlock);
|
|
126
129
|
if (urUnlocked) {
|
|
127
130
|
for (const c of wallet) {
|
|
128
131
|
if (c.rewardCurrency !== "cashback")
|
|
129
132
|
continue;
|
|
130
133
|
const s = hay(c);
|
|
131
|
-
if (s.includes("freedom") || (s.includes("
|
|
134
|
+
if (s.includes("freedom") || (s.includes("sapphire") && !isURUnlock(c))
|
|
135
|
+
|| (s.includes("ink") && (s.includes("cash") || s.includes("unlimited"))))
|
|
132
136
|
map[c.id] = "chaseUR";
|
|
133
137
|
}
|
|
134
138
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rightcard-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"mcpName": "ai.rightcard/mcp",
|
|
5
5
|
"description": "RightCard MCP — the card-selection oracle for agents. Which of your credit cards to use at any store, from verified data. No bank login.",
|
|
6
6
|
"type": "module",
|