token-pilot 0.31.0 → 0.32.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.
Files changed (37) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/agents/tp-api-surface-tracker.md +1 -1
  4. package/agents/tp-audit-scanner.md +1 -1
  5. package/agents/tp-commit-writer.md +1 -1
  6. package/agents/tp-context-engineer.md +1 -1
  7. package/agents/tp-dead-code-finder.md +1 -1
  8. package/agents/tp-debugger.md +1 -1
  9. package/agents/tp-dep-health.md +1 -1
  10. package/agents/tp-doc-writer.md +1 -1
  11. package/agents/tp-history-explorer.md +1 -1
  12. package/agents/tp-impact-analyzer.md +1 -1
  13. package/agents/tp-incident-timeline.md +1 -1
  14. package/agents/tp-incremental-builder.md +1 -1
  15. package/agents/tp-migration-scout.md +1 -1
  16. package/agents/tp-onboard.md +1 -1
  17. package/agents/tp-performance-profiler.md +1 -1
  18. package/agents/tp-pr-reviewer.md +1 -1
  19. package/agents/tp-refactor-planner.md +1 -1
  20. package/agents/tp-review-impact.md +1 -1
  21. package/agents/tp-run.md +1 -1
  22. package/agents/tp-session-restorer.md +1 -1
  23. package/agents/tp-ship-coordinator.md +1 -1
  24. package/agents/tp-spec-writer.md +1 -1
  25. package/agents/tp-test-coverage-gapper.md +1 -1
  26. package/agents/tp-test-triage.md +1 -1
  27. package/agents/tp-test-writer.md +1 -1
  28. package/dist/core/validation.d.ts +13 -9
  29. package/dist/core/validation.js +180 -134
  30. package/dist/handlers/call-tree.d.ts +35 -0
  31. package/dist/handlers/call-tree.js +70 -0
  32. package/dist/hooks/session-start.d.ts +2 -0
  33. package/dist/hooks/session-start.js +49 -0
  34. package/dist/server/tool-definitions.d.ts +65 -0
  35. package/dist/server/tool-definitions.js +18 -0
  36. package/dist/server.js +36 -1
  37. package/package.json +1 -1
