@polymerix-labs/facts-extract 0.7.4 → 0.7.5
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 +18 -8
- package/package.json +10 -11
package/README.md
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
# @polymerix-labs/facts-extract
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
(no semantic resolution, no graph assembly), so it is safe to ship to client machines.
|
|
3
|
+
Analyze a project directory and write a **FactsBundle** JSON file — one entry per
|
|
4
|
+
supported source file.
|
|
6
5
|
|
|
7
|
-
The
|
|
8
|
-
|
|
6
|
+
The native CLI for your platform is installed automatically (same pattern as `esbuild`);
|
|
7
|
+
nothing is downloaded at runtime.
|
|
9
8
|
|
|
10
9
|
## Install
|
|
11
10
|
|
|
@@ -56,6 +55,17 @@ Exit codes: `0` success, `1` usage error, `2` repo not found, `3` extraction/ser
|
|
|
56
55
|
|
|
57
56
|
## Output
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
The CLI writes a **FactsBundle** JSON (`schema_version`, `repo_root`, and a `files` array).
|
|
59
|
+
Each file entry includes:
|
|
60
|
+
|
|
61
|
+
| Field | What it contains |
|
|
62
|
+
|-------|------------------|
|
|
63
|
+
| `entry` | File path, language, extension |
|
|
64
|
+
| `facts.imports` | Import declarations as written in source |
|
|
65
|
+
| `facts.exports` | Export / re-export declarations (JS/TS) |
|
|
66
|
+
| `facts.symbols` | Classes, methods, functions, fields… with names, types, signatures, and source positions |
|
|
67
|
+
| `facts.refs` | Calls, type uses, inheritance, annotations — collected as written, not yet resolved to targets |
|
|
68
|
+
| `facts.local_bindings` | Local variables and their declared or inferred types |
|
|
69
|
+
| `facts.has_syntax_errors` | Whether the file had parse errors |
|
|
70
|
+
|
|
71
|
+
The bundle format is versioned by `FACTS_SCHEMA_VERSION` (currently `1`).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polymerix-labs/facts-extract",
|
|
3
|
-
"version": "0.7.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.7.5",
|
|
4
|
+
"description": "Analyze a project directory and output structured JSON describing its source files (symbols, imports, and code references). Installs the native CLI for your OS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"polymerix",
|
|
7
7
|
"facts",
|
|
@@ -10,10 +10,9 @@
|
|
|
10
10
|
"parser"
|
|
11
11
|
],
|
|
12
12
|
"homepage": "https://gitlab.com/polymerix/parser",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"directory": "npm/facts-extract"
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public",
|
|
15
|
+
"registry": "https://registry.npmjs.org/"
|
|
17
16
|
},
|
|
18
17
|
"license": "MIT",
|
|
19
18
|
"type": "commonjs",
|
|
@@ -29,10 +28,10 @@
|
|
|
29
28
|
"node": ">=16"
|
|
30
29
|
},
|
|
31
30
|
"optionalDependencies": {
|
|
32
|
-
"@polymerix-labs/facts-extract-linux-x64": "0.7.
|
|
33
|
-
"@polymerix-labs/facts-extract-linux-arm64": "0.7.
|
|
34
|
-
"@polymerix-labs/facts-extract-darwin-x64": "0.7.
|
|
35
|
-
"@polymerix-labs/facts-extract-darwin-arm64": "0.7.
|
|
36
|
-
"@polymerix-labs/facts-extract-win32-x64": "0.7.
|
|
31
|
+
"@polymerix-labs/facts-extract-linux-x64": "0.7.5",
|
|
32
|
+
"@polymerix-labs/facts-extract-linux-arm64": "0.7.5",
|
|
33
|
+
"@polymerix-labs/facts-extract-darwin-x64": "0.7.5",
|
|
34
|
+
"@polymerix-labs/facts-extract-darwin-arm64": "0.7.5",
|
|
35
|
+
"@polymerix-labs/facts-extract-win32-x64": "0.7.5"
|
|
37
36
|
}
|
|
38
37
|
}
|