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.
Files changed (31) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +2 -3
  3. package/CHANGELOG.md +18 -0
  4. package/{dist/agents → agents}/tp-api-surface-tracker.md +1 -1
  5. package/{dist/agents → agents}/tp-audit-scanner.md +1 -1
  6. package/{dist/agents → agents}/tp-commit-writer.md +1 -1
  7. package/{dist/agents → agents}/tp-context-engineer.md +1 -1
  8. package/{dist/agents → agents}/tp-dead-code-finder.md +1 -1
  9. package/{dist/agents → agents}/tp-debugger.md +1 -1
  10. package/{dist/agents → agents}/tp-dep-health.md +1 -1
  11. package/{dist/agents → agents}/tp-doc-writer.md +1 -1
  12. package/{dist/agents → agents}/tp-history-explorer.md +1 -1
  13. package/{dist/agents → agents}/tp-impact-analyzer.md +1 -1
  14. package/{dist/agents → agents}/tp-incident-timeline.md +1 -1
  15. package/{dist/agents → agents}/tp-incremental-builder.md +1 -1
  16. package/{dist/agents → agents}/tp-migration-scout.md +1 -1
  17. package/{dist/agents → agents}/tp-onboard.md +1 -1
  18. package/{dist/agents → agents}/tp-performance-profiler.md +1 -1
  19. package/{dist/agents → agents}/tp-pr-reviewer.md +1 -1
  20. package/{dist/agents → agents}/tp-refactor-planner.md +1 -1
  21. package/{dist/agents → agents}/tp-review-impact.md +1 -1
  22. package/{dist/agents → agents}/tp-run.md +1 -1
  23. package/{dist/agents → agents}/tp-session-restorer.md +1 -1
  24. package/{dist/agents → agents}/tp-ship-coordinator.md +1 -1
  25. package/{dist/agents → agents}/tp-spec-writer.md +1 -1
  26. package/{dist/agents → agents}/tp-test-coverage-gapper.md +1 -1
  27. package/{dist/agents → agents}/tp-test-triage.md +1 -1
  28. package/{dist/agents → agents}/tp-test-writer.md +1 -1
  29. package/dist/cli/install-agents.d.ts +6 -4
  30. package/dist/cli/install-agents.js +8 -7
  31. 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.0"
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.0",
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.0",
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.
@@ -9,7 +9,7 @@ tools:
9
9
  - mcp__token-pilot__read_symbol
10
10
  - Bash
11
11
  model: haiku
12
- token_pilot_version: "0.27.0"
12
+ token_pilot_version: "0.27.1"
13
13
  token_pilot_body_hash: f30fb3378463d6518041650487f1074b5411c6c3d6d7df315d21267f25f812d6
14
14
  ---
15
15
 
@@ -11,7 +11,7 @@ tools:
11
11
  - Grep
12
12
  - Read
13
13
  model: sonnet
14
- token_pilot_version: "0.27.0"
14
+ token_pilot_version: "0.27.1"
15
15
  token_pilot_body_hash: a740dc6c928d11d7c2c5fbaa953c50b0e35f2abc2dd6e5ef5117bf469a2d0207
16
16
  ---
17
17
 
@@ -8,7 +8,7 @@ tools:
8
8
  - mcp__token-pilot__test_summary
9
9
  - mcp__token-pilot__outline
10
10
  - Bash
11
- token_pilot_version: "0.27.0"
11
+ token_pilot_version: "0.27.1"
12
12
  token_pilot_body_hash: 559a0b61d20974bf33e35bc4c80dcf1b41d10d4df46cf9d05d3d5620713cd46f
13
13
  ---
14
14
 
@@ -13,7 +13,7 @@ tools:
13
13
  - Edit
14
14
  - Glob
15
15
  model: sonnet
16
- token_pilot_version: "0.27.0"
16
+ token_pilot_version: "0.27.1"
17
17
  token_pilot_body_hash: 8977f452021085a9ba63338bf94e8903e56b30e199dc32e41acc4ec3173a931d
18
18
  ---
19
19
 
@@ -11,7 +11,7 @@ tools:
11
11
  - Grep
12
12
  - Read
13
13
  model: sonnet
14
- token_pilot_version: "0.27.0"
14
+ token_pilot_version: "0.27.1"
15
15
  token_pilot_body_hash: 33798b70002a206c4547d08ff46caefe6dbe5a9300f94ab5dad4a57ab5fb4478
16
16
  ---
17
17
 
@@ -12,7 +12,7 @@ tools:
12
12
  - Read
13
13
  - Bash
14
14
  model: sonnet
