@kernlang/review-python 0.2.0 → 3.1.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.
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # @kernlang/review-python
2
+
3
+ Python concept mapper for kern review — tree-sitter based
4
+
5
+ Part of the [KERN monorepo](https://github.com/KERNlang/kern).
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @kernlang/review-python
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```ts
16
+ import { extractPythonConcepts } from '@kernlang/review-python';
17
+
18
+ const concepts = extractPythonConcepts(pythonSource);
19
+ // Returns a ConceptMap compatible with the TypeScript mapper output
20
+ ```
21
+
22
+ ## License
23
+
24
+ AGPL-3.0
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@kernlang/review-python",
3
- "version": "0.2.0",
3
+ "version": "3.1.1",
4
4
  "description": "Python concept mapper for kern review — tree-sitter based",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "dependencies": {
9
- "tree-sitter": "^0.22.4",
10
- "tree-sitter-python": "^0.23.6",
11
- "@kernlang/core": "3.0.0",
12
- "@kernlang/review": "3.0.0"
9
+ "tree-sitter": "^0.25.0",
10
+ "tree-sitter-python": "^0.25.0",
11
+ "@kernlang/core": "3.1.1",
12
+ "@kernlang/review": "3.1.1"
13
13
  },
14
14
  "devDependencies": {
15
- "ts-morph": "^24.0.0",
15
+ "ts-morph": "^27.0.0",
16
16
  "typescript": "^5.7.0"
17
17
  },
18
18
  "exports": {
package/src/mapper.ts CHANGED
@@ -477,7 +477,7 @@ function extractDependencyEdges(
477
477
  filePath: string,
478
478
  edges: ConceptEdge[],
479
479
  ): void {
480
- const addDependency = (node: Parser.SyntaxNode, specifier: string) => {
480
+ const addDependency = (node: Parser.SyntaxNode, specifier: string): void => {
481
481
  let subtype: 'stdlib' | 'external' | 'internal' = 'external';
482
482
  if (specifier.startsWith('.')) {
483
483
  subtype = 'internal';