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.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/agents/tp-api-surface-tracker.md +1 -1
- package/agents/tp-audit-scanner.md +1 -1
- package/agents/tp-commit-writer.md +1 -1
- package/agents/tp-context-engineer.md +1 -1
- package/agents/tp-dead-code-finder.md +1 -1
- package/agents/tp-debugger.md +1 -1
- package/agents/tp-dep-health.md +1 -1
- package/agents/tp-doc-writer.md +1 -1
- package/agents/tp-history-explorer.md +1 -1
- package/agents/tp-impact-analyzer.md +1 -1
- package/agents/tp-incident-timeline.md +1 -1
- package/agents/tp-incremental-builder.md +1 -1
- package/agents/tp-migration-scout.md +1 -1
- package/agents/tp-onboard.md +1 -1
- package/agents/tp-performance-profiler.md +1 -1
- package/agents/tp-pr-reviewer.md +1 -1
- package/agents/tp-refactor-planner.md +1 -1
- package/agents/tp-review-impact.md +1 -1
- package/agents/tp-run.md +1 -1
- package/agents/tp-session-restorer.md +1 -1
- package/agents/tp-ship-coordinator.md +1 -1
- package/agents/tp-spec-writer.md +1 -1
- package/agents/tp-test-coverage-gapper.md +1 -1
- package/agents/tp-test-triage.md +1 -1
- package/agents/tp-test-writer.md +1 -1
- package/dist/core/validation.d.ts +13 -9
- package/dist/core/validation.js +180 -134
- package/dist/handlers/call-tree.d.ts +35 -0
- package/dist/handlers/call-tree.js +70 -0
- package/dist/hooks/session-start.d.ts +2 -0
- package/dist/hooks/session-start.js +49 -0
- package/dist/server/tool-definitions.d.ts +65 -0
- package/dist/server/tool-definitions.js +18 -0
- package/dist/server.js +36 -1
- 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.
|
|
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.
|
|
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.
|
|
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",
|
package/agents/tp-debugger.md
CHANGED
package/agents/tp-dep-health.md
CHANGED
package/agents/tp-doc-writer.md
CHANGED
package/agents/tp-onboard.md
CHANGED
|
@@ -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.
|
|
13
|
+
token_pilot_version: "0.32.0"
|
|
14
14
|
token_pilot_body_hash: 832e95633fbc8e9b0c10f3e540a327d4be062fb4b3f17a6cce6be13f414e2927
|
|
15
15
|
---
|
|
16
16
|
|
package/agents/tp-pr-reviewer.md
CHANGED
package/agents/tp-run.md
CHANGED
package/agents/tp-spec-writer.md
CHANGED
package/agents/tp-test-triage.md
CHANGED
package/agents/tp-test-writer.md
CHANGED
|
@@ -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?:
|
|
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?:
|
|
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?:
|
|
59
|
+
kind?: "definitions" | "imports" | "usages" | "all";
|
|
60
60
|
limit?: number;
|
|
61
61
|
lang?: string;
|
|
62
62
|
context_lines?: number;
|
|
63
|
-
mode?:
|
|
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:
|
|
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<
|
|
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?:
|
|
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?:
|
|
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<
|
|
150
|
+
include?: Array<"outline" | "imports" | "tests" | "changes">;
|
|
147
151
|
}
|
|
148
152
|
export declare function validateExploreAreaArgs(args: unknown): ExploreAreaArgs;
|
|
149
153
|
export interface SmartLogArgs {
|