15
- token_pilot_version: "0.27.0"
15
+ token_pilot_version: "0.27.1"
16
16
  token_pilot_body_hash: ada78a5a3f029721fa51e7cd203395ff0e87f0ab614cc7cf0d5bcc1bf9a80435
17
17
  ---
18
18
 
@@ -9,7 +9,7 @@ tools:
9
9
  - Bash
10
10
  - Read
11
11
  model: haiku
12
- token_pilot_version: "0.27.0"
12
+ token_pilot_version: "0.27.1"
13
13
  token_pilot_body_hash: 6224d989835ea284985b474005b8b46052b7007c4610e661b10658286b5c6624
14
14
  ---
15
15
 
@@ -13,7 +13,7 @@ tools:
13
13
  - Edit
14
14
  - Glob
15
15
  model: haiku
16
- token_pilot_version: "0.27.0"
16
+ token_pilot_version: "0.27.1"
17
17
  token_pilot_body_hash: 72347b06aaea75ed960972e96e2523c221b2ea7c892a3931aa0e7c32e4c86555
18
18
  ---
19
19
 
@@ -10,7 +10,7 @@ tools:
10
10
  - Bash
11
11
  - Read
12
12
  model: haiku
13
- token_pilot_version: "0.27.0"
13
+ token_pilot_version: "0.27.1"
14
14
  token_pilot_body_hash: b2daca007e959eaf26bf9a4d92ba36c3aa277a51de4ca4db674833d36acbe11b
15
15
  ---
16
16
 
@@ -12,7 +12,7 @@ tools:
12
12
  - mcp__token-pilot__read_symbols
13
13
  - Read
14
14
  model: sonnet
15
- token_pilot_version: "0.27.0"
15
+ token_pilot_version: "0.27.1"
16
16
  token_pilot_body_hash: 0be2620ce0303f912f6b3334f261d169f064970c0d16602fa1e76db4cb2ea441
17
17
  ---
18
18
 
@@ -8,7 +8,7 @@ tools:
8
8
  - mcp__token-pilot__read_symbol
9
9
  - Bash
10
10
  model: inherit
11
- token_pilot_version: "0.27.0"
11
+ token_pilot_version: "0.27.1"
12
12
  token_pilot_body_hash: 420ffc423c7479a8d4e1b226cf73eb98d6d41388317c74a950d7f3b6240b6786
13
13
  ---
14
14
 
@@ -13,7 +13,7 @@ tools:
13
13
  - Edit
14
14
  - Bash
15
15
  model: sonnet
16
- token_pilot_version: "0.27.0"
16
+ token_pilot_version: "0.27.1"
17
17
  token_pilot_body_hash: 9cb0bdf6e209d8ac613487385c01ef269d827dc3eddaf81b8eba581a3150b1e3
18
18
  ---
19
19
 
@@ -11,7 +11,7 @@ tools:
11
11
  - Grep
12
12
  - Glob
13
13
  model: sonnet
14
- token_pilot_version: "0.27.0"
14
+ token_pilot_version: "0.27.1"
15
15
  token_pilot_body_hash: cf32cdee777430ecc6732db32b3f883a685c8a02b6dc93379d71b15555e79b3e
16
16
  ---
17
17
 
@@ -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.0"
13
+ token_pilot_version: "0.27.1"
14
14
  token_pilot_body_hash: ae0b86eaffaf34bf283b94b5572481fa8c2d6a2a25193f1173b70bef0fbe1919
15
15
  ---
16
16
 
@@ -11,7 +11,7 @@ tools:
11
11
  - Bash
12
12
  - Read
13
13
  model: sonnet
14
- token_pilot_version: "0.27.0"
14
+ token_pilot_version: "0.27.1"
15
15
  token_pilot_body_hash: 14b6fb4423a839c119120c2ea12c9dd6ab6ad1aeb13df1e7c22807b290cf1f9c
16
16
  ---
17
17
 
@@ -11,7 +11,7 @@ tools:
11
11
  - mcp__token-pilot__read_for_edit
12
12
  - Read
13
13
  model: sonnet
14
- token_pilot_version: "0.27.0"
14
+ token_pilot_version: "0.27.1"
15
15
  token_pilot_body_hash: 73ba5844c8354088dcb10c671622daecc0e8589568de15a6001e1cf951eea586
16
16
  ---
17
17
 
@@ -8,7 +8,7 @@ tools:
8
8
  - mcp__token-pilot__outline
9
9
  - mcp__token-pilot__read_symbol
10
10
  model: sonnet
11
- token_pilot_version: "0.27.0"
11
+ token_pilot_version: "0.27.1"
12
12
  token_pilot_body_hash: dcc2c2aaeb443cc9688639b4337c6069b9d5bf21e3ed757fc8b3ac8a9d61bc03
