@eloquence98/ctx 0.3.0 → 0.3.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 +19 -14
- package/package.json +3 -5
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Dump a truthful structural index of a codebase.
|
|
|
4
4
|
|
|
5
5
|
No analysis. No opinions. No guessing.
|
|
6
6
|
|
|
7
|
-
ctx scans a directory and prints a map of folders, files, and
|
|
7
|
+
ctx scans a directory and prints a map of folders, files, and trivially detectable exported symbols. It tells you exactly what exists nothing more, nothing less.
|
|
8
8
|
|
|
9
9
|
## ⚡️ Quick Start
|
|
10
10
|
|
|
@@ -20,7 +20,7 @@ ctx provides a high-level map of a project. It identifies:
|
|
|
20
20
|
|
|
21
21
|
- 📂 Folders
|
|
22
22
|
- 📄 Files
|
|
23
|
-
- ➡️ Exported Symbols (when
|
|
23
|
+
- ➡️ Exported Symbols (when trivially detectable; ignores re-exports, computed exports, and unusual formatting)
|
|
24
24
|
|
|
25
25
|
## Example Output
|
|
26
26
|
|
|
@@ -34,11 +34,11 @@ src/
|
|
|
34
34
|
└─ styles.css
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Files whose exports cannot be determined are listed without symbols.
|
|
38
38
|
|
|
39
39
|
## 🧠 Why this exists
|
|
40
40
|
|
|
41
|
-
When working with LLMs
|
|
41
|
+
When working with LLMs, new contributors, or legacy codebases, you don’t always need the content of the files immediately; you need to understand the topology of the project first.
|
|
42
42
|
|
|
43
43
|
ctx gives you that map.
|
|
44
44
|
|
|
@@ -52,13 +52,14 @@ ctx is intentionally dumb. That is why it is reliable.
|
|
|
52
52
|
|
|
53
53
|
It does not:
|
|
54
54
|
|
|
55
|
-
- ❌ Interpret architecture or infer domains
|
|
55
|
+
- ❌ Interpret architecture or infer domains
|
|
56
56
|
- ❌ Explain code intent.
|
|
57
57
|
- ❌ Refactor or execute code.
|
|
58
58
|
- ❌ Read node_modules or .git folders.
|
|
59
|
-
- ❌ Read environment variables
|
|
59
|
+
- ❌ Read environment variables
|
|
60
|
+
- ❌ Parse complex exports (re-exports, barrel files, computed names)
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
See [LIMITATIONS.md](https://github.com/Eloquence98/ctx/blob/main/limitation.md) for detailed edge cases.
|
|
62
63
|
|
|
63
64
|
## ⚙️ Configuration
|
|
64
65
|
|
|
@@ -66,15 +67,19 @@ No configuration required.
|
|
|
66
67
|
|
|
67
68
|
ctx automatically ignores:
|
|
68
69
|
|
|
69
|
-
- node_modules
|
|
70
|
-
-
|
|
71
|
-
- Build outputs (dist
|
|
72
|
-
- Environment files (
|
|
73
|
-
- Test files (
|
|
70
|
+
- `node_modules`
|
|
71
|
+
- `.git`
|
|
72
|
+
- Build outputs (`dist`, `build`, etc.)
|
|
73
|
+
- Environment files (`.env`)
|
|
74
|
+
- Test files (`.test`., `.spec`.)
|
|
75
|
+
|
|
76
|
+
Only `.ts`, `.tsx`, `.js`, `.jsx` files are scanned.
|
|
74
77
|
|
|
75
78
|
## 💡 Philosophy
|
|
76
79
|
|
|
77
|
-
Don
|
|
80
|
+
Don’t explain the code. Show the codebase as it exists.
|
|
81
|
+
|
|
82
|
+
ctx is intentionally shallow: it parses only what can be reliably read from source text.
|
|
78
83
|
|
|
79
84
|
## ⚡️ Install (optional)
|
|
80
85
|
|
|
@@ -85,4 +90,4 @@ ctx ./src
|
|
|
85
90
|
|
|
86
91
|
## License
|
|
87
92
|
|
|
88
|
-
[MIT](https://choosealicense.com/licenses/mit/)
|
|
93
|
+
[MIT ](https://choosealicense.com/licenses/mit/)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eloquence98/ctx",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "Generate a truthful structural map of your codebase for AI and humans.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"ctx": "dist/cli.js"
|
|
@@ -15,11 +15,9 @@
|
|
|
15
15
|
"ai",
|
|
16
16
|
"context",
|
|
17
17
|
"codebase",
|
|
18
|
-
"documentation",
|
|
19
18
|
"cli",
|
|
20
19
|
"typescript",
|
|
21
|
-
"
|
|
22
|
-
"react"
|
|
20
|
+
"javascript"
|
|
23
21
|
],
|
|
24
22
|
"author": "Eloquence98",
|
|
25
23
|
"license": "MIT",
|