mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-02-15 19:03:22 +08:00
fix: include .md files in instinct-cli glob (completes #216)
The observer agent creates instinct files as .md with YAML frontmatter, but load_all_instincts() only globbed *.yaml and *.yml. Add *.md to the glob so instinct-cli status discovers all instinct files.
This commit is contained in:
@@ -88,7 +88,11 @@ def load_all_instincts() -> list[dict]:
|
||||
for directory in [PERSONAL_DIR, INHERITED_DIR]:
|
||||
if not directory.exists():
|
||||
continue
|
||||
yaml_files = sorted(set(directory.glob("*.yaml")) | set(directory.glob("*.yml")))
|
||||
yaml_files = sorted(
|
||||
set(directory.glob("*.yaml"))
|
||||
| set(directory.glob("*.yml"))
|
||||
| set(directory.glob("*.md"))
|
||||
)
|
||||
for file in yaml_files:
|
||||
try:
|
||||
content = file.read_text()
|
||||
|
||||
@@ -88,7 +88,11 @@ def load_all_instincts() -> list[dict]:
|
||||
for directory in [PERSONAL_DIR, INHERITED_DIR]:
|
||||
if not directory.exists():
|
||||
continue
|
||||
yaml_files = sorted(set(directory.glob("*.yaml")) | set(directory.glob("*.yml")))
|
||||
yaml_files = sorted(
|
||||
set(directory.glob("*.yaml"))
|
||||
| set(directory.glob("*.yml"))
|
||||
| set(directory.glob("*.md"))
|
||||
)
|
||||
for file in yaml_files:
|
||||
try:
|
||||
content = file.read_text()
|
||||
|
||||
Reference in New Issue
Block a user