@vaultgradient/pipequery-cli 0.13.1 → 0.13.3

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 CHANGED
@@ -4573,6 +4573,95 @@ async function createServer(config, configPath, cwd) {
4573
4573
 
4574
4574
  // src/utils/banner.ts
4575
4575
  import chalk3 from "chalk";
4576
+
4577
+ // package.json
4578
+ var package_default = {
4579
+ name: "@andreadito/pq",
4580
+ version: "0.13.3",
4581
+ description: "CLI for PipeQuery \u2014 data sources, aggregations, APIs, and terminal dashboards",
4582
+ type: "module",
4583
+ bin: {
4584
+ pq: "./dist/index.js"
4585
+ },
4586
+ exports: {
4587
+ ".": "./dist/index.js",
4588
+ "./engine": {
4589
+ types: "./dist/engine.d.ts",
4590
+ default: "./dist/engine.js"
4591
+ },
4592
+ "./sources": {
4593
+ types: "./dist/sources/manager.d.ts",
4594
+ default: "./dist/sources/manager.js"
4595
+ }
4596
+ },
4597
+ scripts: {
4598
+ build: "tsup",
4599
+ dev: "tsup --watch",
4600
+ typecheck: "tsc",
4601
+ test: "vitest run",
4602
+ "test:watch": "vitest"
4603
+ },
4604
+ dependencies: {
4605
+ "@anthropic-ai/sdk": "^0.91.1",
4606
+ "@clickhouse/client": "^1.18.3",
4607
+ "@fastify/cors": "^11.2.0",
4608
+ "@modelcontextprotocol/sdk": "^1.31.0",
4609
+ "better-sqlite3": "^12.9.0",
4610
+ chalk: "^5.6.2",
4611
+ chokidar: "^5.0.0",
4612
+ commander: "^14.0.3",
4613
+ "csv-parse": "^7.0.2",
4614
+ fastify: "^5.12.5",
4615
+ grammy: "^1.42.0",
4616
+ ink: "^7.0.1",
4617
+ kafkajs: "^2.2.4",
4618
+ mongodb: "^7.2.0",
4619
+ mysql2: "^3.23.1",
4620
+ ora: "^9.3.0",
4621
+ pg: "^8.20.0",
4622
+ react: "^19.2.5",
4623
+ "snowflake-sdk": "^3.4.0",
4624
+ ws: "^8.21.0",
4625
+ yaml: "^2.8.3",
4626
+ zod: "^4.3.6"
4627
+ },
4628
+ devDependencies: {
4629
+ "@types/better-sqlite3": "^7.6.13",
4630
+ "@types/node": "^25.6.0",
4631
+ "@types/pg": "^8.20.0",
4632
+ "@types/react": "^19.2.14",
4633
+ "@types/ws": "^8.18.1",
4634
+ tsup: "^8.5.1",
4635
+ typescript: "~6.0.0",
4636
+ vitest: "^4.1.11"
4637
+ },
4638
+ overrides: {
4639
+ "gcp-metadata": "^8.0.0",
4640
+ esbuild: "^0.28.1",
4641
+ axios: "^1.20.0",
4642
+ "fast-uri": "^3.1.8",
4643
+ "proxy-addr": "^2.0.8",
4644
+ "source-map-js": "^1.2.2",
4645
+ "@azure/msal-node": "^5.6.0"
4646
+ },
4647
+ repository: {
4648
+ type: "git",
4649
+ url: "https://github.com/andreadito/pipequery.git",
4650
+ directory: "cli"
4651
+ },
4652
+ publishConfig: {
4653
+ access: "public",
4654
+ registry: "https://npm.pkg.github.com"
4655
+ },
4656
+ author: "andreadito",
4657
+ license: "MIT",
4658
+ engines: {
4659
+ node: ">=24"
4660
+ }
4661
+ };
4662
+
4663
+ // src/utils/banner.ts
4664
+ var { version } = package_default;
4576
4665
  var LOGO = [
4577
4666
  " \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557",
4578
4667
  " \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557 \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557 \u255A\u2588\u2588\u2557 \u2588\u2588\u2554\u255D",
@@ -4602,7 +4691,7 @@ function printBanner() {
4602
4691
  console.log(applyGradient(line, i));
4603
4692
  });
4604
4693
  console.log();
4605
- console.log(chalk3.dim(` v0.1.0 \u2014 data sources, aggregations, APIs, and terminal dashboards`));
4694
+ console.log(chalk3.dim(` v${version} \u2014 data sources, aggregations, APIs, and terminal dashboards`));
4606
4695
  console.log();
4607
4696
  }
