rightcard-mcp 0.1.15 → 0.1.16
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/configurable.d.ts +3 -0
- package/dist/configurable.js +2 -2
- package/package.json +1 -1
package/dist/configurable.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ export interface ConfigurableCardSpec {
|
|
|
7
7
|
eligible: SpendCategory[];
|
|
8
8
|
note: string;
|
|
9
9
|
matchNeedles: string[];
|
|
10
|
+
/** When set, only these card ids use the spec (needles ignored). Venmo split
|
|
11
|
+
* its card in Oct 2026; both names contain "venmo". Mirrors the Swift spec. */
|
|
12
|
+
exactIDs?: string[];
|
|
10
13
|
multiCardMax: number;
|
|
11
14
|
}
|
|
12
15
|
export declare const CONFIGURABLE_SPECS: ConfigurableCardSpec[];
|
package/dist/configurable.js
CHANGED
|
@@ -42,7 +42,7 @@ export const CONFIGURABLE_SPECS = [
|
|
|
42
42
|
key: "venmo_credit_card", displayName: "Venmo Credit Card", bonusRate: 3, slots: 1,
|
|
43
43
|
eligible: ["dining", "grocery", "gas", "travel", "transit"],
|
|
44
44
|
note: "3% back on the category you spend most in each month (2% on your second, 1% everywhere else). Venmo applies the tiers automatically from your actual spending. Set the category you expect to top so RightCard recommends it there. The 2% tier isn't modeled.",
|
|
45
|
-
matchNeedles: ["venmo"], multiCardMax: 1,
|
|
45
|
+
matchNeedles: ["venmo"], multiCardMax: 1, exactIDs: ["venmo_credit_card"],
|
|
46
46
|
},
|
|
47
47
|
];
|
|
48
48
|
/** ConfigurableCardCatalog.normalize: lowercase, "+" → "plus", strip non-alphanumerics. */
|
|
@@ -51,6 +51,6 @@ export function normalizeConfigurable(s) {
|
|
|
51
51
|
}
|
|
52
52
|
export function specFor(card) {
|
|
53
53
|
const hay = normalizeConfigurable(card.id) + normalizeConfigurable(card.displayName);
|
|
54
|
-
return CONFIGURABLE_SPECS.find((spec) => spec.matchNeedles.some((n) => hay.includes(n))) ?? null;
|
|
54
|
+
return CONFIGURABLE_SPECS.find((spec) => spec.exactIDs ? spec.exactIDs.includes(card.id) : spec.matchNeedles.some((n) => hay.includes(n))) ?? null;
|
|
55
55
|
}
|
|
56
56
|
export const isConfigurable = (card) => specFor(card) !== null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rightcard-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
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",
|