know-cli 0.3.4__tar.gz → 0.3.5__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.
- {know_cli-0.3.4 → know_cli-0.3.5}/PKG-INFO +1 -1
- {know_cli-0.3.4 → know_cli-0.3.5}/pyproject.toml +1 -1
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/lexical_index.py +6 -2
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/semantic_search.py +2 -2
- {know_cli-0.3.4 → know_cli-0.3.5}/.github/actions/know-cli/action.yml +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/.github/workflows/example-advanced.yml +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/.github/workflows/example-basic.yml +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/.gitignore +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/AGENTS.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/KNOW_SKILL.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/README.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/docs/IMPLEMENTATION_PLAN.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/docs/IMPROVEMENTS.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/docs/STRATEGIC_AUDIT.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/docs/arc.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/docs/architecture-diff.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/docs/architecture.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/docs/dependencies.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/docs/digest-compact.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/docs/digest-llm.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/docs/onboarding-new-devs.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/docs/onboarding-new_devs.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/__init__.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/ai.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/cli.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/config.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/context_engine.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/cost.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/diff.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/exceptions.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/generator.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/git_hooks.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/history.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/import_graph.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/index.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/knowledge_base.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/logger.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/mcp_server.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/models.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/parsers.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/quality.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/scanner.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/state.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/stats.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/token_counter.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/tools.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/src/know/watcher.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/README.md +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/conftest.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/mcp_stub/mcp/__init__.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/mcp_stub/mcp/server/__init__.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/mcp_stub/mcp/server/fastmcp.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/test_efficiency.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/test_history_cost.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/test_know.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/test_search_hybrid.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/test_state.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/test_unit.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/test_week2.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/test_week3.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/test_week4.py +0 -0
- {know_cli-0.3.4 → know_cli-0.3.5}/tests/test_week6_tools.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: know-cli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: Context Intelligence for AI Coding Agents — smart, token-budgeted code context
|
|
5
5
|
Project-URL: Homepage, https://github.com/vic/know-cli
|
|
6
6
|
Project-URL: Repository, https://github.com/vic/know-cli
|
|
@@ -217,8 +217,12 @@ class ChunkFTSIndex:
|
|
|
217
217
|
cleaned = re.sub(r"[^A-Za-z0-9_]+", " ", q).strip()
|
|
218
218
|
if not cleaned:
|
|
219
219
|
return q
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
terms = cleaned.split()
|
|
221
|
+
if len(terms) == 1:
|
|
222
|
+
return terms[0]
|
|
223
|
+
# Use OR to avoid over-strict matching on multi-word queries.
|
|
224
|
+
# Ranking still handled by BM25.
|
|
225
|
+
return " OR ".join(terms)
|
|
222
226
|
|
|
223
227
|
query_sanitized = _sanitize(query)
|
|
224
228
|
|
|
@@ -834,8 +834,8 @@ class SemanticSearcher:
|
|
|
834
834
|
|
|
835
835
|
results = []
|
|
836
836
|
for i in top_indices:
|
|
837
|
-
|
|
838
|
-
|
|
837
|
+
# Keep top-k even when cosine is <= 0. In sparse/short queries,
|
|
838
|
+
# all scores can be near/under 0 and filtering causes empty results.
|
|
839
839
|
chunk_key = file_paths[i]
|
|
840
840
|
# Parse chunk key: "file_path::name::line_start"
|
|
841
841
|
parts = chunk_key.split("::")
|
|
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
|
|
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
|