@compilr-dev/agents-coding-python 0.1.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 (83) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.d.ts +40 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +27 -0
  5. package/dist/parser/index.d.ts +6 -0
  6. package/dist/parser/index.d.ts.map +1 -0
  7. package/dist/parser/index.js +5 -0
  8. package/dist/parser/node-types.d.ts +119 -0
  9. package/dist/parser/node-types.d.ts.map +1 -0
  10. package/dist/parser/node-types.js +4 -0
  11. package/dist/parser/python-parser.d.ts +85 -0
  12. package/dist/parser/python-parser.d.ts.map +1 -0
  13. package/dist/parser/python-parser.js +477 -0
  14. package/dist/skills/index.d.ts +26 -0
  15. package/dist/skills/index.d.ts.map +1 -0
  16. package/dist/skills/index.js +36 -0
  17. package/dist/skills/python-best-practices.d.ts +7 -0
  18. package/dist/skills/python-best-practices.d.ts.map +1 -0
  19. package/dist/skills/python-best-practices.js +78 -0
  20. package/dist/skills/python-code-health.d.ts +7 -0
  21. package/dist/skills/python-code-health.d.ts.map +1 -0
  22. package/dist/skills/python-code-health.js +209 -0
  23. package/dist/skills/python-code-structure.d.ts +7 -0
  24. package/dist/skills/python-code-structure.d.ts.map +1 -0
  25. package/dist/skills/python-code-structure.js +155 -0
  26. package/dist/skills/python-dependency-audit.d.ts +7 -0
  27. package/dist/skills/python-dependency-audit.d.ts.map +1 -0
  28. package/dist/skills/python-dependency-audit.js +246 -0
  29. package/dist/skills/python-refactor-impact.d.ts +7 -0
  30. package/dist/skills/python-refactor-impact.d.ts.map +1 -0
  31. package/dist/skills/python-refactor-impact.js +232 -0
  32. package/dist/tools/extract-docstrings.d.ts +70 -0
  33. package/dist/tools/extract-docstrings.d.ts.map +1 -0
  34. package/dist/tools/extract-docstrings.js +575 -0
  35. package/dist/tools/find-dead-code.d.ts +62 -0
  36. package/dist/tools/find-dead-code.d.ts.map +1 -0
  37. package/dist/tools/find-dead-code.js +422 -0
  38. package/dist/tools/find-duplicates.d.ts +65 -0
  39. package/dist/tools/find-duplicates.d.ts.map +1 -0
  40. package/dist/tools/find-duplicates.js +289 -0
  41. package/dist/tools/find-implementations.d.ts +71 -0
  42. package/dist/tools/find-implementations.d.ts.map +1 -0
  43. package/dist/tools/find-implementations.js +342 -0
  44. package/dist/tools/find-patterns.d.ts +71 -0
  45. package/dist/tools/find-patterns.d.ts.map +1 -0
  46. package/dist/tools/find-patterns.js +477 -0
  47. package/dist/tools/find-references.d.ts +66 -0
  48. package/dist/tools/find-references.d.ts.map +1 -0
  49. package/dist/tools/find-references.js +306 -0
  50. package/dist/tools/find-symbol.d.ts +86 -0
  51. package/dist/tools/find-symbol.d.ts.map +1 -0
  52. package/dist/tools/find-symbol.js +414 -0
  53. package/dist/tools/get-call-graph.d.ts +89 -0
  54. package/dist/tools/get-call-graph.d.ts.map +1 -0
  55. package/dist/tools/get-call-graph.js +431 -0
  56. package/dist/tools/get-class-hierarchy.d.ts +38 -0
  57. package/dist/tools/get-class-hierarchy.d.ts.map +1 -0
  58. package/dist/tools/get-class-hierarchy.js +289 -0
  59. package/dist/tools/get-complexity.d.ts +61 -0
  60. package/dist/tools/get-complexity.d.ts.map +1 -0
  61. package/dist/tools/get-complexity.js +384 -0
  62. package/dist/tools/get-dependency-graph.d.ts +85 -0
  63. package/dist/tools/get-dependency-graph.d.ts.map +1 -0
  64. package/dist/tools/get-dependency-graph.js +387 -0
  65. package/dist/tools/get-exports.d.ts +78 -0
  66. package/dist/tools/get-exports.d.ts.map +1 -0
  67. package/dist/tools/get-exports.js +437 -0
  68. package/dist/tools/get-file-structure.d.ts +28 -0
  69. package/dist/tools/get-file-structure.d.ts.map +1 -0
  70. package/dist/tools/get-file-structure.js +186 -0
  71. package/dist/tools/get-imports.d.ts +34 -0
  72. package/dist/tools/get-imports.d.ts.map +1 -0
  73. package/dist/tools/get-imports.js +455 -0
  74. package/dist/tools/get-signature.d.ts +100 -0
  75. package/dist/tools/get-signature.d.ts.map +1 -0
  76. package/dist/tools/get-signature.js +800 -0
  77. package/dist/tools/index.d.ts +55 -0
  78. package/dist/tools/index.d.ts.map +1 -0
  79. package/dist/tools/index.js +75 -0
  80. package/dist/tools/types.d.ts +378 -0
  81. package/dist/tools/types.d.ts.map +1 -0
  82. package/dist/tools/types.js +4 -0
  83. package/package.json +85 -0
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Python Analysis Tools
3
+ *
4
+ * Tools for analyzing Python source code using Tree-sitter.
5
+ */
6
+ export { getFileStructureTool, createGetFileStructureTool, } from "./get-file-structure.js";
7
+ export { findSymbolTool, createFindSymbolTool } from "./find-symbol.js";
8
+ export { findReferencesTool, createFindReferencesTool, } from "./find-references.js";
9
+ export { getImportsTool, createGetImportsTool } from "./get-imports.js";
10
+ export { getClassHierarchyTool, createGetClassHierarchyTool, } from "./get-class-hierarchy.js";
11
+ export { getComplexityTool, createGetComplexityTool, } from "./get-complexity.js";
12
+ export { extractDocstringsTool, createExtractDocstringsTool, } from "./extract-docstrings.js";
13
+ export { findDeadCodeTool, createFindDeadCodeTool } from "./find-dead-code.js";
14
+ export { findDuplicatesTool, createFindDuplicatesTool, } from "./find-duplicates.js";
15
+ export { findImplementationsTool, createFindImplementationsTool, } from "./find-implementations.js";
16
+ export { findPatternsTool, createFindPatternsTool } from "./find-patterns.js";
17
+ export { getCallGraphTool, createGetCallGraphTool } from "./get-call-graph.js";
18
+ export { getDependencyGraphTool, createGetDependencyGraphTool, } from "./get-dependency-graph.js";
19
+ export { getSignatureTool, createGetSignatureTool } from "./get-signature.js";
20
+ export { getExportsTool, createGetExportsTool } from "./get-exports.js";
21
+ export * from "./types.js";
22
+ export type { GetFileStructureInput } from "./get-file-structure.js";
23
+ export type { FindSymbolInput, FindSymbolResult, PythonSymbolDefinition, PythonSymbolKind, PythonSymbolKindFilter, } from "./find-symbol.js";
24
+ export type { FindReferencesInput, FindReferencesResult, FileReferences, ReferenceType, } from "./find-references.js";
25
+ export type { GetImportsInput } from "./get-imports.js";
26
+ export type { GetClassHierarchyInput, HierarchyDirection, } from "./get-class-hierarchy.js";
27
+ export type { GetComplexityInput, GetComplexityResult, } from "./get-complexity.js";
28
+ export type { ExtractDocstringsInput, ExtractDocstringsResult, FileDocumentation, } from "./extract-docstrings.js";
29
+ export type { FindDeadCodeInput, FindDeadCodeResult, DeadCodeItem, } from "./find-dead-code.js";
30
+ export type { FindDuplicatesInput, FindDuplicatesResult, DuplicateGroup, CodeLocation, } from "./find-duplicates.js";
31
+ export type { FindImplementationsInput, FindImplementationsResult, ImplementationInfo, } from "./find-implementations.js";
32
+ export type { FindPatternsInput, FindPatternsResult, CodePattern, PatternMatch, } from "./find-patterns.js";
33
+ export type { GetCallGraphInput, GetCallGraphResult, CallGraphDirection, CallType, FunctionNode, CallInfo, CallGraphNode, CallGraphStats, } from "./get-call-graph.js";
34
+ export type { GetDependencyGraphInput, GetDependencyGraphResult, ModuleNode, DependencyEdge, CircularDependency, DependencyGraphStats, } from "./get-dependency-graph.js";
35
+ export type { GetSignatureInput, GetSignatureResult, ParameterDetail, ReturnTypeDetail, MemberSignature, Documentation, } from "./get-signature.js";
36
+ export type { GetExportsInput, GetExportsResult, ExportedSymbol, ExportKind, ReExport, ExportStats, } from "./get-exports.js";
37
+ export declare const allPythonTools: readonly [import("@compilr-dev/agents").Tool<import("./get-file-structure.js").GetFileStructureInput>, import("@compilr-dev/agents").Tool<import("./find-symbol.js").FindSymbolInput>, import("@compilr-dev/agents").Tool<import("./find-references.js").FindReferencesInput>, import("@compilr-dev/agents").Tool<import("./get-imports.js").GetImportsInput>, import("@compilr-dev/agents").Tool<import("./get-class-hierarchy.js").GetClassHierarchyInput>, import("@compilr-dev/agents").Tool<import("./get-complexity.js").GetComplexityInput>, import("@compilr-dev/agents").Tool<import("./extract-docstrings.js").ExtractDocstringsInput>, import("@compilr-dev/agents").Tool<import("./find-dead-code.js").FindDeadCodeInput>, import("@compilr-dev/agents").Tool<import("./find-duplicates.js").FindDuplicatesInput>, import("@compilr-dev/agents").Tool<import("./find-implementations.js").FindImplementationsInput>, import("@compilr-dev/agents").Tool<import("./find-patterns.js").FindPatternsInput>, import("@compilr-dev/agents").Tool<import("./get-call-graph.js").GetCallGraphInput>, import("@compilr-dev/agents").Tool<import("./get-dependency-graph.js").GetDependencyGraphInput>, import("@compilr-dev/agents").Tool<import("./get-signature.js").GetSignatureInput>, import("@compilr-dev/agents").Tool<import("./get-exports.js").GetExportsInput>];
38
+ export declare const pythonToolsMap: {
39
+ readonly getFileStructure: import("@compilr-dev/agents").Tool<import("./get-file-structure.js").GetFileStructureInput>;
40
+ readonly findSymbol: import("@compilr-dev/agents").Tool<import("./find-symbol.js").FindSymbolInput>;
41
+ readonly findReferences: import("@compilr-dev/agents").Tool<import("./find-references.js").FindReferencesInput>;
42
+ readonly getImports: import("@compilr-dev/agents").Tool<import("./get-imports.js").GetImportsInput>;
43
+ readonly getClassHierarchy: import("@compilr-dev/agents").Tool<import("./get-class-hierarchy.js").GetClassHierarchyInput>;
44
+ readonly getComplexity: import("@compilr-dev/agents").Tool<import("./get-complexity.js").GetComplexityInput>;
45
+ readonly extractDocstrings: import("@compilr-dev/agents").Tool<import("./extract-docstrings.js").ExtractDocstringsInput>;
46
+ readonly findDeadCode: import("@compilr-dev/agents").Tool<import("./find-dead-code.js").FindDeadCodeInput>;
47
+ readonly findDuplicates: import("@compilr-dev/agents").Tool<import("./find-duplicates.js").FindDuplicatesInput>;
48
+ readonly findImplementations: import("@compilr-dev/agents").Tool<import("./find-implementations.js").FindImplementationsInput>;
49
+ readonly findPatterns: import("@compilr-dev/agents").Tool<import("./find-patterns.js").FindPatternsInput>;
50
+ readonly getCallGraph: import("@compilr-dev/agents").Tool<import("./get-call-graph.js").GetCallGraphInput>;
51
+ readonly getDependencyGraph: import("@compilr-dev/agents").Tool<import("./get-dependency-graph.js").GetDependencyGraphInput>;
52
+ readonly getSignature: import("@compilr-dev/agents").Tool<import("./get-signature.js").GetSignatureInput>;
53
+ readonly getExports: import("@compilr-dev/agents").Tool<import("./get-exports.js").GetExportsInput>;
54
+ };
55
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EACL,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;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oBAAoB,CAAC;AAC5B,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,QAAQ,EACR,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAqB1B,eAAO,MAAM,cAAc,gzCAgBjB,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;CAgBjB,CAAC"}
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Python Analysis Tools
3
+ *
4
+ * Tools for analyzing Python source code using Tree-sitter.
5
+ */
6
+ // Tool exports
7
+ export { getFileStructureTool, createGetFileStructureTool, } from "./get-file-structure.js";
8
+ export { findSymbolTool, createFindSymbolTool } from "./find-symbol.js";
9
+ export { findReferencesTool, createFindReferencesTool, } from "./find-references.js";
10
+ export { getImportsTool, createGetImportsTool } from "./get-imports.js";
11
+ export { getClassHierarchyTool, createGetClassHierarchyTool, } from "./get-class-hierarchy.js";
12
+ export { getComplexityTool, createGetComplexityTool, } from "./get-complexity.js";
13
+ export { extractDocstringsTool, createExtractDocstringsTool, } from "./extract-docstrings.js";
14
+ export { findDeadCodeTool, createFindDeadCodeTool } from "./find-dead-code.js";
15
+ export { findDuplicatesTool, createFindDuplicatesTool, } from "./find-duplicates.js";
16
+ export { findImplementationsTool, createFindImplementationsTool, } from "./find-implementations.js";
17
+ export { findPatternsTool, createFindPatternsTool } from "./find-patterns.js";
18
+ export { getCallGraphTool, createGetCallGraphTool } from "./get-call-graph.js";
19
+ export { getDependencyGraphTool, createGetDependencyGraphTool, } from "./get-dependency-graph.js";
20
+ export { getSignatureTool, createGetSignatureTool } from "./get-signature.js";
21
+ export { getExportsTool, createGetExportsTool } from "./get-exports.js";
22
+ // Type exports
23
+ export * from "./types.js";
24
+ /**
25
+ * All Python analysis tools
26
+ */
27
+ import { getFileStructureTool } from "./get-file-structure.js";
28
+ import { findSymbolTool } from "./find-symbol.js";
29
+ import { findReferencesTool } from "./find-references.js";
30
+ import { getImportsTool } from "./get-imports.js";
31
+ import { getClassHierarchyTool } from "./get-class-hierarchy.js";
32
+ import { getComplexityTool } from "./get-complexity.js";
33
+ import { extractDocstringsTool } from "./extract-docstrings.js";
34
+ import { findDeadCodeTool } from "./find-dead-code.js";
35
+ import { findDuplicatesTool } from "./find-duplicates.js";
36
+ import { findImplementationsTool } from "./find-implementations.js";
37
+ import { findPatternsTool } from "./find-patterns.js";
38
+ import { getCallGraphTool } from "./get-call-graph.js";
39
+ import { getDependencyGraphTool } from "./get-dependency-graph.js";
40
+ import { getSignatureTool } from "./get-signature.js";
41
+ import { getExportsTool } from "./get-exports.js";
42
+ export const allPythonTools = [
43
+ getFileStructureTool,
44
+ findSymbolTool,
45
+ findReferencesTool,
46
+ getImportsTool,
47
+ getClassHierarchyTool,
48
+ getComplexityTool,
49
+ extractDocstringsTool,
50
+ findDeadCodeTool,
51
+ findDuplicatesTool,
52
+ findImplementationsTool,
53
+ findPatternsTool,
54
+ getCallGraphTool,
55
+ getDependencyGraphTool,
56
+ getSignatureTool,
57
+ getExportsTool,
58
+ ];
59
+ export const pythonToolsMap = {
60
+ getFileStructure: getFileStructureTool,
61
+ findSymbol: findSymbolTool,
62
+ findReferences: findReferencesTool,
63
+ getImports: getImportsTool,
64
+ getClassHierarchy: getClassHierarchyTool,
65
+ getComplexity: getComplexityTool,
66
+ extractDocstrings: extractDocstringsTool,
67
+ findDeadCode: findDeadCodeTool,
68
+ findDuplicates: findDuplicatesTool,
69
+ findImplementations: findImplementationsTool,
70
+ findPatterns: findPatternsTool,
71
+ getCallGraph: getCallGraphTool,
72
+ getDependencyGraph: getDependencyGraphTool,
73
+ getSignature: getSignatureTool,
74
+ getExports: getExportsTool,
75
+ };
@@ -0,0 +1,378 @@
1
+ /**
2
+ * Shared types for Python analysis tools
3
+ */
4
+ import type { ClassInfo, FunctionInfo, VariableInfo, ImportInfo, ParameterInfo, DecoratorInfo } from "../parser/node-types.js";
5
+ export type { ClassInfo, FunctionInfo, VariableInfo, ImportInfo, ParameterInfo, DecoratorInfo, };
6
+ /**
7
+ * Common tool input with path
8
+ */
9
+ export interface BaseInput {
10
+ path: string;
11
+ }
12
+ /**
13
+ * File structure result
14
+ */
15
+ export interface FileStructureResult {
16
+ path: string;
17
+ classes: ClassInfo[];
18
+ functions: FunctionInfo[];
19
+ variables: VariableInfo[];
20
+ imports: ImportInfo[];
21
+ docstring?: string;
22
+ stats: {
23
+ totalClasses: number;
24
+ totalFunctions: number;
25
+ totalVariables: number;
26
+ totalImports: number;
27
+ totalLines: number;
28
+ };
29
+ }
30
+ /**
31
+ * Symbol location
32
+ */
33
+ export interface SymbolLocation {
34
+ path: string;
35
+ line: number;
36
+ column: number;
37
+ endLine: number;
38
+ type: "class" | "function" | "method" | "variable" | "parameter" | "import";
39
+ name: string;
40
+ parent?: string;
41
+ signature?: string;
42
+ }
43
+ /**
44
+ * Symbol reference
45
+ */
46
+ export interface SymbolReference {
47
+ path: string;
48
+ line: number;
49
+ column: number;
50
+ context: string;
51
+ type: "read" | "write" | "call" | "import" | "definition" | "attribute";
52
+ }
53
+ /**
54
+ * Complexity metrics
55
+ */
56
+ export interface ComplexityMetrics {
57
+ cyclomatic: number;
58
+ cognitive: number;
59
+ linesOfCode: number;
60
+ parameters: number;
61
+ nestingDepth: number;
62
+ }
63
+ /**
64
+ * Function complexity result
65
+ */
66
+ export interface FunctionComplexity {
67
+ name: string;
68
+ path: string;
69
+ line: number;
70
+ metrics: ComplexityMetrics;
71
+ isComplex: boolean;
72
+ }
73
+ /**
74
+ * File complexity result
75
+ */
76
+ export interface FileComplexityResult {
77
+ path: string;
78
+ functions: FunctionComplexity[];
79
+ averageComplexity: number;
80
+ maxComplexity: number;
81
+ stats: {
82
+ totalFunctions: number;
83
+ complexFunctions: number;
84
+ simpleAverage: number;
85
+ };
86
+ }
87
+ /**
88
+ * Import category
89
+ */
90
+ export type ImportCategory = "stdlib" | "third_party" | "local";
91
+ /**
92
+ * Extended import info with category
93
+ */
94
+ export interface CategorizedImport extends ImportInfo {
95
+ category: ImportCategory;
96
+ }
97
+ /**
98
+ * Imports result
99
+ */
100
+ export interface ImportsResult {
101
+ path: string;
102
+ imports: CategorizedImport[];
103
+ stats: {
104
+ total: number;
105
+ stdlib: number;
106
+ thirdParty: number;
107
+ local: number;
108
+ };
109
+ }
110
+ /**
111
+ * Export info
112
+ */
113
+ export interface ExportInfo {
114
+ name: string;
115
+ type: "class" | "function" | "variable" | "constant";
116
+ line: number;
117
+ isPublic: boolean;
118
+ inAll: boolean;
119
+ }
120
+ /**
121
+ * Exports result
122
+ */
123
+ export interface ExportsResult {
124
+ path: string;
125
+ exports: ExportInfo[];
126
+ hasAll: boolean;
127
+ allList: string[];
128
+ }
129
+ /**
130
+ * Call graph node
131
+ */
132
+ export interface CallNode {
133
+ id: string;
134
+ name: string;
135
+ path: string;
136
+ line: number;
137
+ type: "function" | "method" | "builtin" | "external";
138
+ }
139
+ /**
140
+ * Call graph edge
141
+ */
142
+ export interface CallEdge {
143
+ caller: string;
144
+ callee: string;
145
+ line: number;
146
+ isConditional: boolean;
147
+ inLoop: boolean;
148
+ }
149
+ /**
150
+ * Call graph result
151
+ */
152
+ export interface CallGraphResult {
153
+ path: string;
154
+ nodes: CallNode[];
155
+ edges: CallEdge[];
156
+ stats: {
157
+ totalNodes: number;
158
+ totalEdges: number;
159
+ maxDepth: number;
160
+ };
161
+ }
162
+ /**
163
+ * Dependency graph node
164
+ */
165
+ export interface ModuleNode {
166
+ id: string;
167
+ path: string;
168
+ name: string;
169
+ isExternal: boolean;
170
+ package?: string;
171
+ }
172
+ /**
173
+ * Dependency graph edge
174
+ */
175
+ export interface DependencyEdge {
176
+ from: string;
177
+ to: string;
178
+ imports: string[];
179
+ }
180
+ /**
181
+ * Dependency graph result
182
+ */
183
+ export interface DependencyGraphResult {
184
+ path: string;
185
+ nodes: ModuleNode[];
186
+ edges: DependencyEdge[];
187
+ cycles: string[][];
188
+ }
189
+ /**
190
+ * Type hierarchy parent
191
+ */
192
+ export interface ParentClass {
193
+ name: string;
194
+ path?: string;
195
+ isExternal: boolean;
196
+ }
197
+ /**
198
+ * Type hierarchy result
199
+ */
200
+ export interface TypeHierarchyResult {
201
+ className: string;
202
+ path: string;
203
+ line: number;
204
+ parents: ParentClass[];
205
+ children: Array<{
206
+ name: string;
207
+ path: string;
208
+ line: number;
209
+ }>;
210
+ mro: string[];
211
+ }
212
+ /**
213
+ * Implementation info
214
+ */
215
+ export interface ImplementationInfo {
216
+ className: string;
217
+ path: string;
218
+ line: number;
219
+ baseClass: string;
220
+ implementedMethods: string[];
221
+ missingMethods: string[];
222
+ isComplete: boolean;
223
+ }
224
+ /**
225
+ * Dead code info
226
+ */
227
+ export interface DeadCodeInfo {
228
+ name: string;
229
+ type: "function" | "class" | "variable" | "import";
230
+ path: string;
231
+ line: number;
232
+ reason: string;
233
+ }
234
+ /**
235
+ * Dead code result
236
+ */
237
+ export interface DeadCodeResult {
238
+ path: string;
239
+ unused: DeadCodeInfo[];
240
+ stats: {
241
+ total: number;
242
+ functions: number;
243
+ classes: number;
244
+ variables: number;
245
+ imports: number;
246
+ };
247
+ }
248
+ /**
249
+ * Code clone instance
250
+ */
251
+ export interface CloneInstance {
252
+ path: string;
253
+ startLine: number;
254
+ endLine: number;
255
+ content: string;
256
+ }
257
+ /**
258
+ * Code clone
259
+ */
260
+ export interface CodeClone {
261
+ id: string;
262
+ instances: CloneInstance[];
263
+ lines: number;
264
+ similarity: number;
265
+ }
266
+ /**
267
+ * Duplicates result
268
+ */
269
+ export interface DuplicatesResult {
270
+ path: string;
271
+ clones: CodeClone[];
272
+ stats: {
273
+ totalClones: number;
274
+ duplicatedLines: number;
275
+ percentDuplicated: number;
276
+ };
277
+ }
278
+ /**
279
+ * Pattern type
280
+ */
281
+ export type PatternType = "bare_except" | "mutable_default" | "global_usage" | "star_import" | "nested_function" | "long_function" | "god_class" | "unused_variable" | "shadowing" | "magic_number";
282
+ /**
283
+ * Pattern match
284
+ */
285
+ export interface PatternMatch {
286
+ type: PatternType;
287
+ path: string;
288
+ line: number;
289
+ column: number;
290
+ message: string;
291
+ severity: "info" | "warning" | "error";
292
+ suggestion?: string;
293
+ }
294
+ /**
295
+ * Patterns result
296
+ */
297
+ export interface PatternsResult {
298
+ path: string;
299
+ patterns: PatternMatch[];
300
+ stats: {
301
+ total: number;
302
+ byType: Partial<Record<PatternType, number>>;
303
+ bySeverity: {
304
+ info: number;
305
+ warning: number;
306
+ error: number;
307
+ };
308
+ };
309
+ }
310
+ /**
311
+ * Parsed docstring parameter
312
+ */
313
+ export interface DocParam {
314
+ name: string;
315
+ type?: string;
316
+ description: string;
317
+ optional: boolean;
318
+ default?: string;
319
+ }
320
+ /**
321
+ * Parsed docstring return
322
+ */
323
+ export interface DocReturn {
324
+ type?: string;
325
+ description: string;
326
+ }
327
+ /**
328
+ * Parsed docstring exception
329
+ */
330
+ export interface DocRaise {
331
+ type: string;
332
+ description: string;
333
+ }
334
+ /**
335
+ * Docstring format
336
+ */
337
+ export type DocstringFormat = "google" | "numpy" | "sphinx" | "epytext" | "unknown";
338
+ /**
339
+ * Parsed docstring
340
+ */
341
+ export interface ParsedDocstring {
342
+ summary: string;
343
+ description?: string;
344
+ parameters: DocParam[];
345
+ returns?: DocReturn;
346
+ raises: DocRaise[];
347
+ examples: string[];
348
+ notes?: string;
349
+ format: DocstringFormat;
350
+ }
351
+ /**
352
+ * Documentation result
353
+ */
354
+ export interface DocumentationResult {
355
+ name: string;
356
+ path: string;
357
+ line: number;
358
+ docstring?: string;
359
+ parsed?: ParsedDocstring;
360
+ }
361
+ /**
362
+ * Signature result
363
+ */
364
+ export interface SignatureResult {
365
+ name: string;
366
+ path: string;
367
+ line: number;
368
+ signature: string;
369
+ parameters: ParameterInfo[];
370
+ returnType?: string;
371
+ decorators: DecoratorInfo[];
372
+ isAsync: boolean;
373
+ isGenerator: boolean;
374
+ isClassMethod: boolean;
375
+ isStaticMethod: boolean;
376
+ isProperty: boolean;
377
+ }
378
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+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;IACpB,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,eAAe,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;CACrB"}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Shared types for Python analysis tools
3
+ */
4
+ export {};
package/package.json ADDED
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "@compilr-dev/agents-coding-python",
3
+ "version": "0.1.0",
4
+ "description": "Python analysis tools for AI agents - AST-based code analysis using Tree-sitter",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./parser": {
14
+ "types": "./dist/parser/index.d.ts",
15
+ "import": "./dist/parser/index.js"
16
+ },
17
+ "./tools": {
18
+ "types": "./dist/tools/index.d.ts",
19
+ "import": "./dist/tools/index.js"
20
+ },
21
+ "./skills": {
22
+ "types": "./dist/skills/index.d.ts",
23
+ "import": "./dist/skills/index.js"
24
+ }
25
+ },
26
+ "files": [
27
+ "dist"
28
+ ],
29
+ "scripts": {
30
+ "build": "tsc",
31
+ "clean": "rm -rf dist",
32
+ "lint": "eslint src/",
33
+ "lint:fix": "eslint src/ --fix",
34
+ "format": "prettier --write \"src/**/*.ts\"",
35
+ "format:check": "prettier --check \"src/**/*.ts\"",
36
+ "test": "vitest run",
37
+ "test:watch": "vitest",
38
+ "test:coverage": "vitest run --coverage",
39
+ "prepublishOnly": "npm run clean && npm run lint && npm run test && npm run build",
40
+ "typecheck": "tsc --noEmit"
41
+ },
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "git+https://github.com/compilr-dev/agents-python.git"
45
+ },
46
+ "keywords": [
47
+ "ai",
48
+ "agents",
49
+ "llm",
50
+ "coding",
51
+ "python",
52
+ "ast",
53
+ "analysis",
54
+ "tree-sitter",
55
+ "tools"
56
+ ],
57
+ "author": "Carmelo Scozzola",
58
+ "license": "MIT",
59
+ "bugs": {
60
+ "url": "https://github.com/compilr-dev/agents-python/issues"
61
+ },
62
+ "homepage": "https://github.com/compilr-dev/agents-python#readme",
63
+ "engines": {
64
+ "node": ">=18.0.0"
65
+ },
66
+ "peerDependencies": {
67
+ "@compilr-dev/agents": "^0.3.0"
68
+ },
69
+ "dependencies": {
70
+ "tree-sitter": "^0.22.4",
71
+ "tree-sitter-python": "^0.23.6"
72
+ },
73
+ "devDependencies": {
74
+ "@anthropic-ai/sdk": "^0.30.1",
75
+ "@compilr-dev/agents": "^0.3.0",
76
+ "@eslint/js": "^9.39.1",
77
+ "@types/node": "^24.10.1",
78
+ "@vitest/coverage-v8": "^3.2.4",
79
+ "eslint": "^9.39.1",
80
+ "prettier": "^3.7.1",
81
+ "typescript-eslint": "^8.48.0",
82
+ "typescript": "^5.8.3",
83
+ "vitest": "^3.2.4"
84
+ }
85
+ }