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.
- agrep/__init__.py +8 -0
- agrep/__main__.py +36 -0
- agrep/_bin/agrep-rs.exe +0 -0
- agrep/cli.py +1960 -0
- agrep/py/archive.py +2654 -0
- agrep/py/around.py +1174 -0
- agrep/py/ask.py +2579 -0
- agrep/py/audit.py +1918 -0
- agrep/py/boundary_rank.py +371 -0
- agrep/py/common.py +472 -0
- agrep/py/compact.py +1237 -0
- agrep/py/conceptpair.py +225 -0
- agrep/py/console.py +267 -0
- agrep/py/corpusdb.py +4982 -0
- agrep/py/display_policy.py +1384 -0
- agrep/py/dist.py +602 -0
- agrep/py/doctor.py +3634 -0
- agrep/py/embed.py +3202 -0
- agrep/py/embedder.py +1064 -0
- agrep/py/embedding_segments.py +1504 -0
- agrep/py/embedding_store.py +1349 -0
- agrep/py/events.py +1529 -0
- agrep/py/explore.py +2800 -0
- agrep/py/fileops.py +279 -0
- agrep/py/hookinstall.py +723 -0
- agrep/py/hookless/__init__.py +17 -0
- agrep/py/hookless/_log.py +49 -0
- agrep/py/hookless/agent_registry.json +348 -0
- agrep/py/hookless/capture.py +201 -0
- agrep/py/hookless/fswatch.py +354 -0
- agrep/py/hookless/live.py +2787 -0
- agrep/py/hookless/locators.py +182 -0
- agrep/py/hookless/native.py +871 -0
- agrep/py/hookless/proc.py +253 -0
- agrep/py/hookless/procscan.py +473 -0
- agrep/py/hookless/registry.py +425 -0
- agrep/py/hooks/codex-postcompact.md +26 -0
- agrep/py/hooks/codex_compact_payload.py +71 -0
- agrep/py/hooks/compact-contract.md +15 -0
- agrep/py/hooks/pi_postcompact.ts +103 -0
- agrep/py/index_lock.py +351 -0
- agrep/py/indexd.py +281 -0
- agrep/py/indexd_runtime.py +5021 -0
- agrep/py/indexer.py +1120 -0
- agrep/py/install_lag.py +611 -0
- agrep/py/legacy_cleanup.py +95 -0
- agrep/py/lifetime.py +335 -0
- agrep/py/livetui.py +1106 -0
- agrep/py/mlx_embed.py +170 -0
- agrep/py/mlx_modernbert.py +192 -0
- agrep/py/nudge_codex.md +58 -0
- agrep/py/nudge_default.md +62 -0
- agrep/py/ownerfile.py +444 -0
- agrep/py/postcompact.py +620 -0
- agrep/py/proc.py +1035 -0
- agrep/py/recall.py +2674 -0
- agrep/py/removal_fence.py +282 -0
- agrep/py/resources.py +333 -0
- agrep/py/resume.py +187 -0
- agrep/py/runtime_manifest.json +305 -0
- agrep/py/search.py +8264 -0
- agrep/py/segment_query.py +948 -0
- agrep/py/semantic.py +1943 -0
- agrep/py/semantic_q8.py +1324 -0
- agrep/py/semantic_segment_build.py +332 -0
- agrep/py/semantic_segment_compact.py +719 -0
- agrep/py/semworker.py +2713 -0
- agrep/py/server.py +676 -0
- agrep/py/session_context.py +1355 -0
- agrep/py/settings.py +214 -0
- agrep/py/surface_policy.py +2249 -0
- agrep/py/tail.py +183 -0
- agrep/py/teach.py +2322 -0
- agrep/py/winjob.py +216 -0
- agrep/reindex.py +318 -0
- agrep/web/app.html +1654 -0
- agrep-0.3.0.dist-info/METADATA +623 -0
- agrep-0.3.0.dist-info/RECORD +82 -0
- agrep-0.3.0.dist-info/WHEEL +4 -0
- agrep-0.3.0.dist-info/entry_points.txt +2 -0
- agrep-0.3.0.dist-info/licenses/LICENSE +21 -0
- 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())
|
agrep/_bin/agrep-rs.exe
ADDED
|
Binary file
|