token-pilot 0.19.0 → 0.19.2
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 +607 -575
- package/README.md +1 -1
- package/dist/ast-index/binary-manager.d.ts +3 -3
- package/dist/ast-index/binary-manager.js +74 -11
- package/dist/ast-index/client.d.ts +5 -1
- package/dist/ast-index/client.js +9 -2
- package/dist/handlers/session-snapshot.d.ts +1 -0
- package/dist/handlers/session-snapshot.js +6 -0
- package/dist/hooks/installer.d.ts +7 -1
- package/dist/hooks/installer.js +63 -33
- package/dist/index.js +38 -21
- package/dist/server/tool-definitions.d.ts +27 -0
- package/dist/server/tool-definitions.js +2 -1
- package/package.json +87 -87
package/package.json
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "token-pilot",
|
|
3
|
-
"version": "0.19.
|
|
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
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"bin": {
|
|
8
|
-
"token-pilot": "dist/index.js"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"dist/**/*.js",
|
|
12
|
-
"dist/**/*.d.ts",
|
|
13
|
-
"start.sh",
|
|
14
|
-
".claude-plugin/",
|
|
15
|
-
".mcp.json",
|
|
16
|
-
"skills/",
|
|
17
|
-
"README.md",
|
|
18
|
-
"CHANGELOG.md"
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"prebuild": "node --input-type=module -e \"import { rm } from 'node:fs/promises'; await rm('dist', { recursive: true, force: true });\"",
|
|
22
|
-
"build": "tsc",
|
|
23
|
-
"dev": "tsc --watch",
|
|
24
|
-
"start": "node dist/index.js",
|
|
25
|
-
"test": "vitest run",
|
|
26
|
-
"test:coverage": "vitest run --coverage",
|
|
27
|
-
"test:watch": "vitest",
|
|
28
|
-
"lint": "tsc --noEmit",
|
|
29
|
-
"prepublishOnly": "npm run build && node --input-type=module -e \"import { chmod } from 'node:fs/promises'; await chmod('dist/index.js', 0o755);\""
|
|
30
|
-
},
|
|
31
|
-
"keywords": [
|
|
32
|
-
"mcp",
|
|
33
|
-
"mcp-server",
|
|
34
|
-
"model-context-protocol",
|
|
35
|
-
"claude",
|
|
36
|
-
"claude-code",
|
|
37
|
-
"cursor",
|
|
38
|
-
"codex",
|
|
39
|
-
"cline",
|
|
40
|
-
"ai-coding",
|
|
41
|
-
"llm-tools",
|
|
42
|
-
"token-savings",
|
|
43
|
-
"token-reduction",
|
|
44
|
-
"context-window",
|
|
45
|
-
"context-optimization",
|
|
46
|
-
"ast",
|
|
47
|
-
"code-reading",
|
|
48
|
-
"code-navigation",
|
|
49
|
-
"smart-read",
|
|
50
|
-
"developer-tools",
|
|
51
|
-
"tree-sitter"
|
|
52
|
-
],
|
|
53
|
-
"repository": {
|
|
54
|
-
"type": "git",
|
|
55
|
-
"url": "git+https://github.com/Digital-Threads/token-pilot.git"
|
|
56
|
-
},
|
|
57
|
-
"homepage": "https://github.com/Digital-Threads/token-pilot#readme",
|
|
58
|
-
"bugs": {
|
|
59
|
-
"url": "https://github.com/Digital-Threads/token-pilot/issues"
|
|
60
|
-
},
|
|
61
|
-
"mcpName": "io.github.Digital-Threads/token-pilot",
|
|
62
|
-
"license": "MIT",
|
|
63
|
-
"dependencies": {
|
|
64
|
-
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
65
|
-
"chokidar": "^4.0.3"
|
|
66
|
-
},
|
|
67
|
-
"devDependencies": {
|
|
68
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
69
|
-
"@types/node": "^22.0.0",
|
|
70
|
-
"typescript": "^5.7.0",
|
|
71
|
-
"vitest": "^3.0.0"
|
|
72
|
-
},
|
|
73
|
-
"engines": {
|
|
74
|
-
"node": ">=18.0.0"
|
|
75
|
-
},
|
|
76
|
-
"peerDependencies": {
|
|
77
|
-
"ast-index": ">=0.1.0"
|
|
78
|
-
},
|
|
79
|
-
"peerDependenciesMeta": {
|
|
80
|
-
"ast-index": {
|
|
81
|
-
"optional": true
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"optionalDependencies": {
|
|
85
|
-
"@ast-grep/cli": "^0.41.0"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "token-pilot",
|
|
3
|
+
"version": "0.19.2",
|
|
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
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"token-pilot": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist/**/*.js",
|
|
12
|
+
"dist/**/*.d.ts",
|
|
13
|
+
"start.sh",
|
|
14
|
+
".claude-plugin/",
|
|
15
|
+
".mcp.json",
|
|
16
|
+
"skills/",
|
|
17
|
+
"README.md",
|
|
18
|
+
"CHANGELOG.md"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"prebuild": "node --input-type=module -e \"import { rm } from 'node:fs/promises'; await rm('dist', { recursive: true, force: true });\"",
|
|
22
|
+
"build": "tsc",
|
|
23
|
+
"dev": "tsc --watch",
|
|
24
|
+
"start": "node dist/index.js",
|
|
25
|
+
"test": "vitest run",
|
|
26
|
+
"test:coverage": "vitest run --coverage",
|
|
27
|
+
"test:watch": "vitest",
|
|
28
|
+
"lint": "tsc --noEmit",
|
|
29
|
+
"prepublishOnly": "npm run build && node --input-type=module -e \"import { chmod } from 'node:fs/promises'; await chmod('dist/index.js', 0o755);\""
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"mcp",
|
|
33
|
+
"mcp-server",
|
|
34
|
+
"model-context-protocol",
|
|
35
|
+
"claude",
|
|
36
|
+
"claude-code",
|
|
37
|
+
"cursor",
|
|
38
|
+
"codex",
|
|
39
|
+
"cline",
|
|
40
|
+
"ai-coding",
|
|
41
|
+
"llm-tools",
|
|
42
|
+
"token-savings",
|
|
43
|
+
"token-reduction",
|
|
44
|
+
"context-window",
|
|
45
|
+
"context-optimization",
|
|
46
|
+
"ast",
|
|
47
|
+
"code-reading",
|
|
48
|
+
"code-navigation",
|
|
49
|
+
"smart-read",
|
|
50
|
+
"developer-tools",
|
|
51
|
+
"tree-sitter"
|
|
52
|
+
],
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "git+https://github.com/Digital-Threads/token-pilot.git"
|
|
56
|
+
},
|
|
57
|
+
"homepage": "https://github.com/Digital-Threads/token-pilot#readme",
|
|
58
|
+
"bugs": {
|
|
59
|
+
"url": "https://github.com/Digital-Threads/token-pilot/issues"
|
|
60
|
+
},
|
|
61
|
+
"mcpName": "io.github.Digital-Threads/token-pilot",
|
|
62
|
+
"license": "MIT",
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
65
|
+
"chokidar": "^4.0.3"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
69
|
+
"@types/node": "^22.0.0",
|
|
70
|
+
"typescript": "^5.7.0",
|
|
71
|
+
"vitest": "^3.0.0"
|
|
72
|
+
},
|
|
73
|
+
"engines": {
|
|
74
|
+
"node": ">=18.0.0"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"ast-index": ">=0.1.0"
|
|
78
|
+
},
|
|
79
|
+
"peerDependenciesMeta": {
|
|
80
|
+
"ast-index": {
|
|
81
|
+
"optional": true
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"optionalDependencies": {
|
|
85
|
+
"@ast-grep/cli": "^0.41.0"
|
|
86
|
+
}
|
|
87
|
+
}
|