@@ -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.31.0"
9
+ "version": "0.32.0"
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.31.0",
16
+ "version": "0.32.0",
17
17
  "author": {
18
18
  "name": "Digital-Threads"
19
19
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "token-pilot",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
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",
@@ -9,7 +9,7 @@ tools:
9
9
  - mcp__token-pilot__read_symbol
10
10
  - Bash
11
11
  model: haiku
12
- token_pilot_version: "0.31.0"
12
+ token_pilot_version: "0.32.0"
13
13
  token_pilot_body_hash: dd184501203fa7f3c73f419c4ffbe33c4be75400cb64a7a51733a3fe23f6e085
14
14
  ---
15
15
 
@@ -11,7 +11,7 @@ tools:
11
11
  - Grep
12
12
  - Read
13
13
  model: sonnet
14
- token_pilot_version: "0.31.0"
14
+ token_pilot_version: "0.32.0"
15
15
  token_pilot_body_hash: d172f600bf32277ea6eb4cbbee4542ddd698a986dcd96997d33930561964569b
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.31.0"
11
+ token_pilot_version: "0.32.0"
12
12
  token_pilot_body_hash: de64a406b5176de19f7422619c7de7949b1f28865f225402c9cea9255f377428
13
13
  ---
14
14
 
@@ -13,7 +13,7 @@ tools:
13
13
  - Edit
14
14
  - Glob
15
15
  model: sonnet
16
- token_pilot_version: "0.31.0"
16
+ token_pilot_version: "0.32.0"
17
17
  token_pilot_body_hash: 68b32af2dacd82ebe52c4eec93edb903d452688274c3065218270627c564d8b0
18
18
  ---
19
19
 
@@ -11,7 +11,7 @@ tools:
11
11
  - Grep
12
12
  - Read
13
13
  model: sonnet
14
- token_pilot_version: "0.31.0"
14
+ token_pilot_version: "0.32.0"
15
15
  token_pilot_body_hash: d9b7f5b7ae6f4ae21305c775361bcab097cc774370a6d976c093571d46d55021
16
16
  ---
17
17
 
@@ -12,7 +12,7 @@ tools:
12
12
  - Read
13
13
  - Bash
14
14
  model: sonnet
15
- token_pilot_version: "0.31.0"
15
+ token_pilot_version: "0.32.0"
16
16
  token_pilot_body_hash: 052413de8d92377edcde6ae5c823f5378db304baccfa29e8866467f42553a500
17
17
  ---
18
18
 
@@ -9,7 +9,7 @@ tools:
9
9
  - Bash
10
10
  - Read
11
11
  model: haiku
12
- token_pilot_version: "0.31.0"
12
+ token_pilot_version: "0.32.0"
13
13
  token_pilot_body_hash: e14dc57493d816f8c2e017963e2ef5f66bea50fd0b805a80e8a0d97c968427e7
14
14
  ---
15
15
 
@@ -13,7 +13,7 @@ tools:
13
13
  - Edit
14
14
  - Glob
15
15
  model: haiku
16
- token_pilot_version: "0.31.0"
16
+ token_pilot_version: "0.32.0"
17
17
  token_pilot_body_hash: 57d741794ab40e31a7ac49c68ea39a9088f5827cdef866ce81bfca1b7c9180cf
18
18
  ---
19
19
 
@@ -10,7 +10,7 @@ tools:
10
10
  - Bash
11
11
  - Read
12
12
  model: haiku
13
- token_pilot_version: "0.31.0"
13
+ token_pilot_version: "0.32.0"
14
14
  token_pilot_body_hash: 7b70fa76a60e3c58a1de4f56c32c0f166424137e203a0cf1c8654e7c9235d904
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.31.0"
15
+ token_pilot_version: "0.32.0"
16
16
  token_pilot_body_hash: 351a987e11eba63852f5431a16d8eb53104f4f689f82fdcc5a2bf4db948ba92f
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.31.0"
11
+ token_pilot_version: "0.32.0"
12
12
  token_pilot_body_hash: de5722bfea374eaab096c1ae635c37879e7a91370ee3cd0532f4240be03c91eb
13
13
  ---
14
14
 
@@ -13,7 +13,7 @@ tools:
13
13
  - Edit
14
14
  - Bash
15
15
  model: sonnet
16
- token_pilot_version: "0.31.0"
16
+ token_pilot_version: "0.32.0"
17
17
  token_pilot_body_hash: 375a824d0d847bb5453ec594c7a62ad566ee7e4d92717b0473f771f1a0477c60
18
18
  ---
19
19
 
@@ -11,7 +11,7 @@ tools:
11
11
  - Grep
12
12
  - Glob
13
13
  model: sonnet
14
- token_pilot_version: "0.31.0"
14
+ token_pilot_version: "0.32.0"
15
15
  token_pilot_body_hash: 0334de1bf99b431b65359637d125cda7c44c6f780eb92c57cc538715b1939536
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.31.0"
13
+ token_pilot_version: "0.32.0"
14
14
  token_pilot_body_hash: 832e95633fbc8e9b0c10f3e540a327d4be062fb4b3f17a6cce6be13f414e2927
15
15
  ---
16
16
 
@@ -11,7 +11,7 @@ tools:
11
11
  - Bash
12
12
  - Read
13
13
  model: sonnet
14
- token_pilot_version: "0.31.0"
14
+ token_pilot_version: "0.32.0"
15
15
  token_pilot_body_hash: b61f06380d80798fa2e49d37bcba0653495bee04dd6bdbc1feff9a75607b0508
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.31.0"
14
+ token_pilot_version: "0.32.0"
15
15
  token_pilot_body_hash: f83f50d05b4f70285ae7afed2b1a406fc436df56e61a0aedbfb31edc7f2b6e66
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.31.0"
11
+ token_pilot_version: "0.32.0"
12
12
  token_pilot_body_hash: c5f6fc122c89e16e5cf774045f92169ee3468555320b898171ba13eca5323550
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.31.0"
12
+ token_pilot_version: "0.32.0"
13
13
  token_pilot_body_hash: 8ef3c3341cbfed4eb8dd130126a9683edc57e378c92ff0ca764d584fd941c55c
14
14
  ---
15
15
 
package/agents/tp-run.md CHANGED
@@ -16,7 +16,7 @@ tools:
16
16
  - Glob
17
17
  - Bash
18
18
  model: haiku
19
- token_pilot_version: "0.31.0"
19
+ token_pilot_version: "0.32.0"
20
20
  token_pilot_body_hash: 2b08618d34a61f00aafccbda9fed6d83243296dedb83440edbd2d5c28bb6dbc4
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.31.0"
12
+ token_pilot_version: "0.32.0"
13
13
  token_pilot_body_hash: 529374ed728f5eed5b758b3be3da65624783c0bf0c1a253d7d661a843eb5f767
14
14
  ---
15
15
 
@@ -11,7 +11,7 @@ tools:
11
11
  - Read
12
12
  - Grep
13
13
  model: sonnet
14
- token_pilot_version: "0.31.0"
14
+ token_pilot_version: "0.32.0"
15
15
  token_pilot_body_hash: a60f6ae110eb3138064bce074e8ba26fa0ce5f4659df1624a9d9d3646803391b
16
16
  ---
17
17
 
@@ -9,7 +9,7 @@ tools:
9
9
  - Read
10
10
  - Write
11
11
  model: sonnet
12
- token_pilot_version: "0.31.0"
12
+ token_pilot_version: "0.32.0"
13
13
  token_pilot_body_hash: c7a4e8b39228fd5158528f389c924c5ff2d98c4b9b05ee0106d54a26c5dc1350
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.31.0"
13
+ token_pilot_version: "0.32.0"
14
14
  token_pilot_body_hash: be81eed53a3720d146cf89e4a14a7a56577633f7c84c234c412ab70d64c05b11
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.31.0"
11
+ token_pilot_version: "0.32.0"
12
12
  token_pilot_body_hash: 362ecf4cb03b059421ea26933473700900073dc38b3a7fe271208dfb1ae14f90
13
13
  ---
14
14
 
@@ -13,7 +13,7 @@ tools:
13
13
  - Edit
14
14
  - Bash
15
15
  model: sonnet
16
- token_pilot_version: "0.31.0"
16
+ token_pilot_version: "0.32.0"
17
17
  token_pilot_body_hash: 269f2fe22ff4517c277d3f56ca67d8a5527b93290ab21079a83ba7af22c1b5a9
18
18
  ---
19
19
 
@@ -22,7 +22,7 @@ export declare function validateReadSymbolArgs(args: unknown): {
22
22
  symbol: string;
23
23
  context_before?: number;
24
24
  context_after?: number;
25
- show?: 'full' | 'head' | 'tail' | 'outline';
25
+ show?: "full" | "head" | "tail" | "outline";
26
26
  };
27
27
  /**
28
28
  * Validate read_symbols arguments (batch multi-symbol read).
@@ -32,7 +32,7 @@ export declare function validateReadSymbolsArgs(args: unknown): {
32
32
  symbols: string[];
33
33
  context_before?: number;
34
34
  context_after?: number;
35
- show?: 'full' | 'head' | 'tail' | 'outline';
35
+ show?: "full" | "head" | "tail" | "outline";
36
36
  };
37
37
  /**
38
38
  * Validate read_range arguments.
@@ -56,11 +56,11 @@ export declare function validateReadDiffArgs(args: unknown): {
56
56
  export interface FindUsagesArgs {
57
57
  symbol: string;
58
58
  scope?: string;
59
- kind?: 'definitions' | 'imports' | 'usages' | 'all';
59
+ kind?: "definitions" | "imports" | "usages" | "all";
60
60
  limit?: number;
61
61
  lang?: string;
62
62
  context_lines?: number;
63
- mode?: 'full' | 'list';
63
+ mode?: "full" | "list";
64
64
  }
65
65
  export declare function validateFindUsagesArgs(args: unknown): FindUsagesArgs;
66
66
  /**
@@ -105,8 +105,12 @@ export declare function validateFindUnusedArgs(args: unknown): {
105
105
  export_only?: boolean;
106
106
  limit?: number;
107
107
  };
108
+ export declare function validateCallTreeArgs(args: unknown): {
109
+ symbol: string;
110
+ depth?: number;
111
+ };
108
112
  export interface CodeAuditArgs {
109
- check: 'pattern' | 'todo' | 'deprecated' | 'annotations' | 'all';
113
+ check: "pattern" | "todo" | "deprecated" | "annotations" | "all";
110
114
  pattern?: string;
111
115
  name?: string;
112
116
  lang?: string;
@@ -118,7 +122,7 @@ export declare function validateCodeAuditArgs(args: unknown): CodeAuditArgs;
118
122
  * v1.1: added include filter.
119
123
  */
120
124
  export interface ProjectOverviewArgs {
121
- include?: Array<'stack' | 'ci' | 'quality' | 'architecture'>;
125
+ include?: Array<"stack" | "ci" | "quality" | "architecture">;
122
126
  }
123
127
  export declare function validateProjectOverviewArgs(args: unknown): ProjectOverviewArgs;
124
128
  /**
@@ -126,14 +130,14 @@ export declare function validateProjectOverviewArgs(args: unknown): ProjectOverv
126
130
  */
127
131
  export interface ModuleInfoArgs {
128
132
  module: string;
129
- check?: 'deps' | 'dependents' | 'api' | 'unused-deps' | 'all';
133
+ check?: "deps" | "dependents" | "api" | "unused-deps" | "all";
130
134
  }
131
135
  export declare function validateModuleInfoArgs(args: unknown): ModuleInfoArgs;
132
136
  /**
133
137
  * Validate smart_diff arguments.
134
138
  */
135
139
  export interface SmartDiffArgs {
136
- scope?: 'unstaged' | 'staged' | 'commit' | 'branch';
140
+ scope?: "unstaged" | "staged" | "commit" | "branch";
137
141
  path?: string;
138
142
  ref?: string;
139
143
  }
@@ -143,7 +147,7 @@ export declare function validateSmartDiffArgs(args: unknown): SmartDiffArgs;
143
147
  */
144
148
  export interface ExploreAreaArgs {
145
149
  path: string;
146
- include?: Array<'outline' | 'imports' | 'tests' | 'changes'>;
150
+ include?: Array<"outline" | "imports" | "tests" | "changes">;
147
151
  }
148
152
  export declare function validateExploreAreaArgs(args: unknown): ExploreAreaArgs;
149
153
  export interface SmartLogArgs {