pi-mcp-adapter 1.2.0 → 1.2.2

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/CHANGELOG.md CHANGED
@@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [1.2.0] - 2026-01-19
8
+ ## [1.2.2] - 2026-01-19
9
+
10
+ ### Fixed
11
+
12
+ - Installer now downloads from `main` branch (renamed from `master`)
13
+
14
+ ## [1.2.1] - 2026-01-19
9
15
 
10
16
  ### Added
11
17
 
@@ -1,12 +1,12 @@
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
- const REPO_URL = "https://raw.githubusercontent.com/nicobailon/pi-mcp-adapter/master";
9
+ const REPO_URL = "https://raw.githubusercontent.com/nicobailon/pi-mcp-adapter/main";
10
10
  const EXT_DIR = path.join(os.homedir(), ".pi", "agent", "extensions", "pi-mcp-adapter");
11
11
  const SETTINGS_FILE = path.join(os.homedir(), ".pi", "agent", "settings.json");
12
12
  const EXT_PATH = "~/.pi/agent/extensions/pi-mcp-adapter/index.ts";
@@ -59,8 +59,8 @@ async function main() {
59
59
 
60
60
  console.log("\nInstalling dependencies...");
61
61
  try {
62
- execSync("npm install --production", { cwd: EXT_DIR, stdio: "inherit" });
63
- } catch (err) {
62
+ execSync("npm install --omit=dev", { cwd: EXT_DIR, stdio: "inherit" });
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.2",
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",