@papyruslabsai/seshat-mcp 0.19.0 → 0.20.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.
@@ -1,124 +0,0 @@
1
- /**
2
- * Analysis Tools
3
- *
4
- * Composite analyses built from the extracted code entity graph.
5
- * Each tool computes derived insights (dead code, layer violations,
6
- * coupling metrics, auth coverage, etc.) from the entity data.
7
- */
8
- import type { JstfEntity, ProjectLoader } from '../types.js';
9
- /**
10
- * Estimate the token cost of loading an entity's source code into an LLM context.
11
- * Uses real sourceTokens from the extraction pipeline when available (v0.3.2+),
12
- * falls back to heuristic estimation for older bundles.
13
- */
14
- export declare function estimateTokens(e: JstfEntity): number;
15
- export declare function findDeadCode(args: {
16
- include_tests?: boolean;
17
- project?: string;
18
- }, loader: ProjectLoader): unknown;
19
- export declare function findLayerViolations(args: {
20
- project?: string;
21
- }, loader: ProjectLoader): unknown;
22
- export declare function getCouplingMetrics(args: {
23
- group_by?: 'module' | 'layer';
24
- project?: string;
25
- }, loader: ProjectLoader): unknown;
26
- export declare function getAuthMatrix(args: {
27
- project?: string;
28
- module?: string;
29
- layer?: string;
30
- }, loader: ProjectLoader): unknown;
31
- export declare function findErrorGaps(args: {
32
- project?: string;
33
- }, loader: ProjectLoader): unknown;
34
- export declare function getTestCoverage(args: {
35
- weight_by_blast_radius?: boolean;
36
- project?: string;
37
- }, loader: ProjectLoader): unknown;
38
- export declare function getOptimalContext(args: {
39
- target_entity: string;
40
- max_tokens?: number;
41
- strategy?: 'bfs' | 'blast_radius';
42
- project?: string;
43
- }, loader: ProjectLoader): unknown;
44
- /**
45
- * Estimate token cost of a code change BEFORE starting work.
46
- * Computes blast radius, sums source token counts, and projects total burn.
47
- * Logs prediction to Supabase when configured (for calibration feedback loop).
48
- */
49
- export declare function estimateTaskCost(args: {
50
- target_entities: string[];
51
- context_budget?: number;
52
- project?: string;
53
- }, loader: ProjectLoader): Promise<unknown>;
54
- /**
55
- * Close the calibration feedback loop by reporting actual token usage
56
- * against a prior prediction from estimate_task_cost.
57
- *
58
- * Can also abandon a prediction (task was cancelled/not completed),
59
- * or list recent predictions for calibration analysis.
60
- */
61
- export declare function reportActualBurn(args: {
62
- prediction_id?: string;
63
- actual_input_tokens?: number;
64
- actual_output_tokens?: number;
65
- actual_total_tokens?: number;
66
- model?: string;
67
- action?: 'complete' | 'abandon' | 'list';
68
- project?: string;
69
- notes?: string;
70
- }, loader: ProjectLoader): Promise<unknown>;
71
- export declare function find_runtime_violations(args: {
72
- project?: string;
73
- }, loader: ProjectLoader): unknown;
74
- export declare function find_ownership_violations(args: {
75
- project?: string;
76
- }, loader: ProjectLoader): unknown;
77
- export declare function query_traits(args: {
78
- trait: string;
79
- project?: string;
80
- }, loader: ProjectLoader): unknown;
81
- export declare function simulate_mutation(args: {
82
- entity_id: string;
83
- mutation: {
84
- dimension: 'constraints' | 'traits' | 'edges' | 'data' | 'signature';
85
- change: {
86
- add?: string[];
87
- remove?: string[];
88
- add_calls?: string[];
89
- remove_calls?: string[];
90
- add_tables?: Array<{
91
- table: string;
92
- operation?: string;
93
- }>;
94
- remove_tables?: string[];
95
- params?: {
96
- add?: string[];
97
- remove?: string[];
98
- };
99
- };
100
- };
101
- project?: string;
102
- }, loader: ProjectLoader): unknown;
103
- export declare function query_data_targets(args: {
104
- target_name: string;
105
- project?: string;
106
- }, loader: ProjectLoader): unknown;
107
- export declare function find_exposure_leaks(args: {
108
- project?: string;
109
- }, loader: ProjectLoader): unknown;
110
- export declare function find_semantic_clones(args: {
111
- project?: string;
112
- min_complexity?: number;
113
- }, loader: ProjectLoader): unknown;
114
- export declare function create_symbol(args: {
115
- id: string;
116
- source_file: string;
117
- layer?: string;
118
- project?: string;
119
- description?: string;
120
- }, loader: ProjectLoader): unknown;
121
- export declare function trace_boundaries(args: {
122
- project_a: string;
123
- project_b?: string;
124
- }, loaderA: ProjectLoader, loaderB?: ProjectLoader): unknown;