know-cli 0.7.1__tar.gz → 0.7.2__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.
Files changed (90) hide show
  1. {know_cli-0.7.1 → know_cli-0.7.2}/PKG-INFO +2 -2
  2. {know_cli-0.7.1 → know_cli-0.7.2}/docs/digest-llm.md +8 -8
  3. {know_cli-0.7.1 → know_cli-0.7.2}/pyproject.toml +2 -2
  4. {know_cli-0.7.1 → know_cli-0.7.2}/.github/actions/know-cli/action.yml +0 -0
  5. {know_cli-0.7.1 → know_cli-0.7.2}/.github/workflows/example-advanced.yml +0 -0
  6. {know_cli-0.7.1 → know_cli-0.7.2}/.github/workflows/example-basic.yml +0 -0
  7. {know_cli-0.7.1 → know_cli-0.7.2}/.gitignore +0 -0
  8. {know_cli-0.7.1 → know_cli-0.7.2}/AGENTS.md +0 -0
  9. {know_cli-0.7.1 → know_cli-0.7.2}/KNOW_SKILL.md +0 -0
  10. {know_cli-0.7.1 → know_cli-0.7.2}/README.md +0 -0
  11. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/answer_keys/q1.json +0 -0
  12. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/answer_keys/q2.json +0 -0
  13. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/answer_keys/q3.json +0 -0
  14. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/bench_agent_e2e.py +0 -0
  15. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/bench_report.py +0 -0
  16. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/bench_session_dedup.py +0 -0
  17. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/bench_token_efficiency.py +0 -0
  18. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/benchmark_task.md +0 -0
  19. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/conftest.py +0 -0
  20. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/results/.gitignore +0 -0
  21. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/results/BENCHMARK_REPORT.md +0 -0
  22. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/results/agent_grep_answers.md +0 -0
  23. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/results/agent_know_answers.md +0 -0
  24. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/results/session_dedup.json +0 -0
  25. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/results/token_efficiency.json +0 -0
  26. {know_cli-0.7.1 → know_cli-0.7.2}/benchmark/run_all.py +0 -0
  27. {know_cli-0.7.1 → know_cli-0.7.2}/docs/arc.md +0 -0
  28. {know_cli-0.7.1 → know_cli-0.7.2}/docs/architecture-diff.md +0 -0
  29. {know_cli-0.7.1 → know_cli-0.7.2}/docs/architecture.md +0 -0
  30. {know_cli-0.7.1 → know_cli-0.7.2}/docs/dependencies.md +0 -0
  31. {know_cli-0.7.1 → know_cli-0.7.2}/docs/digest-compact.md +0 -0
  32. {know_cli-0.7.1 → know_cli-0.7.2}/docs/onboarding-new-devs.md +0 -0
  33. {know_cli-0.7.1 → know_cli-0.7.2}/docs/onboarding-new_devs.md +0 -0
  34. {know_cli-0.7.1 → know_cli-0.7.2}/docs/plans/2026-02-15-refactor-know-cli-v2-daemon-architecture-plan.md +0 -0
  35. {know_cli-0.7.1 → know_cli-0.7.2}/docs/plans/2026-02-16-feat-10x-agent-search-ranking-plan.md +0 -0
  36. {know_cli-0.7.1 → know_cli-0.7.2}/docs/plans/2026-02-16-feat-10x-search-quality-plan.md +0 -0
  37. {know_cli-0.7.1 → know_cli-0.7.2}/docs/plans/2026-02-16-feat-progressive-disclosure-session-dedup-deep-context-plan.md +0 -0
  38. {know_cli-0.7.1 → know_cli-0.7.2}/docs/plans/2026-02-16-fix-testing-issues-search-graph-performance-plan.md +0 -0
  39. {know_cli-0.7.1 → know_cli-0.7.2}/docs/solutions/architecture/p2-p3-architectural-improvements.md +0 -0
  40. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/IMPROVEMENTS.md +0 -0
  41. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/__init__.py +0 -0
  42. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/ai.py +0 -0
  43. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/cli/__init__.py +0 -0
  44. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/cli/agent.py +0 -0
  45. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/cli/core.py +0 -0
  46. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/cli/diff.py +0 -0
  47. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/cli/hooks.py +0 -0
  48. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/cli/knowledge.py +0 -0
  49. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/cli/mcp.py +0 -0
  50. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/cli/search.py +0 -0
  51. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/cli/stats.py +0 -0
  52. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/config.py +0 -0
  53. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/context_engine.py +0 -0
  54. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/daemon.py +0 -0
  55. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/daemon_db.py +0 -0
  56. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/diff.py +0 -0
  57. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/embeddings.py +0 -0
  58. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/exceptions.py +0 -0
  59. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/file_categories.py +0 -0
  60. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/generator.py +0 -0
  61. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/git_hooks.py +0 -0
  62. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/import_graph.py +0 -0
  63. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/index.py +0 -0
  64. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/knowledge_base.py +0 -0
  65. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/logger.py +0 -0
  66. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/mcp_server.py +0 -0
  67. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/models.py +0 -0
  68. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/parsers.py +0 -0
  69. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/quality.py +0 -0
  70. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/query.py +0 -0
  71. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/ranking.py +0 -0
  72. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/scanner.py +0 -0
  73. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/semantic_search.py +0 -0
  74. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/stats.py +0 -0
  75. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/token_counter.py +0 -0
  76. {know_cli-0.7.1 → know_cli-0.7.2}/src/know/watcher.py +0 -0
  77. {know_cli-0.7.1 → know_cli-0.7.2}/tests/README.md +0 -0
  78. {know_cli-0.7.1 → know_cli-0.7.2}/tests/conftest.py +0 -0
  79. {know_cli-0.7.1 → know_cli-0.7.2}/tests/test_efficiency.py +0 -0
  80. {know_cli-0.7.1 → know_cli-0.7.2}/tests/test_know.py +0 -0
  81. {know_cli-0.7.1 → know_cli-0.7.2}/tests/test_phases_4_6_7.py +0 -0
  82. {know_cli-0.7.1 → know_cli-0.7.2}/tests/test_query_understanding.py +0 -0
  83. {know_cli-0.7.1 → know_cli-0.7.2}/tests/test_token_features.py +0 -0
  84. {know_cli-0.7.1 → know_cli-0.7.2}/tests/test_unit.py +0 -0
  85. {know_cli-0.7.1 → know_cli-0.7.2}/tests/test_v2_features.py +0 -0
  86. {know_cli-0.7.1 → know_cli-0.7.2}/tests/test_v3_features.py +0 -0
  87. {know_cli-0.7.1 → know_cli-0.7.2}/tests/test_v3_search.py +0 -0
  88. {know_cli-0.7.1 → know_cli-0.7.2}/tests/test_week2.py +0 -0
  89. {know_cli-0.7.1 → know_cli-0.7.2}/tests/test_week3.py +0 -0
  90. {know_cli-0.7.1 → know_cli-0.7.2}/tests/test_week4.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: know-cli
