@ev3lynx/md-analyzer
Advanced tools
+2
-2
@@ -19,4 +19,4 @@ [tool.md-analyzer] | ||
| # Path configuration | ||
| default_directory = "/home/ev3lynx/.openclaw/workspace-gh0st/headquarters/knowledge/" | ||
| tool_path = "/home/ev3lynx/dev/micromark/md-analyzer.js" | ||
| default_directory = "" | ||
| tool_path = "" | ||
@@ -23,0 +23,0 @@ # Token budget configuration |
+26
-0
@@ -296,2 +296,28 @@ #!/usr/bin/env node | ||
| const config = getTomlConfig(configPath); | ||
| if (process.argv.includes('--help') || process.argv.includes('-h')) { | ||
| console.log(`md-analyzer - Markdown document analyzer for AI agents | ||
| Usage: md-analyzer <directory> [options] | ||
| Options: | ||
| --json Output as JSON | ||
| --search <kw> Search keyword in content | ||
| --filter <k=v> Filter by metadata field | ||
| --rank Rank results by relevance | ||
| --graph Document relationship graph | ||
| --orphans Find unreferenced docs | ||
| --backlinks <doc> Find docs linking to <doc> | ||
| --keypoints Quick overview (single-shot) | ||
| --session Token budget report | ||
| --budget <n> Set token budget limit | ||
| --max-results <n> Limit output | ||
| --help, -h Show this help message | ||
| Examples: | ||
| md-analyzer /path/to/docs --keypoints --json | ||
| md-analyzer . --search "task" --rank --json | ||
| md-analyzer . --session --budget 50000 --json | ||
| md-analyzer . --orphans --json`); | ||
| process.exit(0); | ||
| } | ||
| let cliDir = ''; | ||
@@ -298,0 +324,0 @@ for (let i = 2; i < process.argv.length; i++) { |
+2
-2
| { | ||
| "name": "@ev3lynx/md-analyzer", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "Markdown document analyzer for AI agents - extract metadata, headings, links, tables, tokens, and key points", | ||
@@ -53,2 +53,2 @@ "main": "md-analyzer.js", | ||
| ] | ||
| } | ||
| } |
+27
-0
@@ -270,2 +270,29 @@ #!/usr/bin/env node | ||
| if (process.argv.includes('--help') || process.argv.includes('-h')) { | ||
| console.log(`md-analyzer - Markdown document analyzer for AI agents | ||
| Usage: md-analyzer <directory> [options] | ||
| Options: | ||
| --json Output as JSON | ||
| --search <kw> Search keyword in content | ||
| --filter <k=v> Filter by metadata field | ||
| --rank Rank results by relevance | ||
| --graph Document relationship graph | ||
| --orphans Find unreferenced docs | ||
| --backlinks <doc> Find docs linking to <doc> | ||
| --keypoints Quick overview (single-shot) | ||
| --session Token budget report | ||
| --budget <n> Set token budget limit | ||
| --max-results <n> Limit output | ||
| --help, -h Show this help message | ||
| Examples: | ||
| md-analyzer /path/to/docs --keypoints --json | ||
| md-analyzer . --search "task" --rank --json | ||
| md-analyzer . --session --budget 50000 --json | ||
| md-analyzer . --orphans --json`) | ||
| process.exit(0) | ||
| } | ||
| let cliDir = '' | ||
@@ -272,0 +299,0 @@ for (let i = 2; i < process.argv.length; i++) { |
50923
3.69%756
6.48%