4608
4697
  function printCompactBanner() {
@@ -6372,9 +6461,10 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
6372
6461
  // src/mcp/server.ts
6373
6462
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
6374
6463
  import { z } from "zod";
6464
+ var { version: version2 } = package_default;
6375
6465
  var DEFAULT_INFO = {
6376
6466
  name: "pipequery",
6377
- version: "0.1.0"
6467
+ version: version2
6378
6468
  };
6379
6469
  function createMcpServer(provider, info2 = DEFAULT_INFO) {
6380
6470
  const mcp2 = new McpServer(info2);
@@ -6622,6 +6712,7 @@ async function readJsonBody(req) {
6622
6712
  // src/commands/mcp.ts
6623
6713
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
6624
6714
  import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
6715
+ var { version: version3 } = package_default;
6625
6716
  async function mcpServeCommand(opts) {
6626
6717
  const provider = await buildProvider(opts.attach);
6627
6718
  const isStdio = !opts.http;
@@ -6649,7 +6740,7 @@ async function mcpInspectCommand(opts) {
6649
6740
  const mcp2 = createMcpServer(provider);
6650
6741
  const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();
6651
6742
  await mcp2.connect(serverTransport);
6652
- const client = new Client({ name: "pq-mcp-inspect", version: "0.1.0" });
6743
+ const client = new Client({ name: "pq-mcp-inspect", version: version3 });
6653
6744
  await client.connect(clientTransport);
6654
6745
  try {
6655
6746
  const { tools } = await client.listTools();
@@ -7971,9 +8062,10 @@ async function fetchAndPrint(serverUrl, path, key) {
7971
8062
  }
7972
8063
 
7973
8064
  // src/index.ts
8065
+ var { version: version4 } = package_default;
7974
8066
  var collectRepeated = (value, acc) => [...acc, value];
7975
8067
  var program = new Command();
7976
- program.name("pq").description("PipeQuery CLI \u2014 data sources, aggregations, APIs, and terminal dashboards").version("0.1.0").addHelpText("beforeAll", () => {
8068
+ program.name("pq").description("PipeQuery CLI \u2014 data sources, aggregations, APIs, and terminal dashboards").version(version4).addHelpText("beforeAll", () => {
7977
8069
  printBanner();
7978
8070
  return "";
7979
8071
  }).configureHelp({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaultgradient/pipequery-cli",
3
- "version": "0.13.1",
3
+ "version": "0.13.3",
4
4
  "description": "CLI for PipeQuery — data sources, aggregations, APIs, and terminal dashboards",
5
5
  "type": "module",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "@anthropic-ai/sdk": "^0.91.1",
29
29
  "@clickhouse/client": "^1.18.3",
30
30
  "@fastify/cors": "^11.2.0",
31
- "@modelcontextprotocol/sdk": "^1.29.0",
31
+ "@modelcontextprotocol/sdk": "^1.31.0",
32
32
  "better-sqlite3": "^12.9.0",
33
33
  "chalk": "^5.6.2",
34
34
  "chokidar": "^5.0.0",
@@ -43,7 +43,7 @@
43
43
  "ora": "^9.3.0",
44
44
  "pg": "^8.20.0",
45
45
  "react": "^19.2.5",
46
- "snowflake-sdk": "^2.4.2",
46
+ "snowflake-sdk": "^3.4.0",
47
47
  "ws": "^8.21.0",
48
48
  "yaml": "^2.8.3",
49
49
  "zod": "^4.3.6"
@@ -59,7 +59,13 @@
59
59
  "vitest": "^4.1.11"
60
60
  },
61
61
  "overrides": {
62
- "gcp-metadata": "^8.0.0"
62
+ "gcp-metadata": "^8.0.0",
63
+ "esbuild": "^0.28.1",
64
+ "axios": "^1.20.0",
65
+ "fast-uri": "^3.1.8",
66
+ "proxy-addr": "^2.0.8",
67
+ "source-map-js": "^1.2.2",
68
+ "@azure/msal-node": "^5.6.0"
63
69
  },
64
70
  "repository": {
65
71
  "type": "git",
@@ -6,6 +6,8 @@ import { runHttp } from '../mcp/http.js';
6
6
  import { createMcpServer } from '../mcp/server.js';
7
7
  import { Client } from '@modelcontextprotocol/sdk/client/index.js';
8
8
  import { InMemoryTransport } from '@modelcontextprotocol/sdk/inMemory.js';
9
+ import pkg from '../../package.json' with { type: 'json' };
10
+ const { version } = pkg;
9
11
 
10
12
  interface McpServeOptions {
11
13
  http?: boolean;
@@ -53,7 +55,7 @@ export async function mcpInspectCommand(opts: { attach?: string }): Promise<void
53
55
  const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();
54
56
  await mcp.connect(serverTransport);
55
57
 
56
- const client = new Client({ name: 'pq-mcp-inspect', version: '0.1.0' });
58
+ const client = new Client({ name: 'pq-mcp-inspect', version });
57
59
  await client.connect(clientTransport);
58
60
 
59
61
  try {
package/src/index.ts CHANGED
@@ -15,6 +15,8 @@ import { completionCommand } from './commands/completion.js';
15
15
  import { stopCommand } from './commands/stop.js';
16
16
  import { startRepl } from './commands/repl.js';
17
17
  import { printBanner } from './utils/banner.js';
18
+ import pkg from '../package.json' with { type: 'json' };
19
+ const { version } = pkg;
18
20
 
19
21
  // Commander helper: accumulate `--allow-user @a --allow-user @b` into an array.
20
22
  const collectRepeated = (value: string, acc: string[]): string[] => [...acc, value];
@@ -24,7 +26,7 @@ const program = new Command();
24
26
  program
25
27
  .name('pq')
26
28
  .description('PipeQuery CLI — data sources, aggregations, APIs, and terminal dashboards')
27
- .version('0.1.0')
29
+ .version(version)
28
30
  .addHelpText('beforeAll', () => {
29
31
  printBanner();
30
32
  return '';
package/src/mcp/server.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import { z } from 'zod';
3
3
  import type { Provider } from './provider.js';
4
+ import pkg from '../../package.json' with { type: 'json' };
5
+ const { version } = pkg;
4
6
 
5
7
  export interface McpServerInfo {
6
8
  name: string;
@@ -9,7 +11,7 @@ export interface McpServerInfo {
9
11
 
10
12
  const DEFAULT_INFO: McpServerInfo = {
11
13
  name: 'pipequery',
12
- version: '0.1.0',
14
+ version,
13
15
  };
14
16
 
15
17
  /**
@@ -1,4 +1,6 @@
1
1
  import chalk from 'chalk';
2
+ import pkg from '../../package.json' with { type: 'json' };
3
+ const { version } = pkg;
2
4
 
3
5
  const LOGO = [
4
6
  ' ██████╗ ██╗ ██████╗ ███████╗ ██████╗ ██╗ ██╗ ███████╗ ██████╗ ██╗ ██╗',
@@ -30,7 +32,7 @@ export function printBanner() {
30
32
  console.log(applyGradient(line, i));
31
33
  });
32
34
  console.log();
33
- console.log(chalk.dim(` v0.1.0 — data sources, aggregations, APIs, and terminal dashboards`));
35
+ console.log(chalk.dim(` v${version} — data sources, aggregations, APIs, and terminal dashboards`));
34
36
  console.log();
35
37
  }
36
38