Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
},
"metadata": {
"description": "The official Pricemind plugin for Claude.",
"version": "1.1.0"
"version": "1.1.1"
},
"plugins": [
{
"name": "pricemind",
"source": "./",
"description": "Competitive price intelligence, product matching, competitor alternatives and repricing strategies from your Pricemind account.",
"version": "1.1.0"
"version": "1.1.1"
}
]
}
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pricemind",
"displayName": "Pricemind",
"version": "1.1.0",
"version": "1.1.1",
"description": "Competitive price intelligence in Claude: see where your prices sit against competitors as Pricemind charts, run weekly reviews, management reports and promo watches, review product matches, research competitor alternatives and manage repricing strategies. Sign in with your Pricemind account.",
"author": {
"name": "Pricemind",
Expand Down
2 changes: 1 addition & 1 deletion .codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pricemind",
"version": "1.1.0",
"version": "1.1.1",
"description": "Competitive price intelligence from your Pricemind account: see where your prices sit against competitors as Pricemind charts, run weekly reviews, management reports and promo watches, review product matches, research competitor alternatives and manage repricing strategies.",
"author": {
"name": "Pricemind",
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

All notable changes to the Pricemind plugin. Versions follow [Semantic Versioning](https://semver.org/).

## 1.1.1 (2026-11-17)

Fixes from testing the chart view in a real Claude client.

- Price history comes back complete in one result (up to 360 rows), so a month of daily prices draws one chart with the right latest figures instead of one partial chart per page.
- Prices in the chart show their currency.
- A partial result is marked as such in the chart and leaves out the "now" figures it cannot know.
- The assistant no longer draws its own chart or table next to the Pricemind chart.

## 1.1.0 (2026-11-17)

Pricemind in an AI assistant should feel like a product, not a tool list.
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "pricemind",
"version": "1.1.0",
"version": "1.1.1",
"description": "Competitive price intelligence from your Pricemind account: see where your prices sit against competitors as Pricemind charts, run weekly reviews, management reports and promo watches, review product matches, research competitor alternatives and manage repricing strategies.",
"author": {
"name": "Pricemind",
Expand Down
7 changes: 4 additions & 3 deletions skills/price-intelligence/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ Start from the user's wording, such as a brand, category, SKU or EAN, and turn i

`search_query` returns a `visual` hint (chart kind, columns, colours, muted shops, notes) with its rows. Never write chart code yourself.

1. **The host shows the Pricemind chart view.** Some clients display an interactive Pricemind chart directly under the `search_query` result. Then do not draw anything; refer to the chart in your answer.
1. **The host shows the Pricemind chart view.** Clients with interactive views (the Claude apps) display the Pricemind chart directly under the `search_query` result. There, do not draw anything and do not repeat the rows as a table: write the summary and refer to the chart.
2. **Otherwise use the template.** Copy [assets/chart.html](assets/chart.html) and fill only its data block:

```html
<script type="application/json" id="pricemind-chart-data">
{"title": "...", "subtitle": "...", "visual": <the visual hint, unchanged>,
"rows": <data.rows>, "columns": <data.columns>, "open_in_pricemind_url": "<link when the result has one>"}
"rows": <data.rows>, "columns": <data.columns>, "currency": "<data.currency when present>",
"open_in_pricemind_url": "<link when the result has one>"}
</script>
```

Expand All @@ -62,7 +63,7 @@ Start from the user's wording, such as a brand, category, SKU or EAN, and turn i

## 5. Answer

- Lead with the answer in one or two sentences, then the chart, then a compact table (at most about 15 rows), then caveats.
- Lead with the answer in one or two sentences, then the chart, then caveats. Add a compact table (at most about 15 rows) only where no chart is shown.
- Be honest about coverage: unmatched products, out-of-stock offers, stale observation dates and price basis. Large jumps (for example 90% down) may be pack-size or mismatched offers; flag them instead of reporting them as market moves.
- Never show more than the user asked for, and never expose another account's data.

Expand Down
16 changes: 14 additions & 2 deletions skills/price-intelligence/assets/chart.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!doctype html>
<!--
Pricemind chart renderer · version 1.1.0
Pricemind chart renderer · version 1.1.1

Single source: the Pricemind MCP server, which serves this page as the MCP App
resource ui://pricemind/chart. The plugin repo pricemind/agent-plugins ships a
Expand Down Expand Up @@ -133,6 +133,7 @@
.pm-icon-btn:hover { color: var(--pm-ink); }
.pm-icon-btn svg { width: 14px; height: 14px; }

.pm-warn { margin: 0 0 10px; padding: 7px 10px; border-radius: 8px; font-size: 12px; line-height: 1.45; color: var(--pm-ink); background: color-mix(in srgb, var(--pm-caution) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pm-caution) 42%, transparent); }
.pm-kpis { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 2px 0 10px; }
.pm-kpi { min-width: 0; }
.pm-kpi-label { font-size: 11px; color: var(--pm-ink-3); }
Expand Down Expand Up @@ -529,6 +530,10 @@
shops: data.shops || raw.shops || {},
channelId: channelId,
currency: currency,
// More rows exist than this result holds, or this is a later page of one:
// either way the newest figures cannot be read from these rows alone.
partial: !!(data.page && data.page.has_more === true),
continuation: typeof args.cursor === "string" && args.cursor !== "",
locale: raw.locale || null,
link: raw.open_in_pricemind_url || null,
args: args
Expand Down Expand Up @@ -733,7 +738,7 @@
state.showAllRows = false;
state.status = "";
var kind = model && model.visual && model.visual.kind;
state.view = model && model.rows.length && drawable(kind) ? "chart" : "table";
state.view = model && model.rows.length && drawable(kind) && !model.continuation ? "chart" : "table";
render();
}
function drawable(kind) {
Expand Down Expand Up @@ -801,6 +806,11 @@
append(root, h("div", { class: "pm-back" }, h("button", { type: "button", class: "pm-link", onclick: back }, [icon(ICONS.back), " Back"])));
}

if (model.continuation) {
append(root, h("div", { class: "pm-warn", role: "note", text: "This is a later page of a longer result, so it holds only part of the rows. The complete picture needs all pages together." }));
} else if (model.partial) {
append(root, h("div", { class: "pm-warn", role: "note", text: "Partial result: more rows exist than are shown here, so the newest prices may be missing. Ask for a shorter period or weekly buckets to see everything in one chart." }));
}
var body = h("div", { class: "pm-body" });
append(root, body);
var notes = [];
Expand Down Expand Up @@ -1199,6 +1209,8 @@

// Latest own price, its change over the window and the cheapest competitor now.
function historyKpis(container, model, seriesValues, own, xCol, yCol, sCol) {
// "Now" figures from an incomplete result would name the wrong shop.
if (model.partial || model.continuation) return;
var latest = {}, first = {};
model.rows.forEach(function (r) {
var key = r[sCol], d = toDate(r[xCol]), n = num(r[yCol]);
Expand Down
Loading