lorewiki 0.2.6__tar.gz → 0.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lorewiki-0.2.6 → lorewiki-0.2.7}/PKG-INFO +1 -1
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/__init__.py +1 -1
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/utils/skill_installer.py +15 -1
- {lorewiki-0.2.6 → lorewiki-0.2.7}/pyproject.toml +1 -1
- {lorewiki-0.2.6 → lorewiki-0.2.7}/.gitignore +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/LICENSE +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/README.md +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/__main__.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/cli/__init__.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/cli/add.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/cli/apps.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/cli/commands.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/cli/config_cmds.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/cli/helpers.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/cli/install_cmd.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/cli/topic_cmds.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/config.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/data/skill_template/SKILL.md +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/db/__init__.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/db/connection.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/db/models.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/db/schema.sql +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/indexer/__init__.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/indexer/chunker.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/indexer/cleaning.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/indexer/indexer.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/indexer/parser.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/llm/__init__.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/llm/client.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/llm/generator.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/py.typed +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/retriever/__init__.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/retriever/base.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/retriever/bm25.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/retriever/fusion.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/retriever/hierarchy.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/retriever/search.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/retriever/vector.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/topic.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/utils/__init__.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/utils/logger.py +0 -0
- {lorewiki-0.2.6 → lorewiki-0.2.7}/lorewiki/utils/topic_shared.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lorewiki
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: Local-first knowledge base for LLM-assisted coding, with hybrid retrieval (BM25 + hierarchy + optional vector) over SQLite FTS5.
|
|
5
5
|
Project-URL: Documentation, https://github.com/JochenYang/Lore-wiki
|
|
6
6
|
Project-URL: Source, https://github.com/JochenYang/Lore-wiki
|
|
@@ -84,9 +84,23 @@ class Tool:
|
|
|
84
84
|
aliases: tuple[str, ...] = ()
|
|
85
85
|
|
|
86
86
|
def resolve(self, path_template: str) -> Path:
|
|
87
|
-
"""Expand ``<name>`` + ``$HOME
|
|
87
|
+
"""Expand ``<name>`` + ``$HOME``/``~``/``$XDG_*`` env vars.
|
|
88
|
+
|
|
89
|
+
``os.path.expandvars`` is platform-asymmetric: it expands
|
|
90
|
+
``$VAR`` (POSIX) on Unix and ``%VAR%`` (cmd.exe) on Windows
|
|
91
|
+
— but never both. Since the templates use the POSIX form
|
|
92
|
+
(``$XDG_CONFIG_HOME`` etc.) and the goal is "XDG if set, else
|
|
93
|
+
``~/.config``", we expand on POSIX, and on Windows we
|
|
94
|
+
detect the un-expanded ``$VAR`` and substitute
|
|
95
|
+
``$HOME/.config`` (or ``.codex``/``.gemini``) by hand.
|
|
96
|
+
"""
|
|
88
97
|
s = path_template.replace("<name>", SKILL_NAME)
|
|
89
98
|
s = os.path.expandvars(s)
|
|
99
|
+
if any(needle in s for needle in ("$XDG_CONFIG_HOME", "$CODEX_HOME", "$GEMINI_HOME")):
|
|
100
|
+
home = str(Path.home())
|
|
101
|
+
s = s.replace("$XDG_CONFIG_HOME", f"{home}/.config")
|
|
102
|
+
s = s.replace("$CODEX_HOME", f"{home}/.codex")
|
|
103
|
+
s = s.replace("$GEMINI_HOME", f"{home}/.gemini")
|
|
90
104
|
s = os.path.expanduser(s)
|
|
91
105
|
return Path(s).resolve()
|
|
92
106
|
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "lorewiki"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.7"
|
|
8
8
|
description = "Local-first knowledge base for LLM-assisted coding, with hybrid retrieval (BM25 + hierarchy + optional vector) over SQLite FTS5."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|