@smallwebco/tinypivot-mcp 0.7.0 → 0.7.1

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tinypivot",
3
3
  "displayName": "TinyPivot",
4
- "version": "0.7.0",
4
+ "version": "0.7.1",
5
5
  "description": "Data analysis studio inside Claude — turn CSV, TSV, JSON, JSONL, API/MCP outputs, and SQL results from any database into interactive charts, deterministic pivot tables, data grids, screenshot-ready terminal cards, and Excel exports.",
6
6
  "author": {
7
7
  "name": "Small Web, LLC",
package/.mcp.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@smallwebco/tinypivot-mcp@0.7.0"
7
+ "@smallwebco/tinypivot-mcp@0.7.1"
8
8
  ],
9
9
  "env": {
10
10
  "CLAUDE_PLUGIN_OPTION_LICENSE_KEY": "${user_config.license_key}"
@@ -10789,10 +10789,13 @@ function formatColumnNotes(columns) {
10789
10789
  return `Columns: ${notes.join(" \xB7 ") || "none"}`;
10790
10790
  }
10791
10791
  var REPRINT_NOTE = "Show the card above to the user verbatim.";
10792
- var WIDGET_NOTE = "The user already sees this in the TinyPivot view in the chat: do not repeat the card or a table of it. Reply with the takeaways.";
10792
+ var SHOWN_NOTES = {
10793
+ widget: "The user already sees this in the TinyPivot view in the chat: do not repeat the card or a table of it. Reply with the takeaways.",
10794
+ pi: "TinyPivot's pi extension already shows the user this card: do not repeat it or a table of it. Reply with the takeaways and the Studio link."
10795
+ };
10793
10796
  function cardNote(companionUrl, options) {
10794
- if (options.shownInWidget)
10795
- return WIDGET_NOTE;
10797
+ if (options.shownBy)
10798
+ return SHOWN_NOTES[options.shownBy];
10796
10799
  return companionUrl && options.reprintNote !== false ? REPRINT_NOTE : null;
10797
10800
  }
10798
10801
  function datasetCard(dataset, options = {}) {
@@ -14200,7 +14203,7 @@ import fsSync2 from "fs";
14200
14203
  import os6 from "os";
14201
14204
  import path8 from "path";
14202
14205
  var DEFAULT_TELEMETRY_URL = "https://tiny-pivot.com/api/telemetry";
14203
- var PACKAGE_VERSION = "0.7.0";
14206
+ var PACKAGE_VERSION = "0.7.1";
14204
14207
  function isTelemetryEnabled() {
14205
14208
  if (process.env.TINYPIVOT_TELEMETRY === "0" || process.env.TINYPIVOT_TELEMETRY === "false")
14206
14209
  return false;
@@ -14539,7 +14542,7 @@ function createTinyPivotMcpServer(options = {}) {
14539
14542
  const server = new McpServer(
14540
14543
  {
14541
14544
  name: "tinypivot",
14542
- version: "0.7.0"
14545
+ version: "0.7.1"
14543
14546
  },
14544
14547
  {
14545
14548
  capabilities: {
@@ -14551,7 +14554,11 @@ function createTinyPivotMcpServer(options = {}) {
14551
14554
  }
14552
14555
  );
14553
14556
  const clientRendersWidget = () => clientSupportsMcpAppsUi(server.server.getClientCapabilities());
14554
- const cardFormat = () => ({ showBranding: !isPro2, reprintNote: reprintCards, shownInWidget: clientRendersWidget() });
14557
+ const cardFormat = () => ({
14558
+ showBranding: !isPro2,
14559
+ reprintNote: reprintCards,
14560
+ shownBy: clientRendersWidget() ? "widget" : getClientName() === "pi" ? "pi" : void 0
14561
+ });
14555
14562
  const resolveCompanionUrlForTool = async (forceCompanion = false) => {
14556
14563
  if (activeCompanionUrl)
14557
14564
  return activeCompanionUrl;
package/dist/cli.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  runTuiCommand,
21
21
  saveVisualThemePreference,
22
22
  startCompanionServer
23
- } from "./chunk-EWLFVFBK.js";
23
+ } from "./chunk-7YZJMPJF.js";
24
24
  import "./chunk-2ESYSVXG.js";
25
25
 
26
26
  // src/cli.ts
package/dist/index.d.ts CHANGED
@@ -14,8 +14,11 @@ interface TerminalFormatOptions {
14
14
  raw?: boolean;
15
15
  /** Remind the model, in a terminal, to show the card to the user. Off when cards are not reprinted. */
16
16
  reprintNote?: boolean;
17
- /** The host shows TinyPivot's own view in the chat, so the model is told not to repeat the card. */
18
- shownInWidget?: boolean;
17
+ /**
18
+ * Who already shows the user this card, so the model is told not to repeat it: the host's
19
+ * TinyPivot view in the chat (`widget`), or TinyPivot's pi extension (`pi`).
20
+ */
21
+ shownBy?: 'widget' | 'pi';
19
22
  }
20
23
 
21
24
  interface ModelPricing {
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  startCompanionServer,
34
34
  tokensToUsd,
35
35
  upsertTinyPivotRuleBlock
36
- } from "./chunk-EWLFVFBK.js";
36
+ } from "./chunk-7YZJMPJF.js";
37
37
  import "./chunk-2ESYSVXG.js";
38
38
  export {
39
39
  APP_MIME_TYPE,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@smallwebco/tinypivot-mcp",
3
3
  "mcpName": "io.github.Small-Web-Co/tinypivot",
4
4
  "type": "module",
5
- "version": "0.7.0",
5
+ "version": "0.7.1",
6
6
  "description": "TinyPivot MCP Server, Interactive MCP App & Claude Plugin — turn CSV, JSON, API/MCP outputs, and queries from any database into interactive charts, pivot tables, terminal cards, live TUI, drill-through, and Excel exports inside AI agents.",
7
7
  "author": "Small Web, LLC",
8
8
  "license": "SEE LICENSE IN LICENSE.md",
@@ -82,8 +82,8 @@
82
82
  "vite": "^6.4.6",
83
83
  "vite-plugin-singlefile": "^2.2.0",
84
84
  "@smallwebco/tinypivot-core": "1.4.8",
85
- "@smallwebco/tinypivot-server": "1.4.8",
86
- "@smallwebco/tinypivot-react": "1.4.8"
85
+ "@smallwebco/tinypivot-react": "1.4.8",
86
+ "@smallwebco/tinypivot-server": "1.4.8"
87
87
  },
88
88
  "scripts": {
89
89
  "build": "pnpm run build:server && pnpm run build:app",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.Small-Web-Co/tinypivot",
4
4
  "title": "TinyPivot — Data Analysis Studio for AI Agents",
5
5
  "description": "Interactive charts, pivot tables, terminal cards, live TUI, and Excel export inside AI agents.",
6
- "version": "0.7.0",
6
+ "version": "0.7.1",
7
7
  "websiteUrl": "https://tiny-pivot.com",
8
8
  "repository": {
9
9
  "url": "https://github.com/Small-Web-Co/tinypivot",
@@ -14,7 +14,7 @@
14
14
  {
15
15
  "registryType": "npm",
16
16
  "identifier": "@smallwebco/tinypivot-mcp",
17
- "version": "0.7.0",
17
+ "version": "0.7.1",
18
18
  "transport": {
19
19
  "type": "stdio"
20
20
  },