know-cli 0.3.7__tar.gz → 0.3.8__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 (62) hide show
  1. {know_cli-0.3.7 → know_cli-0.3.8}/PKG-INFO +1 -1
  2. {know_cli-0.3.7 → know_cli-0.3.8}/pyproject.toml +1 -1
  3. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/scanner.py +7 -4
  4. {know_cli-0.3.7 → know_cli-0.3.8}/.github/actions/know-cli/action.yml +0 -0
  5. {know_cli-0.3.7 → know_cli-0.3.8}/.github/workflows/example-advanced.yml +0 -0
  6. {know_cli-0.3.7 → know_cli-0.3.8}/.github/workflows/example-basic.yml +0 -0
  7. {know_cli-0.3.7 → know_cli-0.3.8}/.gitignore +0 -0
  8. {know_cli-0.3.7 → know_cli-0.3.8}/AGENTS.md +0 -0
  9. {know_cli-0.3.7 → know_cli-0.3.8}/KNOW_SKILL.md +0 -0
  10. {know_cli-0.3.7 → know_cli-0.3.8}/README.md +0 -0
  11. {know_cli-0.3.7 → know_cli-0.3.8}/docs/IMPLEMENTATION_PLAN.md +0 -0
  12. {know_cli-0.3.7 → know_cli-0.3.8}/docs/IMPROVEMENTS.md +0 -0
  13. {know_cli-0.3.7 → know_cli-0.3.8}/docs/STRATEGIC_AUDIT.md +0 -0
  14. {know_cli-0.3.7 → know_cli-0.3.8}/docs/arc.md +0 -0
  15. {know_cli-0.3.7 → know_cli-0.3.8}/docs/architecture-diff.md +0 -0
  16. {know_cli-0.3.7 → know_cli-0.3.8}/docs/architecture.md +0 -0
  17. {know_cli-0.3.7 → know_cli-0.3.8}/docs/dependencies.md +0 -0
  18. {know_cli-0.3.7 → know_cli-0.3.8}/docs/digest-compact.md +0 -0
  19. {know_cli-0.3.7 → know_cli-0.3.8}/docs/digest-llm.md +0 -0
  20. {know_cli-0.3.7 → know_cli-0.3.8}/docs/onboarding-new-devs.md +0 -0
  21. {know_cli-0.3.7 → know_cli-0.3.8}/docs/onboarding-new_devs.md +0 -0
  22. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/__init__.py +0 -0
  23. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/ai.py +0 -0
  24. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/cli.py +0 -0
  25. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/config.py +0 -0
  26. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/context_engine.py +0 -0
  27. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/cost.py +0 -0
  28. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/diff.py +0 -0
  29. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/exceptions.py +0 -0
  30. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/generator.py +0 -0
  31. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/git_hooks.py +0 -0
  32. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/history.py +0 -0
  33. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/import_graph.py +0 -0
  34. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/index.py +0 -0
  35. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/knowledge_base.py +0 -0
  36. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/lexical_index.py +0 -0
  37. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/logger.py +0 -0
  38. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/mcp_server.py +0 -0
  39. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/models.py +0 -0
  40. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/parsers.py +0 -0
  41. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/quality.py +0 -0
  42. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/semantic_search.py +0 -0
  43. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/state.py +0 -0
  44. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/stats.py +0 -0
  45. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/token_counter.py +0 -0
  46. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/tools.py +0 -0
  47. {know_cli-0.3.7 → know_cli-0.3.8}/src/know/watcher.py +0 -0
  48. {know_cli-0.3.7 → know_cli-0.3.8}/tests/README.md +0 -0
  49. {know_cli-0.3.7 → know_cli-0.3.8}/tests/conftest.py +0 -0
  50. {know_cli-0.3.7 → know_cli-0.3.8}/tests/mcp_stub/mcp/__init__.py +0 -0
  51. {know_cli-0.3.7 → know_cli-0.3.8}/tests/mcp_stub/mcp/server/__init__.py +0 -0
  52. {know_cli-0.3.7 → know_cli-0.3.8}/tests/mcp_stub/mcp/server/fastmcp.py +0 -0
  53. {know_cli-0.3.7 → know_cli-0.3.8}/tests/test_efficiency.py +0 -0
  54. {know_cli-0.3.7 → know_cli-0.3.8}/tests/test_history_cost.py +0 -0
  55. {know_cli-0.3.7 → know_cli-0.3.8}/tests/test_know.py +0 -0
  56. {know_cli-0.3.7 → know_cli-0.3.8}/tests/test_search_hybrid.py +0 -0
  57. {know_cli-0.3.7 → know_cli-0.3.8}/tests/test_state.py +0 -0
  58. {know_cli-0.3.7 → know_cli-0.3.8}/tests/test_unit.py +0 -0
  59. {know_cli-0.3.7 → know_cli-0.3.8}/tests/test_week2.py +0 -0
  60. {know_cli-0.3.7 → know_cli-0.3.8}/tests/test_week3.py +0 -0
  61. {know_cli-0.3.7 → know_cli-0.3.8}/tests/test_week4.py +0 -0
  62. {know_cli-0.3.7 → know_cli-0.3.8}/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.7
3
+ Version: 0.3.8
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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "know-cli"
7
- version = "0.3.7"
7
+ version = "0.3.8"
8
8
  description = "Context Intelligence for AI Coding Agents — smart, token-budgeted code context"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -43,8 +43,10 @@ LANGUAGE_EXTENSIONS = {
43
43
  ".go": "go",
44
44
  }
45
45
 
46
- # Maximum TypeScript files to scan (for performance)
47
- MAX_TS_FILES = 500
46
+ # Maximum TypeScript files to scan (for performance).
47
+ # Default is effectively unlimited for modern repos; can be overridden with
48
+ # KNOW_MAX_TS_FILES env var (set to 0 for unlimited).
49
+ MAX_TS_FILES = int(os.getenv("KNOW_MAX_TS_FILES", "0"))
48
50
 
49
51
  # Timeout for parsing individual files (seconds)
50
52
  FILE_PARSE_TIMEOUT = 30
@@ -192,7 +194,7 @@ class CodebaseScanner:
192
194
  continue
193
195
 
194
196
  if language == "typescript":
195
- if ts_count < MAX_TS_FILES:
197
+ if MAX_TS_FILES <= 0 or ts_count < MAX_TS_FILES:
196
198
  ts_files.append((path, language))
197
199
  ts_count += 1
198
200
  continue
@@ -205,7 +207,8 @@ class CodebaseScanner:
205
207
  "spec" in str(x[0]).lower(),
206
208
  "__tests__" in str(x[0]).lower()
207
209
  ))
208
- for path, lang in ts_files[:MAX_TS_FILES]:
210
+ selected = ts_files if MAX_TS_FILES <= 0 else ts_files[:MAX_TS_FILES]
211
+ for path, lang in selected:
209
212
  yield path, lang
210
213
 
211
214
  def scan(self, max_workers: Optional[int] = None, progress_callback=None) -> Dict[str, int]:
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