3
- Version: 0.7.1
3
+ Version: 0.7.2
4
4
  Summary: Context Intelligence for AI Coding Agents — smart, token-budgeted code context
5
5
  Project-URL: Homepage, https://github.com/sushilk1991/know-cli
6
6
  Project-URL: Repository, https://github.com/sushilk1991/know-cli
@@ -18,6 +18,7 @@ Classifier: Topic :: Software Development :: Documentation
18
18
  Classifier: Topic :: Utilities
19
19
  Requires-Python: >=3.10
20
20
  Requires-Dist: click>=8.1.0
21
+ Requires-Dist: numpy>=1.24.0
21
22
  Requires-Dist: pathspec>=0.11.0
22
23
  Requires-Dist: pyyaml>=6.0
23
24
  Requires-Dist: rich>=13.0.0
@@ -46,7 +47,6 @@ Provides-Extra: mcp
46
47
  Requires-Dist: mcp>=1.0.0; extra == 'mcp'
47
48
  Provides-Extra: search
48
49
  Requires-Dist: fastembed>=0.3.0; extra == 'search'
49
- Requires-Dist: numpy>=1.24.0; extra == 'search'
50
50
  Description-Content-Type: text/markdown
51
51
 
52
52
  # know — 3x Fewer Tokens for AI Coding Agents
