@prunellejs/mcp 0.7.4 → 0.8.0

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/format.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prunellejs/mcp",
3
- "version": "0.7.4",
3
+ "version": "0.8.0",
4
4
  "description": "Zero-dependency MCP Streamable HTTP (2025-03-26) plugin exposing Prunelle server actions as AI agent tools",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -21,6 +21,6 @@
21
21
  "directory": "packages/plugin-mcp"
22
22
  },
23
23
  "peerDependencies": {
24
- "prunelle": "^0.7.4"
24
+ "prunelle": "^0.8.0"
25
25
  }
26
26
  }
package/src/format.ts CHANGED
@@ -119,7 +119,7 @@ function escapeTsvCell(value: unknown): string {
119
119
  }
120
120
 
121
121
  /** Renders tabular records as compact TSV (typically 50–65% fewer tokens than JSON object arrays). */
122
- export function formatTable<T extends Record<string, unknown>>(
122
+ export function formatTable<T extends object>(
123
123
  rows: readonly T[],
124
124
  columns?: readonly (keyof T & string)[],
125
125
  options?: CompactListOptions,
@@ -134,7 +134,7 @@ export function formatTable<T extends Record<string, unknown>>(
134
134
 
135
135
  const lines: string[] = [cols.join('\t')]
136
136
  for (const row of rows)
137
- lines.push(cols.map(col => escapeTsvCell(row[col])).join('\t'))
137
+ lines.push(cols.map(col => escapeTsvCell((row as Record<string, unknown>)[col])).join('\t'))
138
138
  return lines.join('\n') + formatListFooter(rows.length, options)
139
139
  }
140
140