@ian-pascoe/pi-mcp 0.1.0 → 0.1.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.
@@ -6,11 +6,12 @@ var __export = (target, all) => {
6
6
  };
7
7
 
8
8
  // src/pi-mcp-cli.ts
9
+ import { realpathSync } from "node:fs";
9
10
  import { readFile as readFile3 } from "node:fs/promises";
10
11
  import { homedir } from "node:os";
11
12
  import { dirname as dirname2, join as join3, resolve as resolve2 } from "node:path";
12
13
  import { createInterface } from "node:readline/promises";
13
- import { pathToFileURL } from "node:url";
14
+ import { fileURLToPath } from "node:url";
14
15
 
15
16
  // src/mcp-command.ts
16
17
  var MCP_COMMAND_NAMES = [
@@ -10931,7 +10932,7 @@ async function runPiMcpCli(args, options = {}) {
10931
10932
  return result.exitCode;
10932
10933
  }
10933
10934
  var entrypoint = process.argv[1];
10934
- if (entrypoint !== void 0 && import.meta.url === pathToFileURL(entrypoint).href) {
10935
+ if (entrypoint !== void 0 && fileURLToPath(import.meta.url) === realpathSync(entrypoint)) {
10935
10936
  void runPiMcpCli(process.argv.slice(2)).then(
10936
10937
  (exitCode) => {
10937
10938
  process.exitCode = exitCode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ian-pascoe/pi-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "description": "A complete Model Context Protocol Host for Pi",
6
6
  "keywords": [
package/src/pi-mcp-cli.ts CHANGED
@@ -2,11 +2,12 @@
2
2
 
3
3
  // oxlint-disable anti-slop/no-conditional-empty-object-spread -- Exact optional command data requires omitting absent fields at the shared command boundary.
4
4
  // oxlint-disable anti-slop/no-runtime-typeof, anti-slop/no-unknown-parameters -- This entrypoint owns trust-store parsing before values reach typed settings adapters.
5
+ import { realpathSync } from "node:fs";
5
6
  import { readFile } from "node:fs/promises";
6
7
  import { homedir } from "node:os";
7
8
  import { dirname, join, resolve } from "node:path";
8
9
  import { createInterface } from "node:readline/promises";
9
- import { pathToFileURL } from "node:url";
10
+ import { fileURLToPath } from "node:url";
10
11
  import {
11
12
  runMcpCommandTokens,
12
13
  type McpCommandAdapterResult,
@@ -494,7 +495,7 @@ export async function runPiMcpCli(
494
495
  }
495
496
 
496
497
  const entrypoint = process.argv[1];
497
- if (entrypoint !== undefined && import.meta.url === pathToFileURL(entrypoint).href) {
498
+ if (entrypoint !== undefined && fileURLToPath(import.meta.url) === realpathSync(entrypoint)) {
498
499
  void runPiMcpCli(process.argv.slice(2)).then(
499
500
  (exitCode) => {
500
501
  process.exitCode = exitCode;