From acc42c43813e77616b2e7741516b99bb8288c1d4 Mon Sep 17 00:00:00 2001 From: Yanxin Lu Date: Fri, 3 Apr 2026 15:44:25 -0700 Subject: [PATCH] move note search --- MEMORY.md | 4 ++-- TOOLS.md | 6 +++--- {notesearch => skills/notesearch}/README.md | 2 +- skills/notesearch/_meta.json | 4 ++++ {notesearch => skills/notesearch}/config.json | 0 {notesearch => skills/notesearch}/notesearch.sh | 0 {notesearch => skills/notesearch}/notesearch/__init__.py | 0 {notesearch => skills/notesearch}/notesearch/__main__.py | 0 {notesearch => skills/notesearch}/notesearch/cli.py | 0 {notesearch => skills/notesearch}/notesearch/core.py | 0 {notesearch => skills/notesearch}/pyproject.toml | 0 {notesearch => skills/notesearch}/tests/__init__.py | 0 {notesearch => skills/notesearch}/tests/test_core.py | 0 {notesearch => skills/notesearch}/uv.lock | 0 14 files changed, 10 insertions(+), 6 deletions(-) rename {notesearch => skills/notesearch}/README.md (97%) create mode 100644 skills/notesearch/_meta.json rename {notesearch => skills/notesearch}/config.json (100%) rename {notesearch => skills/notesearch}/notesearch.sh (100%) rename {notesearch => skills/notesearch}/notesearch/__init__.py (100%) rename {notesearch => skills/notesearch}/notesearch/__main__.py (100%) rename {notesearch => skills/notesearch}/notesearch/cli.py (100%) rename {notesearch => skills/notesearch}/notesearch/core.py (100%) rename {notesearch => skills/notesearch}/pyproject.toml (100%) rename {notesearch => skills/notesearch}/tests/__init__.py (100%) rename {notesearch => skills/notesearch}/tests/test_core.py (100%) rename {notesearch => skills/notesearch}/uv.lock (100%) diff --git a/MEMORY.md b/MEMORY.md index 1b2e53b..4cf0f48 100644 --- a/MEMORY.md +++ b/MEMORY.md @@ -107,7 +107,7 @@ _这份文件记录持续性项目和重要状态,跨会话保留。_ **状态**: 运行中 **创建**: 2026-04-03 **配置**: -- 工具: `~/.openclaw/workspace/notesearch/` +- 工具: `~/.openclaw/workspace/skills/notesearch/` - 笔记库: `/home/lyx/Documents/obsidian-yanxin`(Obsidian vault,独立 git 仓库) - 嵌入模型: `qwen3-embedding:0.6b`(通过 Ollama) - 索引: `/.index/`(gitignored) @@ -129,7 +129,7 @@ _这份文件记录持续性项目和重要状态,跨会话保留。_ | 日历/待办 | `~/.openclaw/workspace/skills/calendar/` | | 日历数据 | `~/.openclaw/workspace/calendars/` (home=事件, tasks=待办) | | himalaya 包装器 | `~/.openclaw/workspace/scripts/himalaya.sh` | -| 笔记搜索 | `~/.openclaw/workspace/notesearch/` | +| 笔记搜索 | `~/.openclaw/workspace/skills/notesearch/` | | Obsidian 笔记库 | `/home/lyx/Documents/obsidian-yanxin` | --- diff --git a/TOOLS.md b/TOOLS.md index b745533..49c2748 100644 --- a/TOOLS.md +++ b/TOOLS.md @@ -186,14 +186,14 @@ $SKILL_DIR/scripts/calendar.sh todo check # 每日摘要(cron) ### Notesearch 笔记搜索 -**目录**: `~/.openclaw/workspace/notesearch/` -**配置**: `~/.openclaw/workspace/notesearch/config.json` +**目录**: `~/.openclaw/workspace/skills/notesearch/` +**配置**: `~/.openclaw/workspace/skills/notesearch/config.json` **笔记库**: `/home/lyx/Documents/obsidian-yanxin`(Obsidian vault,git 管理) 基于向量搜索的笔记检索工具,使用 LlamaIndex + Ollama 嵌入模型索引 Obsidian 笔记。 ```bash -NOTESEARCH=~/.openclaw/workspace/notesearch/notesearch.sh +NOTESEARCH=~/.openclaw/workspace/skills/notesearch/notesearch.sh # 搜索笔记(返回相关片段 + 文件路径 + 相关性分数) $NOTESEARCH search "allergy shots" diff --git a/notesearch/README.md b/skills/notesearch/README.md similarity index 97% rename from notesearch/README.md rename to skills/notesearch/README.md index c018aff..3467fd4 100644 --- a/notesearch/README.md +++ b/skills/notesearch/README.md @@ -7,7 +7,7 @@ Point it at an Obsidian vault (or any folder of `.md` files), build a vector ind ## Setup ```bash -cd notesearch +cd ~/.openclaw/workspace/skills/notesearch uv sync ``` diff --git a/skills/notesearch/_meta.json b/skills/notesearch/_meta.json new file mode 100644 index 0000000..603b732 --- /dev/null +++ b/skills/notesearch/_meta.json @@ -0,0 +1,4 @@ +{ + "slug": "notesearch", + "version": "0.1.0" +} diff --git a/notesearch/config.json b/skills/notesearch/config.json similarity index 100% rename from notesearch/config.json rename to skills/notesearch/config.json diff --git a/notesearch/notesearch.sh b/skills/notesearch/notesearch.sh similarity index 100% rename from notesearch/notesearch.sh rename to skills/notesearch/notesearch.sh diff --git a/notesearch/notesearch/__init__.py b/skills/notesearch/notesearch/__init__.py similarity index 100% rename from notesearch/notesearch/__init__.py rename to skills/notesearch/notesearch/__init__.py diff --git a/notesearch/notesearch/__main__.py b/skills/notesearch/notesearch/__main__.py similarity index 100% rename from notesearch/notesearch/__main__.py rename to skills/notesearch/notesearch/__main__.py diff --git a/notesearch/notesearch/cli.py b/skills/notesearch/notesearch/cli.py similarity index 100% rename from notesearch/notesearch/cli.py rename to skills/notesearch/notesearch/cli.py diff --git a/notesearch/notesearch/core.py b/skills/notesearch/notesearch/core.py similarity index 100% rename from notesearch/notesearch/core.py rename to skills/notesearch/notesearch/core.py diff --git a/notesearch/pyproject.toml b/skills/notesearch/pyproject.toml similarity index 100% rename from notesearch/pyproject.toml rename to skills/notesearch/pyproject.toml diff --git a/notesearch/tests/__init__.py b/skills/notesearch/tests/__init__.py similarity index 100% rename from notesearch/tests/__init__.py rename to skills/notesearch/tests/__init__.py diff --git a/notesearch/tests/test_core.py b/skills/notesearch/tests/test_core.py similarity index 100% rename from notesearch/tests/test_core.py rename to skills/notesearch/tests/test_core.py diff --git a/notesearch/uv.lock b/skills/notesearch/uv.lock similarity index 100% rename from notesearch/uv.lock rename to skills/notesearch/uv.lock