token-pilot 0.26.5 → 0.26.6
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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +17 -0
- package/dist/agents/tp-api-surface-tracker.md +1 -1
- package/dist/agents/tp-audit-scanner.md +1 -1
- package/dist/agents/tp-commit-writer.md +1 -1
- package/dist/agents/tp-dead-code-finder.md +1 -1
- package/dist/agents/tp-debugger.md +1 -1
- package/dist/agents/tp-dep-health.md +1 -1
- package/dist/agents/tp-history-explorer.md +1 -1
- package/dist/agents/tp-impact-analyzer.md +1 -1
- package/dist/agents/tp-incident-timeline.md +1 -1
- package/dist/agents/tp-migration-scout.md +1 -1
- package/dist/agents/tp-onboard.md +1 -1
- package/dist/agents/tp-pr-reviewer.md +1 -1
- package/dist/agents/tp-refactor-planner.md +1 -1
- package/dist/agents/tp-review-impact.md +1 -1
- package/dist/agents/tp-run.md +1 -1
- package/dist/agents/tp-session-restorer.md +1 -1
- package/dist/agents/tp-test-coverage-gapper.md +1 -1
- package/dist/agents/tp-test-triage.md +1 -1
- package/dist/agents/tp-test-writer.md +1 -1
- package/dist/index.js +16 -0
- package/package.json +1 -1
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "Token Pilot — save 60-90% tokens when AI reads code",
|
|
9
|
-
"version": "0.26.
|
|
9
|
+
"version": "0.26.6"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "token-pilot",
|
|
14
14
|
"source": "./",
|
|
15
15
|
"description": "Reduces token consumption by 60-90% via AST-aware lazy file reading, structural symbol navigation, and cross-session tool-usage analytics. 22 MCP tools + 19 subagents + budget watchdog hooks.",
|
|
16
|
-
"version": "0.26.
|
|
16
|
+
"version": "0.26.6",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "Digital-Threads"
|
|
19
19
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "token-pilot",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.6",
|
|
4
4
|
"description": "Saves 60-90% tokens when AI reads code. AST-aware lazy reading, symbol navigation, cross-session tool-usage analytics, 19 subagents with budget watchdog.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Digital-Threads",
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ All notable changes to Token Pilot 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
|
+
## [0.26.6] - 2026-04-18
|
|
9
|
+
|
|
10
|
+
### Fixed — EPIPE stacktrace when piping CLI to `head`/`less`/`grep`
|
|
11
|
+
|
|
12
|
+
First field report after the plugin install worked: user ran
|
|
13
|
+
`npx token-pilot doctor | head -5` and got a red "Unhandled 'error' event"
|
|
14
|
+
stacktrace from node:events. Classic Node.js CLI wart — `console.log`
|
|
15
|
+
tries to write after `head` closed stdin, EPIPE propagates, no handler,
|
|
16
|
+
crash.
|
|
17
|
+
|
|
18
|
+
Fixed by swallowing `EPIPE` on stdout and stderr at process start
|
|
19
|
+
(`process.stdout.on('error', ...)`). Any CLI piped to `head | less | grep`
|
|
20
|
+
should behave this way; ours now does.
|
|
21
|
+
|
|
22
|
+
Confirmed: `node dist/index.js doctor | head -5` returns exit 0 with a
|
|
23
|
+
clean truncated output, no stacktrace.
|
|
24
|
+
|
|
8
25
|
## [0.26.5] - 2026-04-18
|
|
9
26
|
|
|
10
27
|
### Fixed — plugin installation path was broken since 2026-03-01
|
|
@@ -10,7 +10,7 @@ tools:
|
|
|
10
10
|
- mcp__token-pilot__smart_read
|
|
11
11
|
- mcp__token-pilot__smart_read_many
|
|
12
12
|
- mcp__token-pilot__read_section
|
|
13
|
-
token_pilot_version: "0.26.
|
|
13
|
+
token_pilot_version: "0.26.6"
|
|
14
14
|
token_pilot_body_hash: ae0b86eaffaf34bf283b94b5572481fa8c2d6a2a25193f1173b70bef0fbe1919
|
|
15
15
|
---
|
|
16
16
|
|
|
@@ -7,7 +7,7 @@ tools:
|
|
|
7
7
|
- mcp__token-pilot__read_diff
|
|
8
8
|
- mcp__token-pilot__outline
|
|
9
9
|
- mcp__token-pilot__read_symbol
|
|
10
|
-
token_pilot_version: "0.26.
|
|
10
|
+
token_pilot_version: "0.26.6"
|
|
11
11
|
token_pilot_body_hash: a058518619fd6e2def0c9226f6c70438a5e0a80efe680c935414ecd7e1b14a4f
|
|
12
12
|
---
|
|
13
13
|
|
package/dist/agents/tp-run.md
CHANGED
|
@@ -7,7 +7,7 @@ tools:
|
|
|
7
7
|
- mcp__token-pilot__read_range
|
|
8
8
|
- mcp__token-pilot__find_usages
|
|
9
9
|
- mcp__token-pilot__read_symbol
|
|
10
|
-
token_pilot_version: "0.26.
|
|
10
|
+
token_pilot_version: "0.26.6"
|
|
11
11
|
token_pilot_body_hash: 255912c47661d203c8f9a735237bc419f97e937f788a01811bbe126ee3dd5878
|
|
12
12
|
---
|
|
13
13
|
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
// v0.26.6 — handle EPIPE silently. Piping `token-pilot doctor | head -5`
|
|
3
|
+
// causes EPIPE once head closes stdin. Classic Node.js CLI wart. Default
|
|
4
|
+
// behaviour is a red "throw er; // Unhandled 'error' event" stacktrace,
|
|
5
|
+
// which scares users who just wanted a quick look. Standard fix: swallow
|
|
6
|
+
// EPIPE on stdout/stderr and exit 0 — any CLI piped to head|less|grep
|
|
7
|
+
// behaves this way.
|
|
8
|
+
process.stdout.on("error", (err) => {
|
|
9
|
+
if (err.code === "EPIPE")
|
|
10
|
+
process.exit(0);
|
|
11
|
+
throw err;
|
|
12
|
+
});
|
|
13
|
+
process.stderr.on("error", (err) => {
|
|
14
|
+
if (err.code === "EPIPE")
|
|
15
|
+
process.exit(0);
|
|
16
|
+
throw err;
|
|
17
|
+
});
|
|
2
18
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
19
|
import { readFileSync, realpathSync, appendFileSync, mkdirSync } from "node:fs";
|
|
4
20
|
import { join } from "node:path";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "token-pilot",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.6",
|
|
4
4
|
"description": "Save up to 80% tokens when AI reads code — MCP server for token-efficient code navigation, AST-aware structural reading instead of dumping full files into context window",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|