agrep 0.3.0__py3-none-win_arm64.whl

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 (82) hide show
  1. agrep/__init__.py +8 -0
  2. agrep/__main__.py +36 -0
  3. agrep/_bin/agrep-rs.exe +0 -0
  4. agrep/cli.py +1960 -0
  5. agrep/py/archive.py +2654 -0
  6. agrep/py/around.py +1174 -0
  7. agrep/py/ask.py +2579 -0
  8. agrep/py/audit.py +1918 -0
  9. agrep/py/boundary_rank.py +371 -0
  10. agrep/py/common.py +472 -0
  11. agrep/py/compact.py +1237 -0
  12. agrep/py/conceptpair.py +225 -0
  13. agrep/py/console.py +267 -0
  14. agrep/py/corpusdb.py +4982 -0
  15. agrep/py/display_policy.py +1384 -0
  16. agrep/py/dist.py +602 -0
  17. agrep/py/doctor.py +3634 -0
  18. agrep/py/embed.py +3202 -0
  19. agrep/py/embedder.py +1064 -0
  20. agrep/py/embedding_segments.py +1504 -0
  21. agrep/py/embedding_store.py +1349 -0
  22. agrep/py/events.py +1529 -0
  23. agrep/py/explore.py +2800 -0
  24. agrep/py/fileops.py +279 -0
  25. agrep/py/hookinstall.py +723 -0
  26. agrep/py/hookless/__init__.py +17 -0
  27. agrep/py/hookless/_log.py +49 -0
  28. agrep/py/hookless/agent_registry.json +348 -0
  29. agrep/py/hookless/capture.py +201 -0
  30. agrep/py/hookless/fswatch.py +354 -0
  31. agrep/py/hookless/live.py +2787 -0
  32. agrep/py/hookless/locators.py +182 -0
  33. agrep/py/hookless/native.py +871 -0
  34. agrep/py/hookless/proc.py +253 -0
  35. agrep/py/hookless/procscan.py +473 -0
  36. agrep/py/hookless/registry.py +425 -0
  37. agrep/py/hooks/codex-postcompact.md +26 -0
  38. agrep/py/hooks/codex_compact_payload.py +71 -0
  39. agrep/py/hooks/compact-contract.md +15 -0
  40. agrep/py/hooks/pi_postcompact.ts +103 -0
  41. agrep/py/index_lock.py +351 -0
  42. agrep/py/indexd.py +281 -0
  43. agrep/py/indexd_runtime.py +5021 -0
  44. agrep/py/indexer.py +1120 -0
  45. agrep/py/install_lag.py +611 -0
  46. agrep/py/legacy_cleanup.py +95 -0
  47. agrep/py/lifetime.py +335 -0
  48. agrep/py/livetui.py +1106 -0
  49. agrep/py/mlx_embed.py +170 -0
  50. agrep/py/mlx_modernbert.py +192 -0
  51. agrep/py/nudge_codex.md +58 -0
  52. agrep/py/nudge_default.md +62 -0
  53. agrep/py/ownerfile.py +444 -0
  54. agrep/py/postcompact.py +620 -0
  55. agrep/py/proc.py +1035 -0
  56. agrep/py/recall.py +2674 -0
  57. agrep/py/removal_fence.py +282 -0
  58. agrep/py/resources.py +333 -0
  59. agrep/py/resume.py +187 -0
  60. agrep/py/runtime_manifest.json +305 -0
  61. agrep/py/search.py +8264 -0
  62. agrep/py/segment_query.py +948 -0
  63. agrep/py/semantic.py +1943 -0
  64. agrep/py/semantic_q8.py +1324 -0
  65. agrep/py/semantic_segment_build.py +332 -0
  66. agrep/py/semantic_segment_compact.py +719 -0
  67. agrep/py/semworker.py +2713 -0
  68. agrep/py/server.py +676 -0
  69. agrep/py/session_context.py +1355 -0
  70. agrep/py/settings.py +214 -0
  71. agrep/py/surface_policy.py +2249 -0
  72. agrep/py/tail.py +183 -0
  73. agrep/py/teach.py +2322 -0
  74. agrep/py/winjob.py +216 -0
  75. agrep/reindex.py +318 -0
  76. agrep/web/app.html +1654 -0
  77. agrep-0.3.0.dist-info/METADATA +623 -0
  78. agrep-0.3.0.dist-info/RECORD +82 -0
  79. agrep-0.3.0.dist-info/WHEEL +4 -0
  80. agrep-0.3.0.dist-info/entry_points.txt +2 -0
  81. agrep-0.3.0.dist-info/licenses/LICENSE +21 -0
  82. agrep-0.3.0.dist-info/licenses/THIRD_PARTY_LICENSES.txt +4785 -0
agrep/__init__.py ADDED
@@ -0,0 +1,8 @@
1
+ """agrep - grep your cross-agent chat history, one command.
2
+
3
+ This package ships the flat agrep CLI and Python engines plus the prebuilt Rust ingest
4
+ binary, so `uvx agrep` / `pipx run agrep` / `pip install agrep` need no clone or Cargo.
5
+ The real logic lives in the bundled modules; see __main__.py.
6
+ """
7
+
8
+ __version__ = "0.3.0"
agrep/__main__.py ADDED
@@ -0,0 +1,36 @@
1
+ """Console entry for `agrep` (and `python -m agrep`).
2
+
3
+ The wheel installs the flat agrep tree as package data under this package:
4
+
5
+ site-packages/agrep/
6
+ cli.py reindex.py py/*.py _bin/agrep-rs[.exe]
7
+
8
+ We point the code at the bundled rust binary (AGREP_RS_BIN), put the bundled dirs on
9
+ sys.path so the existing flat imports (`import common`, `import cli`) resolve, then
10
+ hand off to cli.py. Bare `agrep` prints status + usage and exits, like `python cli.py`.
11
+ Data and model artifacts go to a per-user directory because site-packages is read-only.
12
+ """
13
+
14
+ from __future__ import annotations
15
+
16
+ import os
17
+ import sys
18
+ from pathlib import Path
19
+
20
+ PKG = Path(__file__).resolve().parent
21
+
22
+
23
+ def main() -> int:
24
+ exe = "agrep-rs.exe" if sys.platform == "win32" else "agrep-rs"
25
+ bundled = PKG / "_bin" / exe
26
+ if bundled.exists():
27
+ os.environ.setdefault("AGREP_RS_BIN", str(bundled))
28
+ # py/ first so flat `import common` wins; PKG so `import cli` finds cli.py
29
+ sys.path.insert(0, str(PKG / "py"))
30
+ sys.path.insert(0, str(PKG))
31
+ import cli # noqa: PLC0415 -- bundled module, resolvable only after the path setup
32
+ return cli.main()
33
+
34
+
35
+ if __name__ == "__main__":
36
+ raise SystemExit(main())
Binary file