ada-pc: 2026-06-16 20:18:31 | 9
Affected files: .obsidian/graph.json 99 System/INDEX.md 99 System/Tools/agent-tools/AGENT_TOOLS.md 99 System/Tools/agent-tools/vault_audit.py 99 System/Tools/agent-tools/vault_common.py 99 System/Tools/agent-tools/vault_frontmatter.py 99 System/Tools/agent-tools/vault_index.py 99 System/Tools/agent-tools/vault_ingest.py AGENTS.md
This commit is contained in:
+6
-6
@@ -821,12 +821,6 @@ total: 516
|
||||
| [[Drawing 2026-05-17 14.13.00.excalidraw]] | — | — | — | [excalidraw] |
|
||||
| [[infra.excalidraw.md]] | — | — | — | [excalidraw] |
|
||||
|
||||
## 99 System/Export/agent-tools
|
||||
|
||||
| Заметка | Aliases | Status | Type | Tags |
|
||||
|---------|---------|--------|------|------|
|
||||
| [[AGENT_TOOLS]] | — | stable | guide | [agent, tooling, vault] |
|
||||
|
||||
## 99 System/Template
|
||||
|
||||
| Заметка | Aliases | Status | Type | Tags |
|
||||
@@ -836,3 +830,9 @@ total: 516
|
||||
| [[Daily Note]] | — | — | daily | [daily] |
|
||||
| [[Study Item]] | — | seed | knowledge | [] |
|
||||
| [[Travel Item]] | — | seed | knowledge | [travel] |
|
||||
|
||||
## 99 System/Tools/agent-tools
|
||||
|
||||
| Заметка | Aliases | Status | Type | Tags |
|
||||
|---------|---------|--------|------|------|
|
||||
| [[AGENT_TOOLS]] | — | stable | guide | [agent, tooling, vault] |
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ aliases: []
|
||||
Запускать из корня vault:
|
||||
|
||||
```bash
|
||||
python3 "99 System/Export/agent-tools/vault_index.py" dump
|
||||
python3 "99 System/Tools/agent-tools/vault_index.py" dump
|
||||
```
|
||||
|
||||
## Команды
|
||||
+7
@@ -157,6 +157,7 @@ def all_records() -> list[dict[str, Any]]:
|
||||
|
||||
|
||||
def wikilinks(text: str) -> list[str]:
|
||||
text = strip_markdown_code(text)
|
||||
links = []
|
||||
for match in re.finditer(r"\[\[([^\]]+)\]\]", text):
|
||||
target = match.group(1).split("|", 1)[0].split("#", 1)[0].strip()
|
||||
@@ -165,6 +166,12 @@ def wikilinks(text: str) -> list[str]:
|
||||
return links
|
||||
|
||||
|
||||
def strip_markdown_code(text: str) -> str:
|
||||
text = re.sub(r"```.*?```", "", text, flags=re.DOTALL)
|
||||
text = re.sub(r"`[^`\n]*`", "", text)
|
||||
return text
|
||||
|
||||
|
||||
def known_note_names(records: list[dict[str, Any]]) -> set[str]:
|
||||
names: set[str] = set()
|
||||
for record in records:
|
||||
Reference in New Issue
Block a user