contextforge-repo 0.4.2.post2__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.
- contextforge_repo-0.4.2.post2/.gitignore +54 -0
- contextforge_repo-0.4.2.post2/CHANGELOG.md +223 -0
- contextforge_repo-0.4.2.post2/LICENSE +202 -0
- contextforge_repo-0.4.2.post2/NOTICE +4 -0
- contextforge_repo-0.4.2.post2/PKG-INFO +438 -0
- contextforge_repo-0.4.2.post2/README.md +392 -0
- contextforge_repo-0.4.2.post2/pyproject.toml +133 -0
- contextforge_repo-0.4.2.post2/src/contextforge/__init__.py +37 -0
- contextforge_repo-0.4.2.post2/src/contextforge/__main__.py +6 -0
- contextforge_repo-0.4.2.post2/src/contextforge/_metadata.py +6 -0
- contextforge_repo-0.4.2.post2/src/contextforge/api/__init__.py +5 -0
- contextforge_repo-0.4.2.post2/src/contextforge/api/app.py +21 -0
- contextforge_repo-0.4.2.post2/src/contextforge/api/routes.py +22 -0
- contextforge_repo-0.4.2.post2/src/contextforge/application.py +1408 -0
- contextforge_repo-0.4.2.post2/src/contextforge/benchmarks/__init__.py +55 -0
- contextforge_repo-0.4.2.post2/src/contextforge/benchmarks/metrics.py +228 -0
- contextforge_repo-0.4.2.post2/src/contextforge/benchmarks/models.py +490 -0
- contextforge_repo-0.4.2.post2/src/contextforge/benchmarks/renderers.py +438 -0
- contextforge_repo-0.4.2.post2/src/contextforge/benchmarks/runner.py +545 -0
- contextforge_repo-0.4.2.post2/src/contextforge/cli/__init__.py +1 -0
- contextforge_repo-0.4.2.post2/src/contextforge/cli/benchmark_commands.py +249 -0
- contextforge_repo-0.4.2.post2/src/contextforge/cli/context_commands.py +702 -0
- contextforge_repo-0.4.2.post2/src/contextforge/cli/diagnostics_commands.py +244 -0
- contextforge_repo-0.4.2.post2/src/contextforge/cli/intelligence_commands.py +493 -0
- contextforge_repo-0.4.2.post2/src/contextforge/cli/main.py +407 -0
- contextforge_repo-0.4.2.post2/src/contextforge/cli/mcp_commands.py +77 -0
- contextforge_repo-0.4.2.post2/src/contextforge/cli/progress.py +479 -0
- contextforge_repo-0.4.2.post2/src/contextforge/cli/scan_output.py +189 -0
- contextforge_repo-0.4.2.post2/src/contextforge/config.py +30 -0
- contextforge_repo-0.4.2.post2/src/contextforge/context/__init__.py +171 -0
- contextforge_repo-0.4.2.post2/src/contextforge/context/builder.py +244 -0
- contextforge_repo-0.4.2.post2/src/contextforge/context/inspection.py +298 -0
- contextforge_repo-0.4.2.post2/src/contextforge/context/package.py +386 -0
- contextforge_repo-0.4.2.post2/src/contextforge/context/reader.py +427 -0
- contextforge_repo-0.4.2.post2/src/contextforge/context/renderers.py +196 -0
- contextforge_repo-0.4.2.post2/src/contextforge/context/selection.py +438 -0
- contextforge_repo-0.4.2.post2/src/contextforge/context/tree.py +237 -0
- contextforge_repo-0.4.2.post2/src/contextforge/core/__init__.py +30 -0
- contextforge_repo-0.4.2.post2/src/contextforge/core/models.py +22 -0
- contextforge_repo-0.4.2.post2/src/contextforge/core/validation.py +32 -0
- contextforge_repo-0.4.2.post2/src/contextforge/diagnostics.py +496 -0
- contextforge_repo-0.4.2.post2/src/contextforge/discovery/__init__.py +89 -0
- contextforge_repo-0.4.2.post2/src/contextforge/discovery/completeness.py +289 -0
- contextforge_repo-0.4.2.post2/src/contextforge/discovery/constraints.py +199 -0
- contextforge_repo-0.4.2.post2/src/contextforge/discovery/models.py +466 -0
- contextforge_repo-0.4.2.post2/src/contextforge/discovery/renderers.py +479 -0
- contextforge_repo-0.4.2.post2/src/contextforge/discovery/session.py +3006 -0
- contextforge_repo-0.4.2.post2/src/contextforge/discovery/tools.py +1332 -0
- contextforge_repo-0.4.2.post2/src/contextforge/filesystem.py +253 -0
- contextforge_repo-0.4.2.post2/src/contextforge/git/__init__.py +19 -0
- contextforge_repo-0.4.2.post2/src/contextforge/git/diff.py +416 -0
- contextforge_repo-0.4.2.post2/src/contextforge/handoff/__init__.py +72 -0
- contextforge_repo-0.4.2.post2/src/contextforge/handoff/compiler.py +448 -0
- contextforge_repo-0.4.2.post2/src/contextforge/handoff/flow.py +184 -0
- contextforge_repo-0.4.2.post2/src/contextforge/handoff/materialize.py +771 -0
- contextforge_repo-0.4.2.post2/src/contextforge/handoff/models.py +488 -0
- contextforge_repo-0.4.2.post2/src/contextforge/handoff/refinement.py +104 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/__init__.py +303 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/codemap.py +532 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/extractors.py +57 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/fallback.py +55 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/indexer.py +336 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/manifest.py +266 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/map_models.py +583 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/maps.py +2292 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/models.py +331 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/python.py +1008 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/relationships.py +542 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/semantic_models.py +265 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/semantics.py +2401 -0
- contextforge_repo-0.4.2.post2/src/contextforge/intelligence/store.py +1189 -0
- contextforge_repo-0.4.2.post2/src/contextforge/logging.py +794 -0
- contextforge_repo-0.4.2.post2/src/contextforge/mcp/__init__.py +18 -0
- contextforge_repo-0.4.2.post2/src/contextforge/mcp/foundation.py +432 -0
- contextforge_repo-0.4.2.post2/src/contextforge/mcp/server.py +227 -0
- contextforge_repo-0.4.2.post2/src/contextforge/models/__init__.py +165 -0
- contextforge_repo-0.4.2.post2/src/contextforge/models/fake.py +127 -0
- contextforge_repo-0.4.2.post2/src/contextforge/models/ollama.py +496 -0
- contextforge_repo-0.4.2.post2/src/contextforge/models/openai_compatible.py +924 -0
- contextforge_repo-0.4.2.post2/src/contextforge/models/providers.py +3484 -0
- contextforge_repo-0.4.2.post2/src/contextforge/progress.py +891 -0
- contextforge_repo-0.4.2.post2/src/contextforge/project_config.py +729 -0
- contextforge_repo-0.4.2.post2/src/contextforge/prompts/__init__.py +5 -0
- contextforge_repo-0.4.2.post2/src/contextforge/prompts/package.py +12 -0
- contextforge_repo-0.4.2.post2/src/contextforge/py.typed +1 -0
- contextforge_repo-0.4.2.post2/src/contextforge/repositories/__init__.py +23 -0
- contextforge_repo-0.4.2.post2/src/contextforge/repositories/analysis.py +12 -0
- contextforge_repo-0.4.2.post2/src/contextforge/repositories/files.py +180 -0
- contextforge_repo-0.4.2.post2/src/contextforge/repositories/ignore.py +259 -0
- contextforge_repo-0.4.2.post2/src/contextforge/repositories/language.py +80 -0
- contextforge_repo-0.4.2.post2/src/contextforge/repositories/models.py +123 -0
- contextforge_repo-0.4.2.post2/src/contextforge/repositories/scanner.py +274 -0
- contextforge_repo-0.4.2.post2/src/contextforge/storage/__init__.py +5 -0
- contextforge_repo-0.4.2.post2/src/contextforge/storage/backend.py +11 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.venv/
|
|
2
|
+
.release-venv/
|
|
3
|
+
.vscode/
|
|
4
|
+
.idea/
|
|
5
|
+
.fleet/
|
|
6
|
+
.direnv/
|
|
7
|
+
.agents/
|
|
8
|
+
.uv-cache/
|
|
9
|
+
.python/
|
|
10
|
+
|
|
11
|
+
.env
|
|
12
|
+
.env.*
|
|
13
|
+
!.env.example
|
|
14
|
+
|
|
15
|
+
__pycache__/
|
|
16
|
+
*.py[cod]
|
|
17
|
+
*$py.class
|
|
18
|
+
|
|
19
|
+
.contextforge/
|
|
20
|
+
.pytest_cache/
|
|
21
|
+
.pytest-tmp/
|
|
22
|
+
/.pytest-*-tmp/
|
|
23
|
+
.tox/
|
|
24
|
+
.nox/
|
|
25
|
+
.hypothesis/
|
|
26
|
+
.ruff_cache/
|
|
27
|
+
.mypy_cache/
|
|
28
|
+
.coverage
|
|
29
|
+
.coverage.*
|
|
30
|
+
coverage.xml
|
|
31
|
+
junit.xml
|
|
32
|
+
htmlcov/
|
|
33
|
+
|
|
34
|
+
*.tmp
|
|
35
|
+
*.log
|
|
36
|
+
*.prof
|
|
37
|
+
*.orig
|
|
38
|
+
*.rej
|
|
39
|
+
|
|
40
|
+
build/
|
|
41
|
+
dist/
|
|
42
|
+
wheelhouse/
|
|
43
|
+
*.egg-info/
|
|
44
|
+
|
|
45
|
+
/wiki/
|
|
46
|
+
|
|
47
|
+
site/
|
|
48
|
+
|
|
49
|
+
# Operating-system metadata
|
|
50
|
+
.DS_Store
|
|
51
|
+
._*
|
|
52
|
+
Thumbs.db
|
|
53
|
+
Desktop.ini
|
|
54
|
+
$RECYCLE.BIN/
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
|
+
Feature releases follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
|
|
7
|
+
and Python distribution versions follow PEP 440.
|
|
8
|
+
|
|
9
|
+
## [Unreleased]
|
|
10
|
+
|
|
11
|
+
## [0.4.2.post2] - 2026-08-21
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Updated the SHA-pinned PyPI publishing action to a release that supports
|
|
16
|
+
Core Metadata 2.4, matching the metadata generated for ContextForge wheels
|
|
17
|
+
and source distributions.
|
|
18
|
+
|
|
19
|
+
## [0.4.2.post1] - 2026-08-21
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- Made the CLI help regression validation insensitive to ANSI terminal styling
|
|
24
|
+
so the same documented options are verified consistently on Linux and
|
|
25
|
+
Windows CI runners.
|
|
26
|
+
|
|
27
|
+
## [0.4.2] - 2026-08-21
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
- Added versioned discovery benchmark manifests and the
|
|
32
|
+
`contextforge benchmark discovery` command with text, Markdown, and canonical
|
|
33
|
+
JSON reports for quality, repeatability, performance, warnings, and provider
|
|
34
|
+
accounting.
|
|
35
|
+
|
|
36
|
+
### Changed
|
|
37
|
+
|
|
38
|
+
- Relicensed ContextForge `0.4.2` and later under Apache License 2.0; earlier
|
|
39
|
+
tagged releases remain under the license included in their snapshots.
|
|
40
|
+
- Prepared the first public PyPI release as `contextforge-repo` while preserving
|
|
41
|
+
the `contextforge` import package and the `contextforge` and `ctxf` commands.
|
|
42
|
+
- Opened the contribution workflow to fork-based pull requests targeting
|
|
43
|
+
`dev`, with owner review through CODEOWNERS and Apache-2.0 inbound terms.
|
|
44
|
+
- Enabled GitHub Discussions for ordinary usage questions and Q&A, and added a
|
|
45
|
+
private project conduct-reporting address with a GitHub abuse-reporting
|
|
46
|
+
fallback.
|
|
47
|
+
- Replaced the editable-install-only CI path with locked, provider-independent
|
|
48
|
+
lint, type, test, distribution, and clean-install validation.
|
|
49
|
+
- Added owner-triggered OIDC publication for TestPyPI and PyPI, draft GitHub
|
|
50
|
+
releases, checksums, SBOM generation, and non-PR dependency/security audits.
|
|
51
|
+
- Archived completed implementation plans and removed machine-specific paths
|
|
52
|
+
from the public documentation set.
|
|
53
|
+
- Redesigned the public README, added a restrained ContextForge visual identity,
|
|
54
|
+
prepared a complete English GitHub Wiki workspace, and clarified the current
|
|
55
|
+
solo-maintainer review policy.
|
|
56
|
+
- Tightened distribution metadata and source-distribution exclusions so local
|
|
57
|
+
state, tests, planning documents, Wiki files, and development-only repository
|
|
58
|
+
metadata are not packaged.
|
|
59
|
+
- Stabilized `context suggest` around text as the default interactive output and
|
|
60
|
+
documented text, Markdown, and JSON as presentation renderers over the same
|
|
61
|
+
canonical structured selection.
|
|
62
|
+
- Documented fresh, indexed, and hybrid intent, valid cross-mode selection
|
|
63
|
+
differences, exact agreement versus semantic stability, grouped warning and
|
|
64
|
+
stdout/stderr behavior, and the limits of model-backed repeatability for the
|
|
65
|
+
v0.4.2 discovery work.
|
|
66
|
+
|
|
67
|
+
### Fixed
|
|
68
|
+
|
|
69
|
+
- Kept Ollama native structured output within its grammar compiler limits while
|
|
70
|
+
retaining strict local response validation, plus a one-shot bounded plain-JSON
|
|
71
|
+
fallback with the schema in the model instruction and exact HTTP accounting.
|
|
72
|
+
|
|
73
|
+
## [0.4.1] - 2026-07-22
|
|
74
|
+
|
|
75
|
+
### Added
|
|
76
|
+
|
|
77
|
+
- Added a presentation-independent, schema-versioned structured progress event
|
|
78
|
+
contract for CLI consumers and future API/GUI adapters.
|
|
79
|
+
- Added weighted overall and phase percentages, per-item accounting, provider
|
|
80
|
+
lifecycle details, and safe cancellation/failure terminal events for
|
|
81
|
+
long-running index and automatic context workflows.
|
|
82
|
+
- Added `contextforge version`, the eager `contextforge --version` option, and
|
|
83
|
+
the interchangeable `ctxf` console alias. `python -m contextforge --version`
|
|
84
|
+
uses the same authoritative package version.
|
|
85
|
+
- Added the centralized structured logging system with quiet through
|
|
86
|
+
trace levels, pretty/JSON stderr rendering, component focus, rotating local
|
|
87
|
+
JSON file logs, centralized structured redaction, correlation IDs, safe
|
|
88
|
+
provider/request/budget/schema/retry/fallback events, and API-readable
|
|
89
|
+
versioned diagnostic records.
|
|
90
|
+
- Added context-window provenance and reproducible request-budget diagnostics,
|
|
91
|
+
including explicit local-rejection state and the 98,304-token regression
|
|
92
|
+
path for LM Studio/OpenAI-compatible configurations.
|
|
93
|
+
- Added safe run summaries under `.contextforge/runs` and read-only
|
|
94
|
+
`diagnostics last`, `show`, `config`, and `provider` commands.
|
|
95
|
+
|
|
96
|
+
### Changed
|
|
97
|
+
|
|
98
|
+
- Rendered interactive progress as a single Rich stderr panel and redirected
|
|
99
|
+
progress as discrete, non-ANSI records while preserving parseable JSON and
|
|
100
|
+
Markdown stdout.
|
|
101
|
+
- Kept progress and diagnostics as distinct contracts while routing stderr
|
|
102
|
+
logging through the existing single Rich live-console owner. MCP stdout
|
|
103
|
+
remains protocol-only, and JSON/Markdown command stdout remains parseable.
|
|
104
|
+
- Documented logging configuration, diagnostics, redaction, and context-window
|
|
105
|
+
troubleshooting for the 0.4.1 maintenance release.
|
|
106
|
+
|
|
107
|
+
### Fixed
|
|
108
|
+
|
|
109
|
+
- Applied nested `.gitignore` files relative to their containing directories
|
|
110
|
+
during repository scans, including inherited rules and Git-style negation.
|
|
111
|
+
- Kept provider/model progress accounting monotonic across reuse, fallback,
|
|
112
|
+
retry, failure, publication, and cancellation paths.
|
|
113
|
+
- Excluded local index/run state, test and analysis caches, coverage shards,
|
|
114
|
+
staging data, and temporary files explicitly from distribution builds.
|
|
115
|
+
|
|
116
|
+
## [0.4.0] - 2026-07-17
|
|
117
|
+
|
|
118
|
+
### Added
|
|
119
|
+
|
|
120
|
+
- Added `contextforge index build|update|status|clean` as thin adapters over
|
|
121
|
+
deterministic CodeMaps, incremental semantic analysis, repository maps,
|
|
122
|
+
immutable generation storage, locking, and policy-bounded cleanup.
|
|
123
|
+
- Added strict project/command provider configuration for local Ollama,
|
|
124
|
+
structural-only operation, and a deterministic offline fake without storing
|
|
125
|
+
credential values in generated artifacts.
|
|
126
|
+
- Added `contextforge context suggest` for indexed, fresh, and hybrid discovery
|
|
127
|
+
with reviewable paths/ranges, reasons, confidence, warnings, and byte budgets.
|
|
128
|
+
- Extended `contextforge context create` with opt-in automatic discovery,
|
|
129
|
+
labelled task refinement, bounded read-only Git context, portable task
|
|
130
|
+
handoffs, and deterministic compiled-prompt output while preserving manual
|
|
131
|
+
behavior when automatic discovery is absent.
|
|
132
|
+
- Added `contextforge context review` for portable handoff validation and review
|
|
133
|
+
without the original repository.
|
|
134
|
+
- Added a local read-only stdio MCP foundation with bounded overview, tree,
|
|
135
|
+
search, summary, relationship, verified-read, Git-diff, suggestion,
|
|
136
|
+
in-memory package-build, and portable package-inspection tools.
|
|
137
|
+
- Added offline CLI and MCP protocol/security tests covering structured stdout,
|
|
138
|
+
stderr diagnostics, incremental reuse, path rejection, byte bounds,
|
|
139
|
+
cancellation, overwrite policy, and absence of write capabilities.
|
|
140
|
+
|
|
141
|
+
- Added `contextforge context create [PATH]` as a thin adapter over the public
|
|
142
|
+
context builder and Markdown/JSON renderers, with exact, directory, glob,
|
|
143
|
+
exclusion, line-range, optional-tree, task, and byte/file-limit options.
|
|
144
|
+
- Added atomic package output with explicit `--force` replacement and clean,
|
|
145
|
+
parseable JSON stdout when no output path is supplied.
|
|
146
|
+
- Added `contextforge context inspect PACKAGE` for bounded offline JSON schema
|
|
147
|
+
and semantic validation, including task, statistics, selected paths, and
|
|
148
|
+
included line-range display without the original repository.
|
|
149
|
+
- Added deterministic project-tree rendering, snapshot-only manual selection,
|
|
150
|
+
verified UTF-8 source reads, canonical context packages, and pure Markdown
|
|
151
|
+
and JSON renderers.
|
|
152
|
+
|
|
153
|
+
- Added deterministic recursive repository traversal with portable relative
|
|
154
|
+
paths, SHA-256 hashes, basic language detection, and scan summary statistics.
|
|
155
|
+
- Added default exclusions, protected VCS metadata handling, repository-root
|
|
156
|
+
`.gitignore` and `.contextforgeignore` support, binary-like detection,
|
|
157
|
+
maximum-size enforcement, and non-followed symlink/junction reporting.
|
|
158
|
+
- Added `contextforge scan [PATH]` as a thin CLI adapter over the repository
|
|
159
|
+
scanner, with deterministic file-inventory table and JSON output.
|
|
160
|
+
- Added maximum-file-size, excluded-entry display, unreadable-entry failure,
|
|
161
|
+
and safe output-file options.
|
|
162
|
+
- Added a versioned JSON report envelope containing the scan options and the
|
|
163
|
+
existing `ProjectSnapshot` model.
|
|
164
|
+
|
|
165
|
+
### Fixed
|
|
166
|
+
|
|
167
|
+
- Prune unreferenced crash leftovers before immutable generation publication
|
|
168
|
+
and validate semantic interpretation records independently of structural
|
|
169
|
+
record presence.
|
|
170
|
+
- Reserve discovery read budget for model-directed inspection and final source
|
|
171
|
+
verification instead of allowing the fresh CodeMap prepass to exhaust it.
|
|
172
|
+
- Bound scheduled semantic tasks, per-file semantic requests, repository-map
|
|
173
|
+
calls, and MCP request-line memory.
|
|
174
|
+
- Enforce external repository-data policy for non-loopback model endpoints and
|
|
175
|
+
reject ASCII control characters in portable paths across persisted and
|
|
176
|
+
portable artifacts.
|
|
177
|
+
- Report staged Git additions as `added`, validate required MCP initialize
|
|
178
|
+
fields, and propagate MCP cancellation rather than converting it to an
|
|
179
|
+
internal protocol error.
|
|
180
|
+
|
|
181
|
+
- Preserve the prior active index generation when a strict multi-phase CLI
|
|
182
|
+
build fails after a previous valid generation exists.
|
|
183
|
+
- Keep JSON stdout free of operational messages for discovery, status, and
|
|
184
|
+
automatic handoff output.
|
|
185
|
+
|
|
186
|
+
- Configure the shared console and module entry points for UTF-8 stdout and
|
|
187
|
+
stderr so valid Unicode packages do not fail on legacy Windows code pages.
|
|
188
|
+
- Reject context packages whose selected files, source bytes, directory
|
|
189
|
+
prefixes, or language counts exceed their claimed selectable project
|
|
190
|
+
metadata, including packages that omit the optional tree.
|
|
191
|
+
- Reject control characters in package language labels so offline inspection
|
|
192
|
+
cannot emit attacker-controlled terminal control lines.
|
|
193
|
+
- Update security and architecture documentation for verified source reads,
|
|
194
|
+
portable paths, atomic publication, and concurrent-modification assumptions.
|
|
195
|
+
|
|
196
|
+
- Disable Click's native Windows argument expansion in the shared console and
|
|
197
|
+
module entry wrapper so quoted GitWildMatch selectors reach ContextForge as
|
|
198
|
+
one unchanged argument.
|
|
199
|
+
- Correct context CLI examples to distinguish exact files, directories, and
|
|
200
|
+
glob patterns, and make unmatched exact-file errors explain the appropriate
|
|
201
|
+
selector options.
|
|
202
|
+
|
|
203
|
+
- Prune directories ignored by default, `.gitignore`, or
|
|
204
|
+
`.contextforgeignore` rules instead of traversing and serializing every
|
|
205
|
+
descendant.
|
|
206
|
+
- Make detailed JSON exclusions conditional on `--show-excluded`, while
|
|
207
|
+
retaining unreadable entries for diagnostics.
|
|
208
|
+
- Prevent Windows directory junction traversal and reject files whose identity
|
|
209
|
+
changes while being opened.
|
|
210
|
+
- Keep file hashing bounded when a file grows during scanning, and derive size,
|
|
211
|
+
binary classification, and SHA-256 from one consistent file read.
|
|
212
|
+
|
|
213
|
+
## [0.1.0] - 2026-07-13
|
|
214
|
+
|
|
215
|
+
### Added
|
|
216
|
+
|
|
217
|
+
- Initial Python package using a `src` layout.
|
|
218
|
+
- Minimal CLI with `contextforge version` and `contextforge doctor`.
|
|
219
|
+
- Minimal FastAPI application with `/health` and `/version`.
|
|
220
|
+
- Configuration and logging foundations.
|
|
221
|
+
- Placeholder package boundaries for core, context packages, prompts,
|
|
222
|
+
repository analysis, storage, and model providers.
|
|
223
|
+
- Initial tests, documentation, GitHub metadata, and development tooling.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|