@@ -1,25 +1,25 @@
1
1
  # Codebase Digest
2
2
 
3
- - {'name': 'src.know.knowledge_base', 'path': 'src/know/knowledge_base.py', 'description': 'Knowledge base: cross-session memory for AI agents.\n\nThin wrapper around DaemonDB — the single source of truth for all\nproject data. Translates between integer display IDs (used by CLI)\nand text UUIDs', 'function_count': 0, 'class_count': 2}
4
3
  - {'name': 'src.know.diff', 'path': 'src/know/diff.py', 'description': 'Diff mode for tracking architectural changes safely using git worktrees.', 'function_count': 0, 'class_count': 1}
4
+ - {'name': 'src.know.knowledge_base', 'path': 'src/know/knowledge_base.py', 'description': 'Knowledge base: cross-session memory for AI agents.\n\nThin wrapper around DaemonDB — the single source of truth for all\nproject data. Translates between integer display IDs (used by CLI)\nand text UUIDs', 'function_count': 0, 'class_count': 2}
5
+ - {'name': 'src.know.logger', 'path': 'src/know/logger.py', 'description': 'Logging configuration for know.', 'function_count': 2, 'class_count': 0}
5
6
  - {'name': 'src.know.ai', 'path': 'src/know/ai.py', 'description': 'AI integration for intelligent code understanding with advanced token optimization.', 'function_count': 0, 'class_count': 4}
6
7
  - {'name': 'src.know.watcher', 'path': 'src/know/watcher.py', 'description': 'File system watcher for auto-updating documentation.', 'function_count': 0, 'class_count': 2}
7
- - {'name': 'src.know.daemon', 'path': 'src/know/daemon.py', 'description': 'Background daemon for maintaining hot indexes.\n\nLifecycle:\n- Auto-started on first CLI call (no explicit `know start` needed)\n- Listens on Unix socket at ~/.know/sockets/<project-hash>.sock\n- PID file', 'function_count': 16, 'class_count': 2}
8
- - {'name': 'src.know.index', 'path': 'src/know/index.py', 'description': 'Index management for incremental code scanning.', 'function_count': 1, 'class_count': 1}
9
- - {'name': 'src.know.logger', 'path': 'src/know/logger.py', 'description': 'Logging configuration for know.', 'function_count': 2, 'class_count': 0}
10
8
  - {'name': 'src.know.embeddings', 'path': 'src/know/embeddings.py', 'description': 'Centralized embedding model management.\n\nSingle process-wide cache for fastembed models. All consumers\n(context_engine, semantic_search, knowledge_base) use this instead\nof maintaining separate caches', 'function_count': 4, 'class_count': 0}
9
+ - {'name': 'src.know.index', 'path': 'src/know/index.py', 'description': 'Index management for incremental code scanning.', 'function_count': 1, 'class_count': 1}
11
10
  - {'name': 'src.know.models', 'path': 'src/know/models.py', 'description': 'Data models for know-cli.', 'function_count': 0, 'class_count': 4}
12
11
  - {'name': 'src.know.token_counter', 'path': 'src/know/token_counter.py', 'description': "Token counting for context budget management.\n\nUses tiktoken (cl100k_base) for accurate counting. Applies a calibration\nfactor for Anthropic models since Claude uses a different tokenizer than\nOpenAI'", 'function_count': 5, 'class_count': 0}
12
+ - {'name': 'src.know.query', 'path': 'src/know/query.py', 'description': 'Query understanding for intelligent FTS5 search.\n\nTransforms raw natural-language queries (from agents or humans) into\nstructured search plans. Handles stop-word removal, identifier\ndetection, CamelC', 'function_count': 10, 'class_count': 1}
13
13
  - {'name': 'src.know.__init__', 'path': 'src/know/__init__.py', 'description': 'know - Living documentation generator for codebases.', 'function_count': 0, 'class_count': 0}
14
14
  - {'name': 'src.know.stats', 'path': 'src/know/stats.py', 'description': 'Usage statistics tracker for know-cli.\n\nTracks every query, search, and memory operation in a project-local\nSQLite database (`.know/stats.db`). Powers the `know stats` command.', 'function_count': 0, 'class_count': 1}
