pi-mcp-extension 1.10.1 → 1.10.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/jsonc.ts +9 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-mcp-extension",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "description": "MCP (Model Context Protocol) client extension for the Pi coding agent — connect Pi to any MCP server",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@modelcontextprotocol/sdk": "^1.32.1",
37
- "zod": "^4.6.5"
37
+ "zod": "^4.6.7"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@earendil-works/pi-ai": "*",
package/src/jsonc.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * Pure JSON-with-comments (JSONC) text utilities. This module has no `src/`
3
- * dependencies of its own and is safe for the test tree to import: it does not
4
- * load `zod`, the MCP error types, or the OAuth/callback modules, so a `tests/`
5
- * consumer stays free of runtime MCP imports.
3
+ * dependencies of its own and is safe for `scripts/` and `tests/` to import: it
4
+ * does not load `zod`, the MCP error types, or the OAuth/callback modules, so
5
+ * non-runtime consumers stay free of runtime MCP imports.
6
6
  *
7
7
  * The only behaviour this module performs is `stripJsonComments` — a single-pass
8
8
  * character scan that removes `//` line comments and `/* ... *\/` block comments
9
9
  * while leaving the rest of the document byte-equivalent. Comments inside
10
10
  * double-quoted strings are preserved verbatim, so a JSON value such as
11
11
  * `"https://example.com/foo"` is never accidentally truncated. Trailing commas
12
- * (the other common JSONC extension) are **not** handled here — neither of the
12
+ * (the other common JSONC extension) are **not** handled here — none of the
13
13
  * files this helper feeds today uses them, and an explicit `JSON.parse` failure
14
14
  * on a misplaced comma is a more honest signal than silent acceptance.
15
15
  */
@@ -22,11 +22,11 @@
22
22
  * remain accurate. Unterminated `/*` block comments are left intact so `JSON.parse`
23
23
  * fails with a syntax error rather than silently truncating the document.
24
24
  *
25
- * WHY: this module exists so `tests/repo-policy.test.ts` can read
26
- * `.github/rulesets/default-branch.json` with the same JSONC tolerance the runtime
27
- * uses for `mcp.json`. A future maintainer can add `// WHY: …` style comments to the
28
- * ruleset (mirroring the convention used throughout `src/`) without breaking the
29
- * ruleset-policy tests.
25
+ * WHY: this module exists so `scripts/ruleset-audit.ts` and `tests/repo-policy.test.ts`
26
+ * can read `.github/rulesets/*.json` with the same JSONC tolerance the runtime uses
27
+ * for `mcp.json`. A future maintainer can add `// WHY: …` style comments to the
28
+ * ruleset files (mirroring the convention used throughout `src/`) without breaking the
29
+ * ruleset audit or policy tests.
30
30
  */
31
31
  export function stripJsonComments(text: string): string {
32
32
  let out = "";