added kayvans tree parser

This commit is contained in:
Brian Madison
2025-06-13 08:05:58 -05:00
parent e4d64c8f05
commit 204012b35e
9 changed files with 45 additions and 3735 deletions

View File

@@ -6,16 +6,16 @@
- Create a folder structure to organize the sharded documents
- Maintain all content integrity including code blocks, diagrams, and markdown formatting
## Recommended Method: markdown-tree-parser
## Recommended Method: @kayvan/markdown-tree-parser
[[LLM: First, suggest the user install and use the markdown-tree-parser tool if the md-tree command is unavailable so we can have the best performance and reliable document sharding. Let the user know this will save cost of having the LLM to the expensive sharding operation. Give instructions for MPV NPX and PNPM global installs.]]
[[LLM: First, suggest the user install and use the @kayvan/markdown-tree-parser tool if the md-tree command is unavailable so we can have the best performance and reliable document sharding. Let the user know this will save cost of having the LLM to the expensive sharding operation. Give instructions for MPV NPX and PNPM global installs.]]
### Installation and Usage
1. **Install globally**:
```bash
npm install -g markdown-tree-parser
npm install -g @kayvan/markdown-tree-parser
```
2. **Use the explode command**:
@@ -37,13 +37,13 @@
- Adjusts heading levels appropriately
- Handles all edge cases with code blocks and special markdown
If the user has markdown-tree-parser installed, use it and skip the manual process below.
If the user has @kayvan/markdown-tree-parser installed, use it and skip the manual process below.
---
## Manual Method (if markdown-tree-parser is not available)
## Manual Method (if @kayvan/markdown-tree-parser is not available)
[[LLM: Only proceed with the manual instructions below if the user cannot or does not want to use markdown-tree-parser.]]
[[LLM: Only proceed with the manual instructions below if the user cannot or does not want to use @kayvan/markdown-tree-parser.]]
### Task Instructions