@smallwebco/tinypivot-mcp 0.2.7 → 0.2.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/.claude-plugin/plugin.json +1 -1
- package/dist/app/index.html +67 -67
- package/dist/{chunk-F2NOTK7R.js → chunk-L3TB5DJ7.js} +32 -26
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/server.json +2 -2
|
@@ -7347,6 +7347,28 @@ var require_pgsql_ast_parser = __commonJS({
|
|
|
7347
7347
|
}
|
|
7348
7348
|
});
|
|
7349
7349
|
|
|
7350
|
+
// ../core/dist/utils/index.js
|
|
7351
|
+
function formatNumber(value2, format = "us", options) {
|
|
7352
|
+
if (value2 === null)
|
|
7353
|
+
return "-";
|
|
7354
|
+
const maxDigits = options?.maximumFractionDigits ?? (Math.abs(value2) >= 1e3 ? 2 : 4);
|
|
7355
|
+
switch (format) {
|
|
7356
|
+
case "eu":
|
|
7357
|
+
return value2.toLocaleString("de-DE", { maximumFractionDigits: maxDigits });
|
|
7358
|
+
case "plain":
|
|
7359
|
+
return Number.isInteger(value2) ? String(value2) : value2.toFixed(Math.min(maxDigits, 20));
|
|
7360
|
+
case "us":
|
|
7361
|
+
default:
|
|
7362
|
+
return value2.toLocaleString("en-US", { maximumFractionDigits: maxDigits });
|
|
7363
|
+
}
|
|
7364
|
+
}
|
|
7365
|
+
function makeKey(row, fields) {
|
|
7366
|
+
return fields.map((f) => String(row[f] ?? "(blank)")).join("|||");
|
|
7367
|
+
}
|
|
7368
|
+
function parseKey(key) {
|
|
7369
|
+
return key.split("|||");
|
|
7370
|
+
}
|
|
7371
|
+
|
|
7350
7372
|
// ../core/dist/chart/index.js
|
|
7351
7373
|
var CHART_THEME_PRESETS = {
|
|
7352
7374
|
"code": {
|
|
@@ -7734,28 +7756,6 @@ var TERMINAL_PALETTES = {
|
|
|
7734
7756
|
}
|
|
7735
7757
|
};
|
|
7736
7758
|
|
|
7737
|
-
// ../core/dist/utils/index.js
|
|
7738
|
-
function formatNumber(value2, format = "us", options) {
|
|
7739
|
-
if (value2 === null)
|
|
7740
|
-
return "-";
|
|
7741
|
-
const maxDigits = options?.maximumFractionDigits ?? (Math.abs(value2) >= 1e3 ? 2 : 4);
|
|
7742
|
-
switch (format) {
|
|
7743
|
-
case "eu":
|
|
7744
|
-
return value2.toLocaleString("de-DE", { maximumFractionDigits: maxDigits });
|
|
7745
|
-
case "plain":
|
|
7746
|
-
return Number.isInteger(value2) ? String(value2) : value2.toFixed(Math.min(maxDigits, 20));
|
|
7747
|
-
case "us":
|
|
7748
|
-
default:
|
|
7749
|
-
return value2.toLocaleString("en-US", { maximumFractionDigits: maxDigits });
|
|
7750
|
-
}
|
|
7751
|
-
}
|
|
7752
|
-
function makeKey(row, fields) {
|
|
7753
|
-
return fields.map((f) => String(row[f] ?? "(blank)")).join("|||");
|
|
7754
|
-
}
|
|
7755
|
-
function parseKey(key) {
|
|
7756
|
-
return key.split("|||");
|
|
7757
|
-
}
|
|
7758
|
-
|
|
7759
7759
|
// ../core/dist/pivot/index.js
|
|
7760
7760
|
var PATH_SEP = "\0";
|
|
7761
7761
|
function pathKey(values) {
|
|
@@ -10106,6 +10106,12 @@ async function runTuiCommand(args) {
|
|
|
10106
10106
|
import fs3 from "fs/promises";
|
|
10107
10107
|
import http from "http";
|
|
10108
10108
|
import path3 from "path";
|
|
10109
|
+
|
|
10110
|
+
// src/limits.ts
|
|
10111
|
+
var INTERACTIVE_ROW_LIMIT = 1e5;
|
|
10112
|
+
var ROW_PAGE_SIZE = 25e3;
|
|
10113
|
+
|
|
10114
|
+
// src/companion.ts
|
|
10109
10115
|
function readJsonBody(req) {
|
|
10110
10116
|
return new Promise((resolve) => {
|
|
10111
10117
|
const chunks = [];
|
|
@@ -10137,7 +10143,7 @@ function buildFullCompanionPayload(store, datasetId, opts) {
|
|
|
10137
10143
|
sourceTotalRows: ds.sourceTotalRows,
|
|
10138
10144
|
truncatedForFreeTier: ds.truncatedForFreeTier,
|
|
10139
10145
|
tier: isPro2 ? "pro" : "free",
|
|
10140
|
-
rows: ds.rows.slice(0,
|
|
10146
|
+
rows: ds.rows.slice(0, INTERACTIVE_ROW_LIMIT),
|
|
10141
10147
|
hasMoreRows: false,
|
|
10142
10148
|
columns: ds.columns,
|
|
10143
10149
|
viewMode: ds.viewMode,
|
|
@@ -11371,7 +11377,7 @@ import fsSync2 from "fs";
|
|
|
11371
11377
|
import os4 from "os";
|
|
11372
11378
|
import path5 from "path";
|
|
11373
11379
|
var DEFAULT_TELEMETRY_URL = "https://tiny-pivot.com/api/telemetry";
|
|
11374
|
-
var PACKAGE_VERSION = "0.2.
|
|
11380
|
+
var PACKAGE_VERSION = "0.2.8";
|
|
11375
11381
|
function isTelemetryEnabled() {
|
|
11376
11382
|
if (process.env.TINYPIVOT_TELEMETRY === "0" || process.env.TINYPIVOT_TELEMETRY === "false")
|
|
11377
11383
|
return false;
|
|
@@ -11663,7 +11669,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11663
11669
|
const server = new McpServer(
|
|
11664
11670
|
{
|
|
11665
11671
|
name: "tinypivot",
|
|
11666
|
-
version: "0.2.
|
|
11672
|
+
version: "0.2.8"
|
|
11667
11673
|
},
|
|
11668
11674
|
{
|
|
11669
11675
|
capabilities: {
|
|
@@ -12204,7 +12210,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
12204
12210
|
inputSchema: {
|
|
12205
12211
|
datasetId: z.string().optional(),
|
|
12206
12212
|
offset: z.number().int().min(0).default(0),
|
|
12207
|
-
limit: z.number().int().min(1).max(
|
|
12213
|
+
limit: z.number().int().min(1).max(ROW_PAGE_SIZE).default(1e4)
|
|
12208
12214
|
},
|
|
12209
12215
|
_meta: APP_ONLY_META
|
|
12210
12216
|
},
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
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.2.
|
|
5
|
+
"version": "0.2.8",
|
|
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": "MIT",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"typescript": "~5.6.2",
|
|
80
80
|
"vite": "^6.4.6",
|
|
81
81
|
"vite-plugin-singlefile": "^2.2.0",
|
|
82
|
-
"@smallwebco/tinypivot-
|
|
83
|
-
"@smallwebco/tinypivot-
|
|
84
|
-
"@smallwebco/tinypivot-
|
|
82
|
+
"@smallwebco/tinypivot-core": "1.4.4",
|
|
83
|
+
"@smallwebco/tinypivot-react": "1.4.4",
|
|
84
|
+
"@smallwebco/tinypivot-server": "1.4.4"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|
|
87
87
|
"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 — Interactive Data IDE for AI Agents",
|
|
5
5
|
"description": "Interactive charts, pivot tables, terminal cards, live TUI, and Excel export inside AI agents.",
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.8",
|
|
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.2.
|
|
17
|
+
"version": "0.2.8",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|
|
20
20
|
},
|