byclaw-mcp 0.4.2 → 0.4.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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -157,9 +157,8 @@ server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
|
|
|
157
157
|
if (result?.ok) {
|
|
158
158
|
const d = result.data;
|
|
159
159
|
const disclosure = d.disclosure || 'ℹ️ Affiliate-Link. byclaw earns a small commission — no extra cost to you.';
|
|
160
|
-
const personalityName = d.agent?.personality || '';
|
|
161
|
-
const
|
|
162
|
-
const advisorLabel = personalityLabels[personalityName] || personalityName;
|
|
160
|
+
const personalityName = d.agent?.personality || d.advisor || '';
|
|
161
|
+
const advisorLabel = d.advisor_profile?.name || personalityName.charAt(0).toUpperCase() + personalityName.slice(1) || 'Advisor';
|
|
163
162
|
// ── GIFT MODE ──
|
|
164
163
|
if (d.status === 'gift_found' && Array.isArray(d.gift_picks) && d.gift_picks.length > 0) {
|
|
165
164
|
const intent = d.gift_intent || {};
|
|
@@ -224,6 +223,7 @@ server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
|
|
|
224
223
|
compared: d.compared || 0,
|
|
225
224
|
reasoning: d.reasoning || '',
|
|
226
225
|
affiliate_notice: d.disclosure || 'Affiliate disclosure: The links on this page are affiliate links. byclaw.io receives a commission from the retailer when you make a purchase. No additional cost to you.',
|
|
226
|
+
...(d.note ? { note: d.note } : {}),
|
|
227
227
|
}, null, 2) });
|
|
228
228
|
}
|
|
229
229
|
// Add alternative images
|
package/package.json
CHANGED