15
- - {'name': 'src.know.query', 'path': 'src/know/query.py', 'description': 'Query understanding for intelligent FTS5 search.\n\nTransforms raw natural-language queries (from agents or humans) into\nstructured search plans. Handles stop-word removal, identifier\ndetection, CamelC', 'function_count': 10, 'class_count': 1}
15
+ - {'name': 'src.know.daemon', 'path': 'src/know/daemon.py', 'description': 'Background daemon for maintaining hot indexes.\n\nLifecycle:\n- Auto-started on first CLI call (no explicit `know start` needed)\n- Listens on Unix socket at ~/.know/sockets/<project-hash>.sock\n- PID file', 'function_count': 16, 'class_count': 2}
16
16
  - {'name': 'src.know.config', 'path': 'src/know/config.py', 'description': 'Configuration management for know.', 'function_count': 1, 'class_count': 6}
17
- - {'name': 'src.know.import_graph', 'path': 'src/know/import_graph.py', 'description': "Import graph: tracks dependencies between project modules.\n\nDelegates storage to DaemonDB (the single source of truth).\nProvides queries for 'what does X import?' and 'what imports X?'.\n\nUses fully-qu", 'function_count': 0, 'class_count': 1}
18
- - {'name': 'src.know.generator', 'path': 'src/know/generator.py', 'description': 'Documentation generator.', 'function_count': 0, 'class_count': 1}
19
17
  - {'name': 'src.know.exceptions', 'path': 'src/know/exceptions.py', 'description': 'Custom exceptions for know-cli.', 'function_count': 0, 'class_count': 8}
18
+ - {'name': 'src.know.import_graph', 'path': 'src/know/import_graph.py', 'description': "Import graph: tracks dependencies between project modules.\n\nDelegates storage to DaemonDB (the single source of truth).\nProvides queries for 'what does X import?' and 'what imports X?'.\n\nUses fully-qu", 'function_count': 0, 'class_count': 1}
20
19
  - {'name': 'src.know.semantic_search', 'path': 'src/know/semantic_search.py', 'description': 'Semantic code search using real embeddings and vector similarity.\n\nSupports both file-level (v1) and function-level (v2) embeddings.\nFunction-level uses AST to split Python files into individual chunk', 'function_count': 0, 'class_count': 2}
20
+ - {'name': 'src.know.generator', 'path': 'src/know/generator.py', 'description': 'Documentation generator.', 'function_count': 0, 'class_count': 1}
21
+ - {'name': 'src.know.git_hooks', 'path': 'src/know/git_hooks.py', 'description': 'Git hook management.', 'function_count': 2, 'class_count': 1}
21
22
  - {'name': 'src.know.file_categories', 'path': 'src/know/file_categories.py', 'description': 'File category detection and demotion for search ranking.\n\nClassifies files as source, test, vendor, or generated.\nApplies score multipliers so non-source files rank lower.', 'function_count': 7, 'class_count': 0}
22
- - {'name': 'src.know.ranking', 'path': 'src/know/ranking.py', 'description': 'Score fusion for combining multiple ranking signals.\n\nThis module contains ONLY pure functions. No DB connections,\nno filesystem access, no side effects. Trivially testable.', 'function_count': 2, 'class_count': 0}
23
23
 
24
24
  Files: 36
25
25
  Modules: 36
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "know-cli"
7
- version = "0.7.1"
7
+ version = "0.7.2"
8
8
  description = "Context Intelligence for AI Coding Agents — smart, token-budgeted code context"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -41,12 +41,12 @@ dependencies = [
41
41
  "tree-sitter-java>=0.23.0",
42
42
  "tree-sitter-ruby>=0.23.0",
43
43
  "tree-sitter-c>=0.23.0",
44
+ "numpy>=1.24.0",
44
45
  ]
45
46
 
46
47
  [project.optional-dependencies]
47
48
  search = [
48
49
  "fastembed>=0.3.0",
49
- "numpy>=1.24.0",
50
50
  ]
51
51
  ai = [
52
52
  "anthropic>=0.8.0",
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