docs update (wip)
This commit is contained in:
@@ -310,8 +310,9 @@ class ASTParser:
|
||||
self.parser = tree_sitter.Parser(self.language)
|
||||
|
||||
def parse(self, code: str) -> tree_sitter.Tree
|
||||
def get_skeleton(self, code: str) -> str
|
||||
def get_curated_view(self, code: str) -> str
|
||||
def get_skeleton(self, code: str, path: str = "") -> str
|
||||
def get_curated_view(self, code: str, path: str = "") -> str
|
||||
def get_targeted_view(self, code: str, symbols: List[str], path: str = "") -> str
|
||||
```
|
||||
|
||||
**`get_skeleton` algorithm:**
|
||||
@@ -329,6 +330,13 @@ Enhanced skeleton that preserves bodies under two conditions:
|
||||
|
||||
If either condition is true, the body is preserved verbatim. This enables a two-tier code view: hot paths shown in full, boilerplate compressed.
|
||||
|
||||
**`get_targeted_view` algorithm:**
|
||||
Extracts only the specified symbols and their dependencies:
|
||||
1. Find all requested symbol definitions (classes, functions, methods).
|
||||
2. For each symbol, traverse its body to find referenced names.
|
||||
3. Include only the definitions that are directly referenced.
|
||||
4. Used for surgical context injection when `target_symbols` is specified on a Ticket.
|
||||
|
||||
### `summarize.py` — Heuristic File Summaries
|
||||
|
||||
Token-efficient structural descriptions without AI calls:
|
||||
|
||||
Reference in New Issue
Block a user