mirror of
https://github.com/shareAI-lab/analysis_claude_code.git
synced 2026-09-20 12:13:38 +08:00
fix: support bounded recursive glob across lessons
This commit is contained in:
@@ -74,7 +74,12 @@ def run_edit(path, old_text, new_text):
|
||||
|
||||
def run_glob(pattern):
|
||||
import glob as g
|
||||
return "\n".join(g.glob(pattern, root_dir=WORKDIR))
|
||||
matches = sorted(set(g.glob(
|
||||
pattern, root_dir=WORKDIR, recursive=True)))
|
||||
shown = matches[:200]
|
||||
if len(matches) > 200:
|
||||
shown.append("... (more matches omitted; narrow the pattern)")
|
||||
return "\n".join(shown)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user