13
13
  ---
14
14
 
@@ -9,7 +9,7 @@ tools:
9
9
  - mcp__token-pilot__module_info
10
10
  - Bash
11
11
  model: sonnet
12
- token_pilot_version: "0.27.0"
12
+ token_pilot_version: "0.27.1"
13
13
  token_pilot_body_hash: 72b635f511492188587d6cb6fd70f936ae34cf5df1f9cd9eff7849cf1231e185
14
14
  ---
15
15
 
@@ -16,7 +16,7 @@ tools:
16
16
  - Glob
17
17
  - Bash
18
18
  model: haiku
19
- token_pilot_version: "0.27.0"
19
+ token_pilot_version: "0.27.1"
20
20
  token_pilot_body_hash: d665d57085db38077d0eeab74bda8bdb84c9ad59688495486059af5d3fac67cf
21
21
  ---
22
22
 
@@ -9,7 +9,7 @@ tools:
9
9
  - mcp__token-pilot__session_budget
10
10
  - Bash
11
11
  - Read
12
- token_pilot_version: "0.27.0"
12
+ token_pilot_version: "0.27.1"
13
13
  token_pilot_body_hash: 35b7f333a28c94e7dc89fcc3171703c4b466225f55cd5c701b7592f4f6486440
14
14
  ---
15
15
 
@@ -11,7 +11,7 @@ tools:
11
11
  - Read
12
12
  - Grep
13
13
  model: sonnet
14
- token_pilot_version: "0.27.0"
14
+ token_pilot_version: "0.27.1"
15
15
  token_pilot_body_hash: e8f9c28da23e318328f5afd85b09e8e7b96e0dab21a4c6779ba798cd709ced64
16
16
  ---
17
17
 
@@ -9,7 +9,7 @@ tools:
9
9
  - Read
10
10
  - Write
11
11
  model: sonnet
12
- token_pilot_version: "0.27.0"
12
+ token_pilot_version: "0.27.1"
13
13
  token_pilot_body_hash: ed0b9f938c152c0d7be5a6a5eaf3c97c19b27ae4a9540aec342f0edb0927cb27
14
14
  ---
15
15
 
@@ -10,7 +10,7 @@ tools:
10
10
  - mcp__token-pilot__test_summary
11
11
  - Glob
12
12
  - Grep
13
- token_pilot_version: "0.27.0"
13
+ token_pilot_version: "0.27.1"
14
14
  token_pilot_body_hash: cc3d1f46fdb95ac3caf9344f69f1ddcd5ce5a175ee70aa150b7f9fda93edb152
15
15
  ---
16
16
 
@@ -8,7 +8,7 @@ tools:
8
8
  - mcp__token-pilot__find_usages
9
9
  - mcp__token-pilot__read_symbol
10
10
  model: sonnet
11
- token_pilot_version: "0.27.0"
11
+ token_pilot_version: "0.27.1"
12
12
  token_pilot_body_hash: 255912c47661d203c8f9a735237bc419f97e937f788a01811bbe126ee3dd5878
13
13
  ---
14
14
 
@@ -13,7 +13,7 @@ tools:
13
13
  - Edit
14
14
  - Bash
15
15
  model: sonnet
16
- token_pilot_version: "0.27.0"
16
+ token_pilot_version: "0.27.1"
17
17
  token_pilot_body_hash: 96211a3e7f6b52dd47fef286eec3584b1c269fb3464c1102f8b7edbe470700e6
18
18
  ---
19
19
 
@@ -47,10 +47,12 @@ export interface InstallResult {
47
47
  }
48
48
  export declare function installAgents(opts: InstallOptions): Promise<InstallResult>;
49
49
  /**
50
- * Resolve the dist/agents directory relative to the running `dist/index.js`
51
- * entry. Works for both `npm run start` (dist/) and `npm pack`-installed
52
- * users (node_modules/token-pilot/dist/agents/). Falls back to `templates/
53
- * agents` only when we are clearly running from source (tests, dev mode).
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 dist/agents directory relative to the running `dist/index.js`
181
- * entry. Works for both `npm run start` (dist/) and `npm pack`-installed
182
- * users (node_modules/token-pilot/dist/agents/). Falls back to `templates/
183
- * agents` only when we are clearly running from source (tests, dev mode).
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 → dist/agents/.
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.0",
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
- "dist/agents/*.md",
13
+ "agents/*.md",
14
14
  "docs/*.md",
15
15
  "scripts/postinstall.mjs",
16
16
  "start.sh",