@sammons/code-outline-cli 2.0.2 → 2.0.3
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 +4 -4
- package/dist/cli-argument-parser.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# @sammons/code-outline-cli
|
|
2
2
|
|
|
3
|
-
A
|
|
3
|
+
A CLI tool that parses JavaScript/TypeScript files using tree-sitter and provides an outline of the code structure. For understanding codebases and generating LLM-friendly code summaries.
|
|
4
4
|
|
|
5
5
|
## ✨ Features
|
|
6
6
|
|
|
7
|
-
- 🚀 **
|
|
7
|
+
- 🚀 **Tree-sitter parsing** for JavaScript, TypeScript, and TSX files
|
|
8
8
|
- 📊 **Multiple output formats**: JSON, YAML, and ASCII tree
|
|
9
9
|
- 🎯 **Configurable depth** limiting for AST traversal
|
|
10
10
|
- 🔍 **Named-only mode** to show only named entities (functions, classes, etc.)
|
|
11
11
|
- ⚡ **Parallel processing** for multiple files
|
|
12
|
-
- 🎨 **Colored output**
|
|
12
|
+
- 🎨 **Colored output** in ASCII mode
|
|
13
13
|
- 📁 **Glob pattern support** for file selection
|
|
14
14
|
|
|
15
15
|
## 📦 Installation
|
|
@@ -169,7 +169,7 @@ code-outline example.ts --format json
|
|
|
169
169
|
|
|
170
170
|
## 🤖 LLM Integration
|
|
171
171
|
|
|
172
|
-
This tool
|
|
172
|
+
This tool can provide code context to Large Language Models:
|
|
173
173
|
|
|
174
174
|
```bash
|
|
175
175
|
# Generate a code outline and pipe to your LLM tool
|
|
@@ -75,7 +75,7 @@ Supported Files:
|
|
|
75
75
|
.ts TypeScript files
|
|
76
76
|
.tsx TypeScript JSX files
|
|
77
77
|
|
|
78
|
-
For more information, visit: https://github.com/
|
|
78
|
+
For more information, visit: https://github.com/sammons2/code-outline-cli
|
|
79
79
|
`);
|
|
80
80
|
}
|
|
81
81
|
printVersion() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sammons/code-outline-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "CLI tool to parse and provide concise output for JavaScript/TypeScript files",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"fast-glob": "3.3.3",
|
|
28
28
|
"glob": "11.0.3",
|
|
29
|
-
"@sammons/code-outline-
|
|
30
|
-
"@sammons/code-outline-
|
|
29
|
+
"@sammons/code-outline-formatter": "2.0.1",
|
|
30
|
+
"@sammons/code-outline-parser": "2.0.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "24.3.1",
|