@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.
- package/dist/pi-mcp-cli.js +3 -2
- package/package.json +1 -1
- package/src/pi-mcp-cli.ts +3 -2
package/dist/pi-mcp-cli.js
CHANGED
|
@@ -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 {
|
|
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 ===
|
|
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
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 {
|
|
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 ===
|
|
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;
|