token-pilot 0.1.6 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,19 @@ 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.2.0] - 2026-03-01
9
+
10
+ ### Planned (Roadmap v0.2.x)
11
+ - Real Token Estimation (js-tiktoken) for accurate per-model token counting
12
+ - Forced Context Markup (XML format) for explicit AST structure
13
+ - Context Window Tracker for real-time context visibility
14
+ - Myers Diff Algorithm for optimized re-read operations
15
+ - Internal documentation: SDD, Contributing Guide, Implementation Checklist
16
+
17
+ ### Infrastructure
18
+ - Updated .gitignore for private development documentation
19
+ - Setup development guides and architecture planning docs
20
+
8
21
  ## [0.1.6] - 2026-03-01
9
22
 
10
23
  ### Fixed
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "token-pilot",
3
- "version": "0.1.6",
3
+ "version": "0.2.0",
4
4
  "description": "MCP server that reduces token consumption in AI coding assistants via AST-aware lazy file reading",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/start.sh CHANGED
@@ -1,27 +1,27 @@
1
- #!/usr/bin/env bash
2
- # Token Pilot bootstrap script for Claude Code plugin system.
3
- # Handles auto-install of dependencies and build on first run.
4
-
5
- set -e
6
-
7
- SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
8
- cd "$SCRIPT_DIR"
9
-
10
- # 1. Install node_modules if missing
11
- if [ ! -d "node_modules" ]; then
12
- echo "[token-pilot] Installing dependencies..." >&2
13
- npm install --production --no-audit --no-fund 2>&1 >&2
14
- fi
15
-
16
- # 2. Build if dist/ is missing
17
- if [ ! -f "dist/index.js" ]; then
18
- echo "[token-pilot] Building..." >&2
19
- # Need devDependencies for build
20
- npm install --no-audit --no-fund 2>&1 >&2
21
- npm run build 2>&1 >&2
22
- fi
23
-
24
- # 3. Start the MCP server
25
- # Pass CLAUDE_PROJECT_DIR as project root if available, otherwise cwd
26
- PROJECT_ROOT="${CLAUDE_PROJECT_DIR:-$(pwd)}"
27
- exec node "$SCRIPT_DIR/dist/index.js" "$PROJECT_ROOT"
1
+ #!/usr/bin/env bash
2
+ # Token Pilot bootstrap script for Claude Code plugin system.
3
+ # Handles auto-install of dependencies and build on first run.
4
+
5
+ set -e
6
+
7
+ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
8
+ cd "$SCRIPT_DIR"
9
+
10
+ # 1. Install node_modules if missing
11
+ if [ ! -d "node_modules" ]; then
12
+ echo "[token-pilot] Installing dependencies..." >&2
13
+ npm install --production --no-audit --no-fund 2>&1 >&2
14
+ fi
15
+
16
+ # 2. Build if dist/ is missing
17
+ if [ ! -f "dist/index.js" ]; then
18
+ echo "[token-pilot] Building..." >&2
19
+ # Need devDependencies for build
20
+ npm install --no-audit --no-fund 2>&1 >&2
21
+ npm run build 2>&1 >&2
22
+ fi
23
+
24
+ # 3. Start the MCP server
25
+ # Pass CLAUDE_PROJECT_DIR as project root if available, otherwise cwd
26
+ PROJECT_ROOT="${CLAUDE_PROJECT_DIR:-$(pwd)}"
27
+ exec node "$SCRIPT_DIR/dist/index.js" "$PROJECT_ROOT"