context-loader 1.3.8__tar.gz → 1.3.9__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.
- {context_loader-1.3.8 → context_loader-1.3.9}/PKG-INFO +50 -14
- {context_loader-1.3.8 → context_loader-1.3.9}/README.md +49 -13
- {context_loader-1.3.8 → context_loader-1.3.9}/context_loader/__init__.py +1 -1
- {context_loader-1.3.8 → context_loader-1.3.9}/context_loader/git.py +6 -11
- {context_loader-1.3.8 → context_loader-1.3.9}/pyproject.toml +1 -1
- {context_loader-1.3.8 → context_loader-1.3.9}/pyproject.toml.orig +1 -1
- {context_loader-1.3.8 → context_loader-1.3.9}/tool_cli_contract.json +1 -1
- {context_loader-1.3.8 → context_loader-1.3.9}/LICENSE +0 -0
- {context_loader-1.3.8 → context_loader-1.3.9}/context_loader/agents.py +0 -0
- {context_loader-1.3.8 → context_loader-1.3.9}/context_loader/application.py +0 -0
- {context_loader-1.3.8 → context_loader-1.3.9}/context_loader/cli.py +0 -0
- {context_loader-1.3.8 → context_loader-1.3.9}/context_loader/collect.py +0 -0
- {context_loader-1.3.8 → context_loader-1.3.9}/context_loader/filesystem.py +0 -0
- {context_loader-1.3.8 → context_loader-1.3.9}/context_loader/model.py +0 -0
- {context_loader-1.3.8 → context_loader-1.3.9}/context_loader/render.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: context-loader
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.9
|
|
4
4
|
Summary: Render deterministic local Git context for any executor
|
|
5
5
|
License: Apache License
|
|
6
6
|
Version 2.0, January 2004
|
|
@@ -219,14 +219,14 @@ Python standard library.
|
|
|
219
219
|
|
|
220
220
|
## Open-source quick start
|
|
221
221
|
|
|
222
|
-
Current stable release: **1.3.
|
|
222
|
+
Current stable release: **1.3.9**. Local CLI for coding-agent workflows; renders deterministic Markdown or JSON.
|
|
223
223
|
|
|
224
224
|
```bash
|
|
225
|
-
uv tool install 'context-loader==1.3.
|
|
225
|
+
uv tool install 'context-loader==1.3.9'
|
|
226
226
|
```
|
|
227
227
|
|
|
228
228
|
```bash
|
|
229
|
-
pip install 'context-loader==1.3.
|
|
229
|
+
pip install 'context-loader==1.3.9'
|
|
230
230
|
```
|
|
231
231
|
|
|
232
232
|
```bash
|
|
@@ -239,21 +239,21 @@ project-context --repo /path/to/repo --format json
|
|
|
239
239
|
|
|
240
240
|
## Install
|
|
241
241
|
|
|
242
|
-
Source version: `1.3.
|
|
242
|
+
Source version: `1.3.9`. Install its matching published release or an exact source commit.
|
|
243
243
|
|
|
244
244
|
Install via `uv`:
|
|
245
245
|
|
|
246
246
|
```bash
|
|
247
|
-
uv tool install 'context-loader==1.3.
|
|
247
|
+
uv tool install 'context-loader==1.3.9'
|
|
248
248
|
```
|
|
249
249
|
|
|
250
250
|
Install via `pip`:
|
|
251
251
|
|
|
252
252
|
```bash
|
|
253
|
-
pip install 'context-loader==1.3.
|
|
253
|
+
pip install 'context-loader==1.3.9'
|
|
254
254
|
```
|
|
255
255
|
|
|
256
|
-
For development or source-based installs tracking current repository (`1.3.
|
|
256
|
+
For development or source-based installs tracking current repository (`1.3.9`):
|
|
257
257
|
|
|
258
258
|
```bash
|
|
259
259
|
uv tool install git+https://github.com/xuanheng-tech/context-loader.git
|
|
@@ -352,7 +352,7 @@ set differs, as described under “Compact model consumption”. The declared co
|
|
|
352
352
|
"schema_version": 3,
|
|
353
353
|
"tool": {
|
|
354
354
|
"name": "context-loader",
|
|
355
|
-
"version": "1.3.
|
|
355
|
+
"version": "1.3.9"
|
|
356
356
|
},
|
|
357
357
|
"repository": {
|
|
358
358
|
"requested_path": "/canonical/requested/path",
|
|
@@ -475,7 +475,7 @@ although 1.1.0 added the top-level `statuses` key. From release 1.2.0 onward eac
|
|
|
475
475
|
names exactly one key set, and a new number is issued whenever a key set would otherwise be reused.
|
|
476
476
|
|
|
477
477
|
The JSON schema version and package version are independent: this build emits `schema_version` `3`
|
|
478
|
-
for `--format json` and `4` for `--format json-compact`, while `tool.version` is `1.3.
|
|
478
|
+
for `--format json` and `4` for `--format json-compact`, while `tool.version` is `1.3.9`. Version 1
|
|
479
479
|
and 2 are the exact shapes already published in release 1.2.0 and are never reused: because
|
|
480
480
|
`nested_context` changes the default document's key set, version 3 names the current full-document
|
|
481
481
|
key set and version 4 names the compact projection.
|
|
@@ -673,7 +673,7 @@ or candidate-file content.
|
|
|
673
673
|
|
|
674
674
|
## Not Included
|
|
675
675
|
|
|
676
|
-
Version 1.3.
|
|
676
|
+
Version 1.3.9 does not provide AI summaries, project-type detection, loading or transport of
|
|
677
677
|
nested `AGENTS.md` contents (the JSON `nested_context` field reports bounded existence only),
|
|
678
678
|
Memory retrieval, semantic ranking, ignore-rule parsing, plugins, profiles, caches, databases,
|
|
679
679
|
network services, MCP, daemons, GUIs, CI/CD, telemetry, or automatic updates.
|
|
@@ -719,13 +719,40 @@ scratch directory:
|
|
|
719
719
|
python scripts/benchmark.py --cli /absolute/path/to/project-context --scratch /absolute/empty/scratch
|
|
720
720
|
```
|
|
721
721
|
|
|
722
|
-
The opt-in benchmark creates
|
|
723
|
-
elapsed time, peak RSS (KiB)
|
|
724
|
-
|
|
722
|
+
The opt-in benchmark creates synthetic repositories under that directory and reports median,
|
|
723
|
+
minimum and maximum elapsed time, peak RSS (KiB), output bytes, digest and individual samples.
|
|
724
|
+
The default measures five runs after one warm-up and checks identical output throughout. It covers
|
|
725
|
+
1,000 AGENTS headings, a 5,000-file directory, and 1,000 untracked files.
|
|
726
|
+
Use `--runs 10 --format json-compact --repo /absolute/working-tree-root` to add an existing
|
|
727
|
+
repository as a read-only case; `--format markdown` and `--format json` measure the other formats.
|
|
728
|
+
The scratch directory must be outside that repository. Fixtures and timing files always remain
|
|
729
|
+
under scratch, including for real-repository measurements. Concurrent repository changes fail the
|
|
730
|
+
output-stability check instead of producing a comparable baseline.
|
|
725
731
|
Keep the CLI version, scratch path, interpreter and machine comparable when comparing runs;
|
|
726
732
|
measurements are observations, not timing thresholds in CI. Retain or remove the scratch directory
|
|
727
733
|
through your own temporary-resource workflow after inspection.
|
|
728
734
|
|
|
735
|
+
Measured baseline on 2026-10-19: Context Loader 1.3.8, CLI CPython 3.12.13, benchmark Python 3.12.3,
|
|
736
|
+
Git 2.43.0, Linux x86-64 and local NVMe storage. Each case used two warm-ups and ten measured runs;
|
|
737
|
+
outputs were identical within each case. These sequential observations include process startup and
|
|
738
|
+
host load, and provide a baseline for future comparisons under matching conditions. The existing
|
|
739
|
+
repository case describes one local checkout state; its output size changes with repository inputs.
|
|
740
|
+
|
|
741
|
+
| Case | Format | Median ms | Peak RSS KiB | Output bytes |
|
|
742
|
+
| --- | --- | ---: | ---: | ---: |
|
|
743
|
+
| Long AGENTS | markdown | 90.8 | 20804 | 17304 |
|
|
744
|
+
| Long AGENTS | json | 77.4 | 20612 | 63797 |
|
|
745
|
+
| Long AGENTS | json-compact | 73.4 | 20644 | 59471 |
|
|
746
|
+
| Large directory | markdown | 82.3 | 20136 | 9170 |
|
|
747
|
+
| Large directory | json | 76.5 | 20212 | 11237 |
|
|
748
|
+
| Large directory | json-compact | 70.5 | 19580 | 11233 |
|
|
749
|
+
| Large status | markdown | 80.4 | 19904 | 5986 |
|
|
750
|
+
| Large status | json | 66.3 | 20012 | 7945 |
|
|
751
|
+
| Large status | json-compact | 70.0 | 19904 | 7941 |
|
|
752
|
+
| Existing repository | markdown | 114.0 | 20888 | 29466 |
|
|
753
|
+
| Existing repository | json | 115.2 | 20876 | 55464 |
|
|
754
|
+
| Existing repository | json-compact | 113.6 | 21416 | 33495 |
|
|
755
|
+
|
|
729
756
|
## Version maintenance
|
|
730
757
|
|
|
731
758
|
The versions in `pyproject.toml` and `context_loader/__init__.py`, the `tool_version` in
|
|
@@ -746,6 +773,15 @@ only verifies the public release, mirrors its exact formal tag object if missing
|
|
|
746
773
|
the Gitea Release record. It builds no package and has no PyPI publishing credentials.
|
|
747
774
|
No private endpoint or credential is needed on GitHub.
|
|
748
775
|
|
|
776
|
+
Public tag fetches use `FETCH_HEAD` without replacing a local tag ref that checkout may have
|
|
777
|
+
materialized as a lightweight tag. Identity checks and any missing-tag push use the fetched
|
|
778
|
+
object; an existing remote tag must match that exact object. Repeating synchronization leaves
|
|
779
|
+
matching tags and records unchanged. Public Git failures report only a fixed diagnostic category,
|
|
780
|
+
never the raw stderr, command arguments or credential-bearing URLs.
|
|
781
|
+
To close an existing published release after a synchronization-script fix, dispatch the Gitea
|
|
782
|
+
`release` workflow from current `master` with that existing tag as its `tag` input. Rerunning an
|
|
783
|
+
older tag-triggered job still executes the script at that old tag.
|
|
784
|
+
|
|
749
785
|
For environments that permit direct public reads but share an exhausted proxy quota,
|
|
750
786
|
set the Gitea Actions repository variable `RELEASE_PUBLIC_API_DIRECT=true`. The record
|
|
751
787
|
step appends only public GitHub API/PyPI hosts to the existing proxy bypass lists. Without
|
|
@@ -8,14 +8,14 @@ Python standard library.
|
|
|
8
8
|
|
|
9
9
|
## Open-source quick start
|
|
10
10
|
|
|
11
|
-
Current stable release: **1.3.
|
|
11
|
+
Current stable release: **1.3.9**. Local CLI for coding-agent workflows; renders deterministic Markdown or JSON.
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
uv tool install 'context-loader==1.3.
|
|
14
|
+
uv tool install 'context-loader==1.3.9'
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
pip install 'context-loader==1.3.
|
|
18
|
+
pip install 'context-loader==1.3.9'
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
```bash
|
|
@@ -28,21 +28,21 @@ project-context --repo /path/to/repo --format json
|
|
|
28
28
|
|
|
29
29
|
## Install
|
|
30
30
|
|
|
31
|
-
Source version: `1.3.
|
|
31
|
+
Source version: `1.3.9`. Install its matching published release or an exact source commit.
|
|
32
32
|
|
|
33
33
|
Install via `uv`:
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
uv tool install 'context-loader==1.3.
|
|
36
|
+
uv tool install 'context-loader==1.3.9'
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
Install via `pip`:
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
pip install 'context-loader==1.3.
|
|
42
|
+
pip install 'context-loader==1.3.9'
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
For development or source-based installs tracking current repository (`1.3.
|
|
45
|
+
For development or source-based installs tracking current repository (`1.3.9`):
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
48
|
uv tool install git+https://github.com/xuanheng-tech/context-loader.git
|
|
@@ -141,7 +141,7 @@ set differs, as described under “Compact model consumption”. The declared co
|
|
|
141
141
|
"schema_version": 3,
|
|
142
142
|
"tool": {
|
|
143
143
|
"name": "context-loader",
|
|
144
|
-
"version": "1.3.
|
|
144
|
+
"version": "1.3.9"
|
|
145
145
|
},
|
|
146
146
|
"repository": {
|
|
147
147
|
"requested_path": "/canonical/requested/path",
|
|
@@ -264,7 +264,7 @@ although 1.1.0 added the top-level `statuses` key. From release 1.2.0 onward eac
|
|
|
264
264
|
names exactly one key set, and a new number is issued whenever a key set would otherwise be reused.
|
|
265
265
|
|
|
266
266
|
The JSON schema version and package version are independent: this build emits `schema_version` `3`
|
|
267
|
-
for `--format json` and `4` for `--format json-compact`, while `tool.version` is `1.3.
|
|
267
|
+
for `--format json` and `4` for `--format json-compact`, while `tool.version` is `1.3.9`. Version 1
|
|
268
268
|
and 2 are the exact shapes already published in release 1.2.0 and are never reused: because
|
|
269
269
|
`nested_context` changes the default document's key set, version 3 names the current full-document
|
|
270
270
|
key set and version 4 names the compact projection.
|
|
@@ -462,7 +462,7 @@ or candidate-file content.
|
|
|
462
462
|
|
|
463
463
|
## Not Included
|
|
464
464
|
|
|
465
|
-
Version 1.3.
|
|
465
|
+
Version 1.3.9 does not provide AI summaries, project-type detection, loading or transport of
|
|
466
466
|
nested `AGENTS.md` contents (the JSON `nested_context` field reports bounded existence only),
|
|
467
467
|
Memory retrieval, semantic ranking, ignore-rule parsing, plugins, profiles, caches, databases,
|
|
468
468
|
network services, MCP, daemons, GUIs, CI/CD, telemetry, or automatic updates.
|
|
@@ -508,13 +508,40 @@ scratch directory:
|
|
|
508
508
|
python scripts/benchmark.py --cli /absolute/path/to/project-context --scratch /absolute/empty/scratch
|
|
509
509
|
```
|
|
510
510
|
|
|
511
|
-
The opt-in benchmark creates
|
|
512
|
-
elapsed time, peak RSS (KiB)
|
|
513
|
-
|
|
511
|
+
The opt-in benchmark creates synthetic repositories under that directory and reports median,
|
|
512
|
+
minimum and maximum elapsed time, peak RSS (KiB), output bytes, digest and individual samples.
|
|
513
|
+
The default measures five runs after one warm-up and checks identical output throughout. It covers
|
|
514
|
+
1,000 AGENTS headings, a 5,000-file directory, and 1,000 untracked files.
|
|
515
|
+
Use `--runs 10 --format json-compact --repo /absolute/working-tree-root` to add an existing
|
|
516
|
+
repository as a read-only case; `--format markdown` and `--format json` measure the other formats.
|
|
517
|
+
The scratch directory must be outside that repository. Fixtures and timing files always remain
|
|
518
|
+
under scratch, including for real-repository measurements. Concurrent repository changes fail the
|
|
519
|
+
output-stability check instead of producing a comparable baseline.
|
|
514
520
|
Keep the CLI version, scratch path, interpreter and machine comparable when comparing runs;
|
|
515
521
|
measurements are observations, not timing thresholds in CI. Retain or remove the scratch directory
|
|
516
522
|
through your own temporary-resource workflow after inspection.
|
|
517
523
|
|
|
524
|
+
Measured baseline on 2026-10-19: Context Loader 1.3.8, CLI CPython 3.12.13, benchmark Python 3.12.3,
|
|
525
|
+
Git 2.43.0, Linux x86-64 and local NVMe storage. Each case used two warm-ups and ten measured runs;
|
|
526
|
+
outputs were identical within each case. These sequential observations include process startup and
|
|
527
|
+
host load, and provide a baseline for future comparisons under matching conditions. The existing
|
|
528
|
+
repository case describes one local checkout state; its output size changes with repository inputs.
|
|
529
|
+
|
|
530
|
+
| Case | Format | Median ms | Peak RSS KiB | Output bytes |
|
|
531
|
+
| --- | --- | ---: | ---: | ---: |
|
|
532
|
+
| Long AGENTS | markdown | 90.8 | 20804 | 17304 |
|
|
533
|
+
| Long AGENTS | json | 77.4 | 20612 | 63797 |
|
|
534
|
+
| Long AGENTS | json-compact | 73.4 | 20644 | 59471 |
|
|
535
|
+
| Large directory | markdown | 82.3 | 20136 | 9170 |
|
|
536
|
+
| Large directory | json | 76.5 | 20212 | 11237 |
|
|
537
|
+
| Large directory | json-compact | 70.5 | 19580 | 11233 |
|
|
538
|
+
| Large status | markdown | 80.4 | 19904 | 5986 |
|
|
539
|
+
| Large status | json | 66.3 | 20012 | 7945 |
|
|
540
|
+
| Large status | json-compact | 70.0 | 19904 | 7941 |
|
|
541
|
+
| Existing repository | markdown | 114.0 | 20888 | 29466 |
|
|
542
|
+
| Existing repository | json | 115.2 | 20876 | 55464 |
|
|
543
|
+
| Existing repository | json-compact | 113.6 | 21416 | 33495 |
|
|
544
|
+
|
|
518
545
|
## Version maintenance
|
|
519
546
|
|
|
520
547
|
The versions in `pyproject.toml` and `context_loader/__init__.py`, the `tool_version` in
|
|
@@ -535,6 +562,15 @@ only verifies the public release, mirrors its exact formal tag object if missing
|
|
|
535
562
|
the Gitea Release record. It builds no package and has no PyPI publishing credentials.
|
|
536
563
|
No private endpoint or credential is needed on GitHub.
|
|
537
564
|
|
|
565
|
+
Public tag fetches use `FETCH_HEAD` without replacing a local tag ref that checkout may have
|
|
566
|
+
materialized as a lightweight tag. Identity checks and any missing-tag push use the fetched
|
|
567
|
+
object; an existing remote tag must match that exact object. Repeating synchronization leaves
|
|
568
|
+
matching tags and records unchanged. Public Git failures report only a fixed diagnostic category,
|
|
569
|
+
never the raw stderr, command arguments or credential-bearing URLs.
|
|
570
|
+
To close an existing published release after a synchronization-script fix, dispatch the Gitea
|
|
571
|
+
`release` workflow from current `master` with that existing tag as its `tag` input. Rerunning an
|
|
572
|
+
older tag-triggered job still executes the script at that old tag.
|
|
573
|
+
|
|
538
574
|
For environments that permit direct public reads but share an exhausted proxy quota,
|
|
539
575
|
set the Gitea Actions repository variable `RELEASE_PUBLIC_API_DIRECT=true`. The record
|
|
540
576
|
step appends only public GitHub API/PyPI hosts to the existing proxy bypass lists. Without
|
|
@@ -265,25 +265,20 @@ def _discover_repository(
|
|
|
265
265
|
if not canonical.is_dir():
|
|
266
266
|
raise ContextLoaderError("--repo must name an existing directory", exit_code=2)
|
|
267
267
|
|
|
268
|
-
|
|
269
|
-
canonical, ("rev-parse", "--is-bare-repository"), check=False, deadline=deadline
|
|
270
|
-
)
|
|
271
|
-
root = _run_git(
|
|
268
|
+
location = _run_git(
|
|
272
269
|
canonical,
|
|
273
|
-
("rev-parse", "--path-format=absolute", "--show-toplevel"),
|
|
270
|
+
("rev-parse", "--is-bare-repository", "--path-format=absolute", "--show-toplevel"),
|
|
274
271
|
check=False,
|
|
275
272
|
deadline=deadline,
|
|
276
273
|
)
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
)
|
|
281
|
-
if _without_one_line_ending(bare.stdout) != b"false":
|
|
274
|
+
# Only the first line is metadata; a literal repository path may contain newlines.
|
|
275
|
+
bare, separator, root = location.stdout.partition(b"\n")
|
|
276
|
+
if location.returncode != 0 or bare != b"false" or not separator or not root:
|
|
282
277
|
raise ContextLoaderError(
|
|
283
278
|
"--repo must be the canonical root of a non-bare Git worktree", exit_code=2
|
|
284
279
|
)
|
|
285
280
|
try:
|
|
286
|
-
discovered = Path(_decode_path(_without_one_line_ending(root
|
|
281
|
+
discovered = Path(_decode_path(_without_one_line_ending(root))).resolve(strict=True)
|
|
287
282
|
except (OSError, RuntimeError):
|
|
288
283
|
raise ContextLoaderError(
|
|
289
284
|
"--repo must be the canonical root of a non-bare Git worktree", exit_code=2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|