rightcard-mcp 0.1.7 → 0.1.8
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/engine.js +7 -3
- package/package.json +1 -1
package/dist/engine.js
CHANGED
|
@@ -155,7 +155,9 @@ function bestBaseCard(cards, category, subKey, merchantQuery, overrides, cardCon
|
|
|
155
155
|
}
|
|
156
156
|
function rateContext(card, earn, valueCents, override, configured, v, category, now, chosenCategoryCount) {
|
|
157
157
|
const valueStr = formatPercent(valueCents);
|
|
158
|
-
|
|
158
|
+
// "everyday purchases", not "general" — mirrors SpendCategory.inSentence
|
|
159
|
+
// in the app (Oct 8 2026).
|
|
160
|
+
const cat = category === "general" ? "everyday purchases" : CATEGORY_DISPLAY[category].toLowerCase();
|
|
159
161
|
const disp = CATEGORY_DISPLAY[category];
|
|
160
162
|
let reason;
|
|
161
163
|
const lines = [];
|
|
@@ -205,10 +207,12 @@ function rateContext(card, earn, valueCents, override, configured, v, category,
|
|
|
205
207
|
// Mirrors the Swift engine (Sep 2026): a points/miles card in cash mode
|
|
206
208
|
// still EARNS points — never blur the earn (4x points) with its value (4%).
|
|
207
209
|
if (card.rewardCurrency !== null && card.rewardCurrency !== "cashback") {
|
|
208
|
-
lines.push(
|
|
210
|
+
lines.push(category === "general"
|
|
211
|
+
? `Base rate: ${formatMultiplier(earn)} ${earnUnitLabel(v, card)} → ${valueStr}`
|
|
212
|
+
: `Base ${cat} earn: ${formatMultiplier(earn)} ${earnUnitLabel(v, card)} → ${valueStr}`);
|
|
209
213
|
}
|
|
210
214
|
else {
|
|
211
|
-
lines.push(`Base ${cat} earn: ${valueStr}`);
|
|
215
|
+
lines.push(category === "general" ? `Base rate: ${valueStr}` : `Base ${cat} earn: ${valueStr}`);
|
|
212
216
|
}
|
|
213
217
|
}
|
|
214
218
|
let caption = configured ? "your bonus category · value per $1" : override ? "rotating bonus · value per $1" : "value per $1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rightcard-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
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",
|