token-pilot 0.27.0 → 0.27.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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +2 -3
- package/CHANGELOG.md +18 -0
- package/{dist/agents → agents}/tp-api-surface-tracker.md +1 -1
- package/{dist/agents → agents}/tp-audit-scanner.md +1 -1
- package/{dist/agents → agents}/tp-commit-writer.md +1 -1
- package/{dist/agents → agents}/tp-context-engineer.md +1 -1
- package/{dist/agents → agents}/tp-dead-code-finder.md +1 -1
- package/{dist/agents → agents}/tp-debugger.md +1 -1
- package/{dist/agents → agents}/tp-dep-health.md +1 -1
- package/{dist/agents → agents}/tp-doc-writer.md +1 -1
- package/{dist/agents → agents}/tp-history-explorer.md +1 -1
- package/{dist/agents → agents}/tp-impact-analyzer.md +1 -1
- package/{dist/agents → agents}/tp-incident-timeline.md +1 -1
- package/{dist/agents → agents}/tp-incremental-builder.md +1 -1
- package/{dist/agents → agents}/tp-migration-scout.md +1 -1
- package/{dist/agents → agents}/tp-onboard.md +1 -1
- package/{dist/agents → agents}/tp-performance-profiler.md +1 -1
- package/{dist/agents → agents}/tp-pr-reviewer.md +1 -1
- package/{dist/agents → agents}/tp-refactor-planner.md +1 -1
- package/{dist/agents → agents}/tp-review-impact.md +1 -1
- package/{dist/agents → agents}/tp-run.md +1 -1
- package/{dist/agents → agents}/tp-session-restorer.md +1 -1
- package/{dist/agents → agents}/tp-ship-coordinator.md +1 -1
- package/{dist/agents → agents}/tp-spec-writer.md +1 -1
- package/{dist/agents → agents}/tp-test-coverage-gapper.md +1 -1
- package/{dist/agents → agents}/tp-test-triage.md +1 -1
- package/{dist/agents → agents}/tp-test-writer.md +1 -1
- package/dist/cli/install-agents.d.ts +6 -4
- package/dist/cli/install-agents.js +8 -7
- package/package.json +2 -2
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "Token Pilot \u2014 save 60-90% tokens when AI reads code",
|
|
9
|
-
"version": "0.27.
|
|
9
|
+
"version": "0.27.1"
|
|
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.27.
|
|
16
|
+
"version": "0.27.1",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "Digital-Threads"
|
|
19
19
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "token-pilot",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"description": "Saves 60-90% tokens when AI reads code. AST-aware lazy reading, symbol navigation, cross-session tool-usage analytics, 22 subagents (haiku/sonnet/opus-tiered) with budget watchdog.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Digital-Threads",
|
|
@@ -26,6 +26,5 @@
|
|
|
26
26
|
]
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
"skills": "./skills/"
|
|
30
|
-
"agents": "./dist/agents/"
|
|
29
|
+
"skills": "./skills/"
|
|
31
30
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ 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.27.1] - 2026-04-19
|
|
9
|
+
|
|
10
|
+
### Fixed — plugin install failed on v0.27.0 with "agents: Invalid input"
|
|
11
|
+
|
|
12
|
+
First field report after v0.27.0 hit npm: `claude plugin install token-pilot@token-pilot` failed with a schema validation error because `plugin.json` declared `"agents": "./dist/agents/"` — but `agents` is not a valid field in the Claude Code plugin-manifest schema. Agents are discovered by convention from `./agents/` at the repo root (the same way addyosmani/agent-skills ships 3 of them).
|
|
13
|
+
|
|
14
|
+
Fixed:
|
|
15
|
+
- Removed `"agents"` field from `plugin.json`. Only `"skills"` stays as an explicit path.
|
|
16
|
+
- Moved composed tp-* files from `dist/agents/` to repo-root `agents/` (Claude Code convention).
|
|
17
|
+
- Updated `scripts/build-agents.mjs` to write to `./agents/` by default.
|
|
18
|
+
- Updated `package.json` `files` to ship `agents/*.md` instead of `dist/agents/*.md`.
|
|
19
|
+
- Updated `src/cli/install-agents.ts` `resolveDistAgentsDir` to walk `dist/cli/../../agents/` for npm-installed users.
|
|
20
|
+
- `.gitignore`: removed the `!dist/agents/` exceptions; `agents/` at root is now versioned directly.
|
|
21
|
+
|
|
22
|
+
No behaviour change to agents themselves or any MCP tool. Pure path/schema fix so the plugin path actually works.
|
|
23
|
+
|
|
24
|
+
975 tests still passing.
|
|
25
|
+
|
|
8
26
|
## [0.27.0] - 2026-04-19
|
|
9
27
|
|
|
10
28
|
Big release motivated by Opus 4.7's +35% tokenizer tax over 4.6 — token savings no longer optional. Two interlocking moves.
|
|
@@ -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.27.
|
|
13
|
+
token_pilot_version: "0.27.1"
|
|
14
14
|
token_pilot_body_hash: ae0b86eaffaf34bf283b94b5572481fa8c2d6a2a25193f1173b70bef0fbe1919
|
|
15
15
|
---
|
|
16
16
|
|
|
@@ -47,10 +47,12 @@ export interface InstallResult {
|
|
|
47
47
|
}
|
|
48
48
|
export declare function installAgents(opts: InstallOptions): Promise<InstallResult>;
|
|
49
49
|
/**
|
|
50
|
-
* Resolve the
|
|
51
|
-
* entry. Works for both `npm run start`
|
|
52
|
-
* users
|
|
53
|
-
* agents
|
|
50
|
+
* Resolve the composed agents directory relative to the running
|
|
51
|
+
* `dist/index.js` entry. Works for both `npm run start` and `npm pack`-
|
|
52
|
+
* installed users. As of v0.27.1 the composed agents live at the repo-root
|
|
53
|
+
* `./agents/` (Claude Code plugin convention — see scripts/build-agents.mjs).
|
|
54
|
+
* The compiled JS lives at `dist/cli/install-agents.js`, so we walk two
|
|
55
|
+
* levels up to reach the repo/package root, then into `agents/`.
|
|
54
56
|
*/
|
|
55
57
|
export declare function resolveDistAgentsDir(scriptUrl: string): string;
|
|
56
58
|
/**
|
|
@@ -177,16 +177,17 @@ export async function installAgents(opts) {
|
|
|
177
177
|
}
|
|
178
178
|
// ─── CLI wrapper ─────────────────────────────────────────────────────────────
|
|
179
179
|
/**
|
|
180
|
-
* Resolve the
|
|
181
|
-
* entry. Works for both `npm run start`
|
|
182
|
-
* users
|
|
183
|
-
* agents
|
|
180
|
+
* Resolve the composed agents directory relative to the running
|
|
181
|
+
* `dist/index.js` entry. Works for both `npm run start` and `npm pack`-
|
|
182
|
+
* installed users. As of v0.27.1 the composed agents live at the repo-root
|
|
183
|
+
* `./agents/` (Claude Code plugin convention — see scripts/build-agents.mjs).
|
|
184
|
+
* The compiled JS lives at `dist/cli/install-agents.js`, so we walk two
|
|
185
|
+
* levels up to reach the repo/package root, then into `agents/`.
|
|
184
186
|
*/
|
|
185
187
|
export function resolveDistAgentsDir(scriptUrl) {
|
|
186
|
-
// Compiled layout: dist/cli/install-agents.js →
|
|
187
|
-
// One level up from our own file, then into agents/.
|
|
188
|
+
// Compiled layout: dist/cli/install-agents.js → ../../agents/
|
|
188
189
|
const here = dirname(fileURLToPath(scriptUrl));
|
|
189
|
-
return join(here, "..", "agents");
|
|
190
|
+
return join(here, "..", "..", "agents");
|
|
190
191
|
}
|
|
191
192
|
/** Read one line from an interactive TTY prompt. */
|
|
192
193
|
async function promptLine(question) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "token-pilot",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"description": "Save up to 80% tokens when AI reads code \u2014 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",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"dist/**/*.js",
|
|
12
12
|
"dist/**/*.d.ts",
|
|
13
|
-
"
|
|
13
|
+
"agents/*.md",
|
|
14
14
|
"docs/*.md",
|
|
15
15
|
"scripts/postinstall.mjs",
|
|
16
16
|
"start.sh",
|