pi-mcp-adapter 1.2.0 → 1.2.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,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const fs = require("fs");
4
- const path = require("path");
5
- const https = require("https");
6
- const os = require("os");
7
- const { execSync } = require("child_process");
3
+ import fs from "node:fs";
4
+ import path from "node:path";
5
+ import https from "node:https";
6
+ import os from "node:os";
7
+ import { execSync } from "node:child_process";
8
8
 
9
9
  const REPO_URL = "https://raw.githubusercontent.com/nicobailon/pi-mcp-adapter/master";
10
10
  const EXT_DIR = path.join(os.homedir(), ".pi", "agent", "extensions", "pi-mcp-adapter");
@@ -60,7 +60,7 @@ async function main() {
60
60
  console.log("\nInstalling dependencies...");
61
61
  try {
62
62
  execSync("npm install --production", { cwd: EXT_DIR, stdio: "inherit" });
63
- } catch (err) {
63
+ } catch {
64
64
  console.error("Warning: npm install failed. You may need to run it manually.");
65
65
  }
66
66
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-mcp-adapter",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "MCP (Model Context Protocol) adapter extension for Pi coding agent",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "Nico Bailon",
8
8
  "bin": {
9
- "pi-mcp-adapter": "./install.js"
9
+ "pi-mcp-adapter": "./cli.js"
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "extensions": ["./index.ts"]
27
27
  },
28
28
  "files": [
29
- "install.js",
29
+ "cli.js",
30
30
  "index.ts",
31
31
  "types.ts",
32
32
  "config.ts",