git-contribution-analyzer 0.8.0__py3-none-any.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.
- git_contribution_analyzer/__init__.py +3 -0
- git_contribution_analyzer/adapters/__init__.py +1 -0
- git_contribution_analyzer/adapters/git/__init__.py +1 -0
- git_contribution_analyzer/adapters/git/local_identity.py +51 -0
- git_contribution_analyzer/adapters/git/native_git.py +353 -0
- git_contribution_analyzer/adapters/git/pydriller_history.py +57 -0
- git_contribution_analyzer/adapters/git/repository_discovery.py +75 -0
- git_contribution_analyzer/adapters/gui/__init__.py +1 -0
- git_contribution_analyzer/adapters/gui/app.py +63 -0
- git_contribution_analyzer/adapters/gui/controller.py +1084 -0
- git_contribution_analyzer/adapters/gui/models/__init__.py +3 -0
- git_contribution_analyzer/adapters/gui/models/base_table.py +108 -0
- git_contribution_analyzer/adapters/gui/settings.py +53 -0
- git_contribution_analyzer/adapters/gui/task_runner.py +196 -0
- git_contribution_analyzer/adapters/llm/__init__.py +1 -0
- git_contribution_analyzer/adapters/llm/anthropic.py +52 -0
- git_contribution_analyzer/adapters/llm/base.py +142 -0
- git_contribution_analyzer/adapters/llm/cache.py +148 -0
- git_contribution_analyzer/adapters/llm/claude_cli.py +52 -0
- git_contribution_analyzer/adapters/llm/codex_cli.py +52 -0
- git_contribution_analyzer/adapters/llm/command_base.py +153 -0
- git_contribution_analyzer/adapters/llm/mock.py +82 -0
- git_contribution_analyzer/adapters/llm/ollama.py +53 -0
- git_contribution_analyzer/adapters/llm/openai_compatible.py +61 -0
- git_contribution_analyzer/adapters/llm/registry.py +117 -0
- git_contribution_analyzer/adapters/mcp/__init__.py +13 -0
- git_contribution_analyzer/adapters/mcp/installer.py +175 -0
- git_contribution_analyzer/adapters/mcp/prompts_resources.py +218 -0
- git_contribution_analyzer/adapters/mcp/protocol.py +361 -0
- git_contribution_analyzer/adapters/mcp/server.py +52 -0
- git_contribution_analyzer/adapters/mcp/tools.py +621 -0
- git_contribution_analyzer/adapters/outcomes/__init__.py +1 -0
- git_contribution_analyzer/adapters/outcomes/yaml_loader.py +55 -0
- git_contribution_analyzer/adapters/outcomes/yaml_store.py +104 -0
- git_contribution_analyzer/adapters/reporting/__init__.py +1 -0
- git_contribution_analyzer/adapters/reporting/brag_markdown.py +115 -0
- git_contribution_analyzer/adapters/reporting/html_report.py +1413 -0
- git_contribution_analyzer/adapters/reporting/markdown.py +217 -0
- git_contribution_analyzer/adapters/reporting/portfolio_markdown.py +167 -0
- git_contribution_analyzer/adapters/reporting/recap_markdown.py +212 -0
- git_contribution_analyzer/adapters/reporting/resume_markdown.py +37 -0
- git_contribution_analyzer/adapters/reporting/work_assessment_csv.py +117 -0
- git_contribution_analyzer/adapters/reporting/work_assessment_markdown.py +90 -0
- git_contribution_analyzer/adapters/reporting/work_assessment_series_markdown.py +31 -0
- git_contribution_analyzer/adapters/storage/__init__.py +1 -0
- git_contribution_analyzer/adapters/storage/sqlite/__init__.py +1 -0
- git_contribution_analyzer/adapters/storage/sqlite/analysis.py +708 -0
- git_contribution_analyzer/adapters/storage/sqlite/database.py +98 -0
- git_contribution_analyzer/adapters/storage/sqlite/git_index.py +482 -0
- git_contribution_analyzer/adapters/storage/sqlite/identity_merge.py +373 -0
- git_contribution_analyzer/adapters/storage/sqlite/llm_audit.py +109 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/env.py +34 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/script.py.mako +22 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0001_initial.py +51 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0002_git_index.py +146 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0003_analysis.py +79 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0004_llm_audit.py +69 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0005_run_types.py +42 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0006_identity_merges.py +83 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0007_structural_baselines.py +173 -0
- git_contribution_analyzer/adapters/storage/sqlite/models.py +354 -0
- git_contribution_analyzer/adapters/storage/sqlite/structural_baseline.py +841 -0
- git_contribution_analyzer/adapters/workspace/__init__.py +1 -0
- git_contribution_analyzer/adapters/workspace/config.py +135 -0
- git_contribution_analyzer/adapters/workspace/git_exclude.py +32 -0
- git_contribution_analyzer/adapters/workspace/layout.py +40 -0
- git_contribution_analyzer/adapters/workspace/locks.py +27 -0
- git_contribution_analyzer/adapters/workspace/portfolio_workspace.py +380 -0
- git_contribution_analyzer/adapters/workspace/ranking_config.py +17 -0
- git_contribution_analyzer/application/__init__.py +1 -0
- git_contribution_analyzer/application/dto/__init__.py +19 -0
- git_contribution_analyzer/application/dto/gui.py +86 -0
- git_contribution_analyzer/application/dto/results.py +21 -0
- git_contribution_analyzer/application/facades/__init__.py +3 -0
- git_contribution_analyzer/application/facades/gui.py +568 -0
- git_contribution_analyzer/application/ports/__init__.py +22 -0
- git_contribution_analyzer/application/ports/cancellation.py +50 -0
- git_contribution_analyzer/application/ports/git_history.py +22 -0
- git_contribution_analyzer/application/ports/llm.py +44 -0
- git_contribution_analyzer/application/ports/portfolio_store.py +34 -0
- git_contribution_analyzer/application/ports/progress.py +43 -0
- git_contribution_analyzer/application/ports/structural_baseline.py +93 -0
- git_contribution_analyzer/application/services/__init__.py +1 -0
- git_contribution_analyzer/application/services/assessment_explanation.py +127 -0
- git_contribution_analyzer/application/services/default_person.py +61 -0
- git_contribution_analyzer/application/services/evidence_snapshot.py +64 -0
- git_contribution_analyzer/application/services/person_selection.py +88 -0
- git_contribution_analyzer/application/services/resume_generation.py +318 -0
- git_contribution_analyzer/application/services/semantic_enhancement.py +157 -0
- git_contribution_analyzer/application/services/time_boundaries.py +49 -0
- git_contribution_analyzer/application/use_cases/__init__.py +1 -0
- git_contribution_analyzer/application/use_cases/analyze_contributions.py +276 -0
- git_contribution_analyzer/application/use_cases/analyze_project.py +295 -0
- git_contribution_analyzer/application/use_cases/assess_portfolio.py +327 -0
- git_contribution_analyzer/application/use_cases/assess_work.py +602 -0
- git_contribution_analyzer/application/use_cases/assess_work_series.py +212 -0
- git_contribution_analyzer/application/use_cases/compare_assessment_runs.py +121 -0
- git_contribution_analyzer/application/use_cases/export_report.py +49 -0
- git_contribution_analyzer/application/use_cases/generate_brag.py +308 -0
- git_contribution_analyzer/application/use_cases/generate_portfolio_recap.py +244 -0
- git_contribution_analyzer/application/use_cases/generate_portfolio_resume.py +152 -0
- git_contribution_analyzer/application/use_cases/generate_recap.py +316 -0
- git_contribution_analyzer/application/use_cases/generate_report.py +32 -0
- git_contribution_analyzer/application/use_cases/generate_resume.py +209 -0
- git_contribution_analyzer/application/use_cases/get_portfolio_status.py +83 -0
- git_contribution_analyzer/application/use_cases/get_run.py +16 -0
- git_contribution_analyzer/application/use_cases/get_status.py +69 -0
- git_contribution_analyzer/application/use_cases/index_repository.py +267 -0
- git_contribution_analyzer/application/use_cases/init_portfolio.py +89 -0
- git_contribution_analyzer/application/use_cases/init_project.py +71 -0
- git_contribution_analyzer/application/use_cases/list_identities.py +16 -0
- git_contribution_analyzer/application/use_cases/list_providers.py +29 -0
- git_contribution_analyzer/application/use_cases/list_runs.py +17 -0
- git_contribution_analyzer/application/use_cases/manage_identity_merges.py +48 -0
- git_contribution_analyzer/application/use_cases/manage_outcomes.py +189 -0
- git_contribution_analyzer/application/use_cases/manage_structural_baselines.py +262 -0
- git_contribution_analyzer/application/use_cases/map_identity.py +28 -0
- git_contribution_analyzer/application/use_cases/recover_runs.py +22 -0
- git_contribution_analyzer/application/use_cases/run_doctor.py +81 -0
- git_contribution_analyzer/application/use_cases/sync_portfolio.py +232 -0
- git_contribution_analyzer/application/use_cases/test_provider.py +22 -0
- git_contribution_analyzer/application/use_cases/uninit_project.py +23 -0
- git_contribution_analyzer/application/use_cases/verify_portfolio.py +165 -0
- git_contribution_analyzer/cli/__init__.py +1 -0
- git_contribution_analyzer/cli/app.py +1430 -0
- git_contribution_analyzer/cli/exit_codes.py +13 -0
- git_contribution_analyzer/cli/output.py +26 -0
- git_contribution_analyzer/cli/portfolio_commands.py +629 -0
- git_contribution_analyzer/domain/__init__.py +1 -0
- git_contribution_analyzer/domain/errors.py +55 -0
- git_contribution_analyzer/domain/models/__init__.py +3 -0
- git_contribution_analyzer/domain/models/analysis.py +29 -0
- git_contribution_analyzer/domain/models/assessment.py +12 -0
- git_contribution_analyzer/domain/models/brag.py +148 -0
- git_contribution_analyzer/domain/models/contribution.py +55 -0
- git_contribution_analyzer/domain/models/git_history.py +69 -0
- git_contribution_analyzer/domain/models/person_selection.py +46 -0
- git_contribution_analyzer/domain/models/portfolio.py +498 -0
- git_contribution_analyzer/domain/models/ranking.py +48 -0
- git_contribution_analyzer/domain/models/recap.py +235 -0
- git_contribution_analyzer/domain/models/repository.py +10 -0
- git_contribution_analyzer/domain/models/resume.py +59 -0
- git_contribution_analyzer/domain/models/run.py +10 -0
- git_contribution_analyzer/domain/models/semantic.py +34 -0
- git_contribution_analyzer/domain/models/snapshot.py +208 -0
- git_contribution_analyzer/domain/models/structural_baseline.py +120 -0
- git_contribution_analyzer/domain/models/work_assessment.py +81 -0
- git_contribution_analyzer/domain/services/assessment_periods.py +182 -0
- git_contribution_analyzer/domain/services/brag_rules.py +250 -0
- git_contribution_analyzer/domain/services/capability_rules.py +91 -0
- git_contribution_analyzer/domain/services/contribution_clustering.py +98 -0
- git_contribution_analyzer/domain/services/contribution_rules.py +79 -0
- git_contribution_analyzer/domain/services/difficulty_rules.py +191 -0
- git_contribution_analyzer/domain/services/dimensional_summary.py +117 -0
- git_contribution_analyzer/domain/services/portfolio_aggregation.py +250 -0
- git_contribution_analyzer/domain/services/portfolio_resume_rules.py +265 -0
- git_contribution_analyzer/domain/services/portfolio_verifier.py +238 -0
- git_contribution_analyzer/domain/services/ranking_rules.py +226 -0
- git_contribution_analyzer/domain/services/recap_rules.py +268 -0
- git_contribution_analyzer/domain/services/resume_claim_rules.py +70 -0
- git_contribution_analyzer/domain/services/structural_baseline.py +317 -0
- git_contribution_analyzer/domain/services/structural_signals.py +151 -0
- git_contribution_analyzer/domain/services/workload_rules.py +185 -0
- git_contribution_analyzer/gui/__init__.py +1 -0
- git_contribution_analyzer/gui/qml/Main.qml +1141 -0
- git_contribution_analyzer/gui/qml/__init__.py +1 -0
- git_contribution_analyzer/prompts/__init__.py +1 -0
- git_contribution_analyzer/prompts/assessment/__init__.py +1 -0
- git_contribution_analyzer/prompts/assessment/v1/__init__.py +1 -0
- git_contribution_analyzer/prompts/assessment/v1/explanation.txt +4 -0
- git_contribution_analyzer/prompts/resume/__init__.py +1 -0
- git_contribution_analyzer/prompts/resume/v1/__init__.py +1 -0
- git_contribution_analyzer/prompts/resume/v1/style-concise.txt +1 -0
- git_contribution_analyzer/prompts/resume/v1/style-star.txt +1 -0
- git_contribution_analyzer/prompts/resume/v1/style-xyz.txt +1 -0
- git_contribution_analyzer/prompts/resume/v1/system.txt +3 -0
- git_contribution_analyzer/prompts/v1/__init__.py +1 -0
- git_contribution_analyzer/prompts/v1/capability_explanation.txt +2 -0
- git_contribution_analyzer/prompts/v1/contribution_summary.txt +2 -0
- git_contribution_analyzer/prompts/v1/overall_summary.txt +2 -0
- git_contribution_analyzer/prompts/v1/resume_bullet.txt +2 -0
- git_contribution_analyzer-0.8.0.dist-info/METADATA +667 -0
- git_contribution_analyzer-0.8.0.dist-info/RECORD +187 -0
- git_contribution_analyzer-0.8.0.dist-info/WHEEL +4 -0
- git_contribution_analyzer-0.8.0.dist-info/entry_points.txt +3 -0
- git_contribution_analyzer-0.8.0.dist-info/licenses/LICENSE +201 -0
- git_contribution_analyzer-0.8.0.dist-info/licenses/NOTICE +6 -0
|
@@ -0,0 +1,667 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: git-contribution-analyzer
|
|
3
|
+
Version: 0.8.0
|
|
4
|
+
Summary: Evidence-backed Git contribution analysis with pluggable LLM providers.
|
|
5
|
+
Project-URL: Homepage, https://github.com/PANZERLEADER/git-contribution-analyzer
|
|
6
|
+
Project-URL: Repository, https://github.com/PANZERLEADER/git-contribution-analyzer
|
|
7
|
+
Project-URL: Documentation, https://github.com/PANZERLEADER/git-contribution-analyzer#readme
|
|
8
|
+
Project-URL: Changelog, https://github.com/PANZERLEADER/git-contribution-analyzer/blob/main/CHANGELOG.md
|
|
9
|
+
Project-URL: Issues, https://github.com/PANZERLEADER/git-contribution-analyzer/issues
|
|
10
|
+
Author: Git Contribution Analyzer Contributors
|
|
11
|
+
License: Apache License
|
|
12
|
+
Version 2.0, January 2004
|
|
13
|
+
http://www.apache.org/licenses/
|
|
14
|
+
|
|
15
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
16
|
+
|
|
17
|
+
1. Definitions.
|
|
18
|
+
|
|
19
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
20
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
21
|
+
|
|
22
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
23
|
+
the copyright owner that is granting the License.
|
|
24
|
+
|
|
25
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
26
|
+
other entities that control, are controlled by, or are under common
|
|
27
|
+
control with that entity. For the purposes of this definition,
|
|
28
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
29
|
+
direction or management of such entity, whether by contract or
|
|
30
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
31
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
32
|
+
|
|
33
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
34
|
+
exercising permissions granted by this License.
|
|
35
|
+
|
|
36
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
37
|
+
including but not limited to software source code, documentation
|
|
38
|
+
source, and configuration files.
|
|
39
|
+
|
|
40
|
+
"Object" form shall mean any form resulting from mechanical
|
|
41
|
+
transformation or translation of a Source form, including but
|
|
42
|
+
not limited to compiled object code, generated documentation,
|
|
43
|
+
and conversions to other media types.
|
|
44
|
+
|
|
45
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
46
|
+
Object form, made available under the License, as indicated by a
|
|
47
|
+
copyright notice that is included in or attached to the work
|
|
48
|
+
(an example is provided in the Appendix below).
|
|
49
|
+
|
|
50
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
51
|
+
form, that is based on (or derived from) the Work and for which the
|
|
52
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
53
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
54
|
+
of this License, Derivative Works shall not include works that remain
|
|
55
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
56
|
+
the Work and Derivative Works thereof.
|
|
57
|
+
|
|
58
|
+
"Contribution" shall mean any work of authorship, including
|
|
59
|
+
the original version of the Work and any modifications or additions
|
|
60
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
61
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
62
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
63
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
64
|
+
means any form of electronic, verbal, or written communication sent
|
|
65
|
+
to the Licensor or its representatives, including but not limited to
|
|
66
|
+
communication on electronic mailing lists, source code control systems,
|
|
67
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
68
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
69
|
+
excluding communication that is conspicuously marked or otherwise
|
|
70
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
71
|
+
|
|
72
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
73
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
74
|
+
subsequently incorporated within the Work.
|
|
75
|
+
|
|
76
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
77
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
78
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
79
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
80
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
81
|
+
Work and such Derivative Works in Source or Object form.
|
|
82
|
+
|
|
83
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
84
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
85
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
86
|
+
(except as stated in this section) patent license to make, have made,
|
|
87
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
88
|
+
where such license applies only to those patent claims licensable
|
|
89
|
+
by such Contributor that are necessarily infringed by their
|
|
90
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
91
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
92
|
+
institute patent litigation against any entity (including a
|
|
93
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
94
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
95
|
+
or contributory patent infringement, then any patent licenses
|
|
96
|
+
granted to You under this License for that Work shall terminate
|
|
97
|
+
as of the date such litigation is filed.
|
|
98
|
+
|
|
99
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
100
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
101
|
+
modifications, and in Source or Object form, provided that You
|
|
102
|
+
meet the following conditions:
|
|
103
|
+
|
|
104
|
+
(a) You must give any other recipients of the Work or
|
|
105
|
+
Derivative Works a copy of this License; and
|
|
106
|
+
|
|
107
|
+
(b) You must cause any modified files to carry prominent notices
|
|
108
|
+
stating that You changed the files; and
|
|
109
|
+
|
|
110
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
111
|
+
that You distribute, all copyright, patent, trademark, and
|
|
112
|
+
attribution notices from the Source form of the Work,
|
|
113
|
+
excluding those notices that do not pertain to any part of
|
|
114
|
+
the Derivative Works; and
|
|
115
|
+
|
|
116
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
117
|
+
distribution, then any Derivative Works that You distribute must
|
|
118
|
+
include a readable copy of the attribution notices contained
|
|
119
|
+
within such NOTICE file, excluding those notices that do not
|
|
120
|
+
pertain to any part of the Derivative Works, in at least one
|
|
121
|
+
of the following places: within a NOTICE text file distributed
|
|
122
|
+
as part of the Derivative Works; within the Source form or
|
|
123
|
+
documentation, if provided along with the Derivative Works; or,
|
|
124
|
+
within a display generated by the Derivative Works, if and
|
|
125
|
+
wherever such third-party notices normally appear. The contents
|
|
126
|
+
of the NOTICE file are for informational purposes only and
|
|
127
|
+
do not modify the License. You may add Your own attribution
|
|
128
|
+
notices within Derivative Works that You distribute, alongside
|
|
129
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
130
|
+
that such additional attribution notices cannot be construed
|
|
131
|
+
as modifying the License.
|
|
132
|
+
|
|
133
|
+
You may add Your own copyright statement to Your modifications and
|
|
134
|
+
may provide additional or different license terms and conditions
|
|
135
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
136
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
137
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
138
|
+
the conditions stated in this License.
|
|
139
|
+
|
|
140
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
141
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
142
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
143
|
+
this License, without any additional terms or conditions.
|
|
144
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
145
|
+
the terms of any separate license agreement you may have executed
|
|
146
|
+
with Licensor regarding such Contributions.
|
|
147
|
+
|
|
148
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
149
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
150
|
+
except as required for reasonable and customary use in describing the
|
|
151
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
152
|
+
|
|
153
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
154
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
155
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
156
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
157
|
+
implied, including, without limitation, any warranties or conditions
|
|
158
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
159
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
160
|
+
appropriateness of using or redistributing the Work and assume any
|
|
161
|
+
risks associated with Your exercise of permissions under this License.
|
|
162
|
+
|
|
163
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
164
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
165
|
+
unless required by applicable law (such as deliberate and grossly
|
|
166
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
167
|
+
liable to You for damages, including any direct, indirect, special,
|
|
168
|
+
incidental, or consequential damages of any character arising as a
|
|
169
|
+
result of this License or out of the use or inability to use the
|
|
170
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
171
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
172
|
+
other commercial damages or losses), even if such Contributor
|
|
173
|
+
has been advised of the possibility of such damages.
|
|
174
|
+
|
|
175
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
176
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
177
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
178
|
+
or other liability obligations and/or rights consistent with this
|
|
179
|
+
License. However, in accepting such obligations, You may act only
|
|
180
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
181
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
182
|
+
defend, and hold each Contributor harmless for any liability
|
|
183
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
184
|
+
of your accepting any such warranty or additional liability.
|
|
185
|
+
|
|
186
|
+
END OF TERMS AND CONDITIONS
|
|
187
|
+
|
|
188
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
189
|
+
|
|
190
|
+
To apply the Apache License to your work, attach the following
|
|
191
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
192
|
+
replaced with your own identifying information. (Don't include
|
|
193
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
194
|
+
comment syntax for the file format. We also recommend that a
|
|
195
|
+
file or class name and description of purpose be included on the
|
|
196
|
+
same "printed page" as the copyright notice for easier
|
|
197
|
+
identification within third-party archives.
|
|
198
|
+
|
|
199
|
+
Copyright [yyyy] [name of copyright owner]
|
|
200
|
+
|
|
201
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
202
|
+
you may not use this file except in compliance with the License.
|
|
203
|
+
You may obtain a copy of the License at
|
|
204
|
+
|
|
205
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
206
|
+
|
|
207
|
+
Unless required by applicable law or agreed to in writing, software
|
|
208
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
209
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
210
|
+
See the License for the specific language governing permissions and
|
|
211
|
+
limitations under the License.
|
|
212
|
+
License-File: LICENSE
|
|
213
|
+
License-File: NOTICE
|
|
214
|
+
Keywords: brag-document,contribution-analysis,developer-tools,git,mcp,model-context-protocol,recap,resume
|
|
215
|
+
Classifier: Development Status :: 4 - Beta
|
|
216
|
+
Classifier: Environment :: Console
|
|
217
|
+
Classifier: Environment :: MacOS X
|
|
218
|
+
Classifier: Environment :: Win32 (MS Windows)
|
|
219
|
+
Classifier: Environment :: X11 Applications :: Qt
|
|
220
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
221
|
+
Classifier: Programming Language :: Python :: 3
|
|
222
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
223
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
224
|
+
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
225
|
+
Requires-Python: >=3.12
|
|
226
|
+
Requires-Dist: alembic<2,>=1.14
|
|
227
|
+
Requires-Dist: httpx<1,>=0.28
|
|
228
|
+
Requires-Dist: platformdirs<5,>=4.3
|
|
229
|
+
Requires-Dist: portalocker<5,>=3.1
|
|
230
|
+
Requires-Dist: pydantic-settings<3,>=2.7
|
|
231
|
+
Requires-Dist: pydantic<3,>=2.10
|
|
232
|
+
Requires-Dist: pydriller<3,>=2.7
|
|
233
|
+
Requires-Dist: pyyaml<7,>=6.0
|
|
234
|
+
Requires-Dist: rich<16,>=13.9
|
|
235
|
+
Requires-Dist: sqlalchemy<3,>=2.0
|
|
236
|
+
Requires-Dist: typer<1,>=0.16
|
|
237
|
+
Provides-Extra: dev
|
|
238
|
+
Requires-Dist: build<2,>=1.2; extra == 'dev'
|
|
239
|
+
Requires-Dist: jsonschema<5,>=4.23; extra == 'dev'
|
|
240
|
+
Requires-Dist: mypy<3,>=1.14; extra == 'dev'
|
|
241
|
+
Requires-Dist: pre-commit<5,>=4.1; extra == 'dev'
|
|
242
|
+
Requires-Dist: pytest-cov<8,>=6; extra == 'dev'
|
|
243
|
+
Requires-Dist: pytest<10,>=8.3; extra == 'dev'
|
|
244
|
+
Requires-Dist: ruff<1,>=0.9; extra == 'dev'
|
|
245
|
+
Requires-Dist: types-pyyaml<7,>=6.0; extra == 'dev'
|
|
246
|
+
Provides-Extra: gui
|
|
247
|
+
Requires-Dist: pyside6<7,>=6.8; extra == 'gui'
|
|
248
|
+
Provides-Extra: release
|
|
249
|
+
Requires-Dist: pyinstaller<7,>=6.11; extra == 'release'
|
|
250
|
+
Description-Content-Type: text/markdown
|
|
251
|
+
|
|
252
|
+
# Git Contribution Analyzer
|
|
253
|
+
|
|
254
|
+
[简体中文](README.zh-CN.md) | [Live Interactive HTML Demo](https://panzerleader.github.io/git-contribution-analyzer/) | [Installation](doc/guides/installation.md) | [MCP 2.0 Guide](doc/guides/mcp-guide.md) | [Releases](https://github.com/PANZERLEADER/git-contribution-analyzer/releases)
|
|
255
|
+
|
|
256
|
+

|
|
257
|
+
|
|
258
|
+
GCA is a local, evidence-backed Git contribution analysis tool with a zero-friction `gca` CLI, a
|
|
259
|
+
zero-extra-dependency read-only **MCP 2.0 Server** (tools, prompts & resources), a local **Brag
|
|
260
|
+
Document & Verified Outcomes ledger**, self-contained interactive **HTML reports**, and an optional
|
|
261
|
+
cross-platform `gca-gui` desktop application. It separates deterministic repository facts from
|
|
262
|
+
rule-based and LLM-assisted interpretation.
|
|
263
|
+
|
|
264
|
+
The **0.8.0** release completes the daily-to-annual developer memory loop and AI agent ecosystem:
|
|
265
|
+
|
|
266
|
+
- **10-Second Zero-Friction Recaps (`gca recap --open`)**: Run directly inside any Git repo with
|
|
267
|
+
zero setup — GCA auto-detects local `git config user.email`, auto-initializes or incrementally
|
|
268
|
+
syncs `.gca/`, defaults to a 7-day window (`today`, `yesterday`, `7d`, `14d`, `30d`, `week`,
|
|
269
|
+
`month`, `quarter`), separates `LANDED+RELEASED` from `AUTHORED_ONLY`, and opens an offline
|
|
270
|
+
interactive HTML report in your browser.
|
|
271
|
+
- **Brag Document & Verified Outcomes Ledger (`gca outcome` & `gca brag`)**: Record verified
|
|
272
|
+
business/performance metrics linked to real `EV-xxx` / `<repoKey>:EV-xxx` evidence IDs (with
|
|
273
|
+
offline existence verification), auto-load them during `gca resume`, and export quarterly or
|
|
274
|
+
annual Brag Documents (`--year 2026`, `--quarter 2026-Q3`, `--format html --open`).
|
|
275
|
+
- **Read-Only Stdlib MCP 2.0 Server (`gca serve --mcp` + `gca install-agent`)**: Expose 7
|
|
276
|
+
privacy-safe tools (now supporting **both single repositories and multi-repo portfolios** with
|
|
277
|
+
auto-inferred local identity), **4 built-in MCP Prompts** (`standup-recap`, `weekly-report`,
|
|
278
|
+
`brag-doc`, `audit-resume-claims`), and **2 read-only MCP Resources** to Antigravity, Claude
|
|
279
|
+
Code, OpenAI Codex, and Cursor with zero extra third-party runtime dependencies.
|
|
280
|
+
- **Self-Contained Interactive HTML & Aligned Desktop GUI (`--format html` & `gca-gui`)**: Zero-CDN
|
|
281
|
+
single-file HTML exports with light/dark theme toggle, SVG charts, search/group filters,
|
|
282
|
+
clickable evidence drawer, and PDF print styles — now fully aligned inside the `gca-gui` desktop
|
|
283
|
+
workbench (Recap & Brag page, Outcomes ledger, and HTML export).
|
|
284
|
+
|
|
285
|
+
[Live Demo Gallery](https://panzerleader.github.io/git-contribution-analyzer/) |
|
|
286
|
+
[MCP 2.0 Guide](doc/guides/mcp-guide.md) |
|
|
287
|
+
[Open-Source Spotlight Action](doc/guides/github-actions-spotlight.md) |
|
|
288
|
+
[Contributing](CONTRIBUTING.md) | [Security](SECURITY.md) |
|
|
289
|
+
[Code of Conduct](CODE_OF_CONDUCT.md)
|
|
290
|
+
|
|
291
|
+

|
|
292
|
+
|
|
293
|
+
## Why GCA vs. Raw LLM Prompts?
|
|
294
|
+
|
|
295
|
+
| Capability | Raw LLM over `git log` | GCA (`0.8.0`) |
|
|
296
|
+
|---|---|---|
|
|
297
|
+
| Delivered vs. unmerged branches | Often conflated | Strictly separates `LANDED+RELEASED` vs `AUTHORED_ONLY` |
|
|
298
|
+
| Multi-email & multi-repo merging | Manual / double-counted | Deterministic identity normalization & `<repoKey>:EV-xxx` |
|
|
299
|
+
| Fabricated metrics / claims | Frequent hallucinations | Claim-strength ceilings + signed `outcomes.yml` + `gca_verify_citations` |
|
|
300
|
+
| Privacy & offline sharing | Sends raw diffs to cloud | Local-first SQLite, zero-CDN HTML, no source diffs or emails |
|
|
301
|
+
|
|
302
|
+
## 10-Second Quick Start
|
|
303
|
+
|
|
304
|
+
```powershell
|
|
305
|
+
# Run ephemerally in ANY local Git repo (auto-detects git user.email, auto-indexes .gca, opens HTML)
|
|
306
|
+
uvx --from git-contribution-analyzer gca recap --open
|
|
307
|
+
|
|
308
|
+
# Or install globally with pipx
|
|
309
|
+
pipx install git-contribution-analyzer
|
|
310
|
+
gca recap --window today
|
|
311
|
+
gca recap --window 7d --open
|
|
312
|
+
|
|
313
|
+
# Record a verified metric linked to Git evidence and export an annual Brag Document
|
|
314
|
+
gca outcome add --text "Cut checkout P95 latency from 420ms to 180ms" `
|
|
315
|
+
--source "benchmark-2026.md" --verified-by "tech-lead" --evidence EV-001
|
|
316
|
+
gca brag --year 2026 --open
|
|
317
|
+
|
|
318
|
+
# Preview or install read-only MCP 2.0 config for Antigravity / Codex / Claude / Cursor
|
|
319
|
+
gca install-agent --target antigravity --workspace .
|
|
320
|
+
gca install-agent --target antigravity --workspace . --apply
|
|
321
|
+
|
|
322
|
+
# Build the sanitized offline HTML & Markdown Live Demo Gallery locally
|
|
323
|
+
python scripts/build_public_demo.py --output dist/public-demo
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
## Development
|
|
327
|
+
|
|
328
|
+
```powershell
|
|
329
|
+
python -m venv .venv
|
|
330
|
+
.\.venv\Scripts\python.exe -m pip install -e ".[dev]"
|
|
331
|
+
.\.venv\Scripts\gca.exe --help
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
Install and run the optional desktop application:
|
|
335
|
+
|
|
336
|
+
```powershell
|
|
337
|
+
.\.venv\Scripts\python.exe -m pip install -e ".[dev,gui]"
|
|
338
|
+
.\.venv\Scripts\gca-gui.exe
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
For repository-local symbol search, impact analysis, and architecture visualization, see the
|
|
342
|
+
[CodeGraph and Understand-Anything guide](doc/guides/code-intelligence.md).
|
|
343
|
+
|
|
344
|
+
## Current CLI
|
|
345
|
+
|
|
346
|
+
```powershell
|
|
347
|
+
# Initialize a repository-local workspace and build the first Git index.
|
|
348
|
+
gca init D:\path\to\repository
|
|
349
|
+
|
|
350
|
+
# Rebuild the deterministic Git index or synchronize new commits and changed refs.
|
|
351
|
+
gca index D:\path\to\repository --json
|
|
352
|
+
gca sync D:\path\to\repository --json
|
|
353
|
+
|
|
354
|
+
# Inspect normalized identities and confirm an alias mapping.
|
|
355
|
+
gca identities list D:\path\to\repository --json
|
|
356
|
+
gca identities map D:\path\to\repository `
|
|
357
|
+
--name "Old Name" `
|
|
358
|
+
--email "old@example.com" `
|
|
359
|
+
--person-name "Canonical Name" `
|
|
360
|
+
--person-email "canonical@example.com" `
|
|
361
|
+
--json
|
|
362
|
+
|
|
363
|
+
# Read workspace and index health as versioned JSON.
|
|
364
|
+
gca status D:\path\to\repository --json
|
|
365
|
+
gca doctor D:\path\to\repository --json
|
|
366
|
+
|
|
367
|
+
# Build and inspect an observation-only historical structural baseline.
|
|
368
|
+
gca structural rebuild D:\path\to\repository `
|
|
369
|
+
--cutoff 2026-07-01T00:00:00Z `
|
|
370
|
+
--time-strategy lifetime --json
|
|
371
|
+
gca structural status D:\path\to\repository --json
|
|
372
|
+
gca structural show D:\path\to\repository --baseline <baseline-id> --json
|
|
373
|
+
gca structural prune D:\path\to\repository --keep 8 --yes --json
|
|
374
|
+
|
|
375
|
+
# Generate deterministic contribution evidence without an LLM.
|
|
376
|
+
gca analyze D:\path\to\repository `
|
|
377
|
+
--person alice@example.com `
|
|
378
|
+
--since 2026-01-01 `
|
|
379
|
+
--until 2026-06-30 `
|
|
380
|
+
--no-llm `
|
|
381
|
+
--json
|
|
382
|
+
|
|
383
|
+
# Analyze every indexed Git identity, including identities not yet confirmed.
|
|
384
|
+
gca analyze D:\path\to\repository --all --no-llm --json
|
|
385
|
+
|
|
386
|
+
# Assess completed workload and deterministic engineering difficulty.
|
|
387
|
+
gca assess D:\path\to\repository `
|
|
388
|
+
--person alice@example.com `
|
|
389
|
+
--person bob@example.com `
|
|
390
|
+
--since 2026-01-01 `
|
|
391
|
+
--no-llm `
|
|
392
|
+
--json
|
|
393
|
+
gca assess D:\path\to\repository --all `
|
|
394
|
+
--exclude-person ci@example.com `
|
|
395
|
+
--no-llm --json
|
|
396
|
+
|
|
397
|
+
# Build calendar month trends; week and quarter are also supported.
|
|
398
|
+
gca assess D:\path\to\repository --all `
|
|
399
|
+
--since 2025-01-01 --until 2026-12-31 `
|
|
400
|
+
--period month --time-basis landed --no-llm --json
|
|
401
|
+
|
|
402
|
+
# Compare two historical work assessment runs.
|
|
403
|
+
gca runs compare <base-run-id> <target-run-id> D:\path\to\repository --json
|
|
404
|
+
|
|
405
|
+
# Generate evidence-backed resume candidates for one confirmed person.
|
|
406
|
+
gca resume D:\path\to\repository `
|
|
407
|
+
--person alice@example.com `
|
|
408
|
+
--target-role "Senior Backend Engineer" `
|
|
409
|
+
--language en-US `
|
|
410
|
+
--style concise `
|
|
411
|
+
--max-bullets 6 `
|
|
412
|
+
--no-llm `
|
|
413
|
+
--json
|
|
414
|
+
|
|
415
|
+
# Inspect the built-in providers and test the selected provider.
|
|
416
|
+
gca providers list D:\path\to\repository --json
|
|
417
|
+
gca providers test D:\path\to\repository --json
|
|
418
|
+
|
|
419
|
+
# Inspect and replay persisted analysis runs.
|
|
420
|
+
gca runs list D:\path\to\repository --json
|
|
421
|
+
gca runs show <run-id> D:\path\to\repository --json
|
|
422
|
+
|
|
423
|
+
# Rebuild reports from a persisted run.
|
|
424
|
+
gca report D:\path\to\repository --run latest --format markdown
|
|
425
|
+
gca report D:\path\to\repository --run latest --format json --output report.json
|
|
426
|
+
|
|
427
|
+
# Remove only the repository-local .gca workspace.
|
|
428
|
+
gca uninit D:\path\to\repository --yes
|
|
429
|
+
|
|
430
|
+
# Manage and analyze a multi-repository portfolio.
|
|
431
|
+
gca portfolio init D:\path\to\portfolio --scan-root D:\path\to\repos --group core --json
|
|
432
|
+
gca portfolio status D:\path\to\portfolio --json
|
|
433
|
+
gca portfolio sync D:\path\to\portfolio --concurrency 4 --verbose --json
|
|
434
|
+
gca portfolio assess D:\path\to\portfolio --person alice@example.com --no-llm --format html --output summary.html --json
|
|
435
|
+
gca portfolio resume D:\path\to\portfolio --person alice@example.com --target-role "Backend Engineer" --no-llm --format html --output resume.html --json
|
|
436
|
+
gca portfolio recap D:\path\to\portfolio --person alice@example.com --window 7d --format html --output recap.html --json
|
|
437
|
+
gca portfolio verify D:\path\to\portfolio --run latest --resume-file resume.md --json
|
|
438
|
+
|
|
439
|
+
# Serve read-only MCP tools over stdio (workspace allowlist required).
|
|
440
|
+
gca serve --mcp --workspace D:\path\to\portfolio
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
Phase 2 indexes refs, commits, parent relationships, file changes, identities, stable
|
|
444
|
+
patch IDs, target-branch reachability, release tags, cherry-picks, and reverts. The index
|
|
445
|
+
is stored under the analyzed repository's `.gca/` directory and is ignored locally through
|
|
446
|
+
`.git/info/exclude`; GCA does not modify source files or Git history.
|
|
447
|
+
|
|
448
|
+
Git facts and the deterministic contribution analysis do not depend on an LLM.
|
|
449
|
+
Analysis runs persist their parameters, Git baseline, rule version, Contribution Items,
|
|
450
|
+
capability assessments, Evidence, and versioned report JSON. Phase 4 adds pluggable Mock,
|
|
451
|
+
OpenAI-compatible, Anthropic, Ollama, Codex CLI, and Claude CLI providers for semantic
|
|
452
|
+
summaries, capability explanations, and resume candidates. Providers cannot replace or modify
|
|
453
|
+
deterministic facts.
|
|
454
|
+
|
|
455
|
+
## LLM Providers
|
|
456
|
+
|
|
457
|
+
LLM use is disabled by default. Enable it in the analyzed repository's `.gca/config.yml`:
|
|
458
|
+
|
|
459
|
+
```yaml
|
|
460
|
+
llm:
|
|
461
|
+
enabled: true
|
|
462
|
+
provider: openai-compatible
|
|
463
|
+
model: gpt-4.1-mini
|
|
464
|
+
baseUrl: https://api.openai.com/v1
|
|
465
|
+
apiKeyEnv: GCA_LLM_API_KEY
|
|
466
|
+
timeoutSeconds: 30.0
|
|
467
|
+
maxRetries: 2
|
|
468
|
+
allowFallbackToRules: true
|
|
469
|
+
```
|
|
470
|
+
|
|
471
|
+
Set the referenced environment variable outside the repository. Never put the key value in
|
|
472
|
+
`.gca/config.yml`. CLI flags are intentionally not provided for key values.
|
|
473
|
+
|
|
474
|
+
`gca analyze --no-llm` is always offline and deterministic. With LLM enabled, every invocation
|
|
475
|
+
records a request hash, Provider/model, Prompt/Schema versions, attempts, latency, status, error
|
|
476
|
+
code, and cache-hit state. Prompts, API keys, Authorization headers, and source bodies are not
|
|
477
|
+
stored. Provider failures produce a `PARTIAL` deterministic report when fallback is allowed;
|
|
478
|
+
otherwise `analyze` exits with code `6` and persists a failed run.
|
|
479
|
+
|
|
480
|
+
The same Provider configuration is used by `assess` and `resume`. Work assessment uses the
|
|
481
|
+
independent `assessment-explanation-v1` task; resume generation uses `resume-v1`. Provider
|
|
482
|
+
output cannot alter completion, size, difficulty, Evidence, or the deterministic claim-strength
|
|
483
|
+
ceiling. With fallback enabled, assessment retains its deterministic result and resume retains
|
|
484
|
+
its conservative template.
|
|
485
|
+
|
|
486
|
+
To reuse an authenticated coding CLI instead of an API key:
|
|
487
|
+
|
|
488
|
+
```yaml
|
|
489
|
+
llm:
|
|
490
|
+
enabled: true
|
|
491
|
+
provider: codex-cli # or claude-cli
|
|
492
|
+
model: configured-default
|
|
493
|
+
executable: null # auto-discover, or set an absolute wrapper/executable path
|
|
494
|
+
commandTimeoutSeconds: 300
|
|
495
|
+
allowFallbackToRules: true
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
Command Providers run in an isolated temporary directory. Repository source is not made
|
|
499
|
+
available to the agent: GCA passes only its minimized semantic task over stdin. Codex runs
|
|
500
|
+
ephemerally with a read-only sandbox and MCP disabled; Claude runs without tools, MCP, Chrome,
|
|
501
|
+
or session persistence. Existing CLI authentication and model-provider configuration are reused.
|
|
502
|
+
|
|
503
|
+
See [`doc/guides/provider-guide.md`](doc/guides/provider-guide.md) for all providers and
|
|
504
|
+
environment precedence.
|
|
505
|
+
|
|
506
|
+
## Index Semantics
|
|
507
|
+
|
|
508
|
+
- `AUTHORED_ONLY`: the commit is indexed but is not reachable from the configured target branch.
|
|
509
|
+
- `LANDED`: the commit is reachable from the target branch.
|
|
510
|
+
- `RELEASED`: the commit is reachable from the target branch and at least one release tag.
|
|
511
|
+
- `REVERTED`: a landed or released commit is linked to a landed revert commit.
|
|
512
|
+
- Matching stable patch IDs link an authored-only cherry-pick source to delivered work without
|
|
513
|
+
counting it as a second delivery.
|
|
514
|
+
|
|
515
|
+
Exact email and `.mailmap` mappings are deterministic. Fuzzy name matches are never merged
|
|
516
|
+
automatically; use `gca identities map` to confirm ambiguous aliases.
|
|
517
|
+
|
|
518
|
+
## Deterministic Analysis
|
|
519
|
+
|
|
520
|
+
`gca analyze` accepts either one confirmed Person through `--person` or every indexed Git
|
|
521
|
+
identity through `--all --no-llm`. Project analysis deliberately keeps unconfirmed identities
|
|
522
|
+
separate and emits identity warnings instead of silently merging or excluding them. Both modes
|
|
523
|
+
support inclusive date/time, branch, release tag, path scope, and delivery-status filters.
|
|
524
|
+
|
|
525
|
+
Person and project reports contain separate technical and business summaries. Technical
|
|
526
|
+
summaries cover modules, change types, and evidence-backed capability signals. Business domains
|
|
527
|
+
are deterministically inferred from conventional commit scopes, issue keys, and module fallback
|
|
528
|
+
clusters. They are labels for work areas, not claims about revenue, customer value, business
|
|
529
|
+
ownership, or individual performance.
|
|
530
|
+
|
|
531
|
+
Analysis reports also expose versioned structural signals derived from commit-level path sets.
|
|
532
|
+
Pairs require at least two repeated co-change commits; hotspots require at least two change
|
|
533
|
+
commits and are ordered by change concentration plus repeated coupling. Merge commits, generated
|
|
534
|
+
paths, binary-only changes, and duplicate patches are excluded. Structural signals are auditable
|
|
535
|
+
repository observations and do not alter workload, difficulty, ranking, or performance conclusions.
|
|
536
|
+
|
|
537
|
+
Every Contribution Item and capability claim references an Evidence ID. Reports explicitly
|
|
538
|
+
state that Git evidence does not prove business outcome, sole ownership, or employee value.
|
|
539
|
+
Optional ranking uses published workload, difficulty, and delivery rules; commit and raw line
|
|
540
|
+
counts do not directly determine the score.
|
|
541
|
+
|
|
542
|
+
Shared or system accounts require manual review. If one email is used by both a person and an
|
|
543
|
+
automation identity, do not use the combined Person for individual performance conclusions.
|
|
544
|
+
|
|
545
|
+
## Historical Structural Observations
|
|
546
|
+
|
|
547
|
+
`gca structural rebuild` materializes file-change frequencies and repeated file co-change
|
|
548
|
+
relationships from local indexed Git history strictly before an exclusive cutoff. Baseline IDs
|
|
549
|
+
include repository, branch, scope, cutoff and versioned rule configuration. Nonzero occurrences
|
|
550
|
+
are retained so a low-frequency edge can cross a candidate threshold after later syncs. Lifetime,
|
|
551
|
+
rolling-window and dual-window views are supported; coupling output includes conditional ratios,
|
|
552
|
+
Jaccard and a hub penalty rather than treating every shared utility file as a dependency.
|
|
553
|
+
|
|
554
|
+
This surface is observation-only. It does not modify `difficulty-rules-v1`, workload, delivery,
|
|
555
|
+
ranking, resume output or LLM context. New workspaces use the conservative
|
|
556
|
+
`community-baseline-v1` profile from `.gca/config.yml`; its automatic difficulty promotion switch is
|
|
557
|
+
fixed to `false`. The profile is ready for observation-only use without project-specific human
|
|
558
|
+
review. Empirical calibration and a repository-disjoint holdout are required only for a future rule
|
|
559
|
+
that automatically changes individual difficulty. The feature uses local Git and SQLite only, with
|
|
560
|
+
no Forge API or Hercules runtime dependency. The desktop Structure page exposes the same status,
|
|
561
|
+
rebuild, show and prune operations.
|
|
562
|
+
|
|
563
|
+
```yaml
|
|
564
|
+
structural:
|
|
565
|
+
profile: community-baseline-v1
|
|
566
|
+
timeStrategy: DUAL_WINDOW
|
|
567
|
+
minimumBaselineCommits: 50
|
|
568
|
+
hotspotPercentile: 0.95
|
|
569
|
+
minimumCoChangeCount: 3
|
|
570
|
+
minimumSubsetRatio: 0.8
|
|
571
|
+
minimumJaccard: 0.3
|
|
572
|
+
minimumHubPenalty: 0.5
|
|
573
|
+
maximumContextPaths: 100
|
|
574
|
+
rollingWindowDays: 365
|
|
575
|
+
automaticDifficultyPromotion: false
|
|
576
|
+
```
|
|
577
|
+
|
|
578
|
+
## Work Assessment
|
|
579
|
+
|
|
580
|
+
`gca assess` separates completed (`LANDED`/`RELEASED`), pending (`AUTHORED_ONLY`), rework, and
|
|
581
|
+
merge/integration activity. It reports `SMALL`, `MEDIUM`, `LARGE`, and `XLARGE` effective-change
|
|
582
|
+
bands separately from `ROUTINE`, `STANDARD`, `COMPLEX`, and `HIGH_RISK` engineering difficulty.
|
|
583
|
+
Merge diffs, matching patch IDs, generated/vendor/build output, lockfiles, and binary line counts
|
|
584
|
+
do not create duplicate workload. Difficulty is based on versioned data, distributed-system,
|
|
585
|
+
compatibility, impact, critical-domain, and delivery signals; raw line count cannot raise it.
|
|
586
|
+
|
|
587
|
+
`--time-basis` accepts `authored`, `committed`, `merged`, `landed`, and `released`. Landed time is
|
|
588
|
+
the target branch first-parent integration point, merged time includes only work introduced by a
|
|
589
|
+
merge commit, and released time is the tag creation time. `--period week|month|quarter` requires
|
|
590
|
+
both boundaries and emits persisted trends, period-over-period deltas, and year-over-year deltas
|
|
591
|
+
when the matching prior-year period is in range. Weeks start on Monday and partial boundary periods
|
|
592
|
+
are marked. Offset-free `--since` and `--until` values use the host system time zone; explicit `Z`
|
|
593
|
+
or numeric offsets remain authoritative, and calendar periods follow that local calendar. The Git
|
|
594
|
+
index and SQLite query bindings remain normalized to UTC. Run `gca index` once after upgrading so
|
|
595
|
+
old timestamps are rebuilt in UTC.
|
|
596
|
+
|
|
597
|
+
Assessment reports include technical and business summaries, Evidence IDs, rule versions,
|
|
598
|
+
confidence, and gaps. Repeatable `--rank-by` enables dense dimension rankings. An explicit
|
|
599
|
+
`--ranking-config` YAML can add a cohort-normalized weighted total; without it no total score is
|
|
600
|
+
generated. These values are review aids, not performance ratings, working-hours estimates,
|
|
601
|
+
compensation, or promotion recommendations. Persisted v2 runs can be exported with
|
|
602
|
+
`gca report --format csv`; email is omitted unless `--include-email` is supplied.
|
|
603
|
+
|
|
604
|
+
## Resume Generation
|
|
605
|
+
|
|
606
|
+
`gca resume` only accepts a confirmed Person and defaults to landed/released work. Every project
|
|
607
|
+
summary and experience bullet references Contribution Item and Evidence IDs. Claim strength is
|
|
608
|
+
limited to `CONTRIBUTED`, `IMPLEMENTED`, or `LED`; Git-only evidence never unlocks `LED`.
|
|
609
|
+
|
|
610
|
+
`--no-llm` generates a conservative template. Optional verified outcomes are loaded from a
|
|
611
|
+
strict UTF-8 YAML file:
|
|
612
|
+
|
|
613
|
+
```yaml
|
|
614
|
+
outcomes:
|
|
615
|
+
- id: OUT-001
|
|
616
|
+
text: API P95 latency reduced from 420ms to 180ms
|
|
617
|
+
source: benchmark-report-2026-04.md
|
|
618
|
+
verifiedBy: team-lead
|
|
619
|
+
verifiedAt: 2026-04-20
|
|
620
|
+
```
|
|
621
|
+
|
|
622
|
+
Percentages, revenue, user growth, online performance, and similar result numbers are rejected
|
|
623
|
+
unless the claim cites a verified outcome. Resume reports omit email addresses, other people,
|
|
624
|
+
team rankings, and internal difficulty comparisons. The legacy `semantic.resumeBullets` field
|
|
625
|
+
remains readable during 1.x but is deprecated; new integrations should use `gca resume`.
|
|
626
|
+
|
|
627
|
+
## Quality Checks
|
|
628
|
+
|
|
629
|
+
```powershell
|
|
630
|
+
.\.venv\Scripts\python.exe -m ruff check .
|
|
631
|
+
.\.venv\Scripts\python.exe -m mypy src
|
|
632
|
+
.\.venv\Scripts\python.exe -m pytest --cov=git_contribution_analyzer
|
|
633
|
+
.\.venv\Scripts\python.exe -m build
|
|
634
|
+
```
|
|
635
|
+
|
|
636
|
+
## Documentation
|
|
637
|
+
|
|
638
|
+
- [Simplified Chinese documentation](doc/zh-CN/README.md)
|
|
639
|
+
- [Architecture](doc/architecture/architecture.md)
|
|
640
|
+
- [Data model and migrations](doc/architecture/data-model.md)
|
|
641
|
+
- [CLI reference](doc/cli/cli-reference.md)
|
|
642
|
+
- [Installation, upgrade and removal](doc/guides/installation.md)
|
|
643
|
+
- [Read-only MCP server guide](doc/guides/mcp-guide.md)
|
|
644
|
+
- [CodeGraph and Understand-Anything](doc/guides/code-intelligence.md)
|
|
645
|
+
- [Assessment and resume methodology](doc/guides/methodology.md)
|
|
646
|
+
- [Privacy and provider data boundaries](doc/guides/privacy.md)
|
|
647
|
+
- [Golden dataset](doc/testing/golden-dataset.md)
|
|
648
|
+
- [Structural calibration protocol](doc/testing/structural-calibration.md)
|
|
649
|
+
- [Structural calibration decision](doc/reports/structural-calibration-report.md)
|
|
650
|
+
- [Open-source spotlight GitHub Action guide](doc/guides/github-actions-spotlight.md)
|
|
651
|
+
- [MCP Registry listing metadata](doc/guides/mcp-registry-listing.md)
|
|
652
|
+
- [0.8.0 release](doc/releases/0.8.0.md)
|
|
653
|
+
- [0.7.0 release](doc/releases/0.7.0.md)
|
|
654
|
+
- [0.6.1 release](doc/releases/0.6.1.md)
|
|
655
|
+
- [0.6.0 release](doc/releases/0.6.0.md)
|
|
656
|
+
- [0.5.1 release](doc/releases/0.5.1.md)
|
|
657
|
+
- [0.5.0 release](doc/releases/0.5.0.md)
|
|
658
|
+
- [0.4.1 release](doc/releases/0.4.1.md)
|
|
659
|
+
- [0.4.0 release](doc/releases/0.4.0.md)
|
|
660
|
+
- [0.3.0 release](doc/releases/0.3.0.md)
|
|
661
|
+
- [0.2.0 release](doc/releases/0.2.0.md)
|
|
662
|
+
- [0.1.0 release](doc/releases/0.1.0.md)
|
|
663
|
+
- [Performance baseline](doc/reports/performance-baseline.md)
|
|
664
|
+
- [Security and privacy audit](doc/reports/security-privacy-audit.md)
|
|
665
|
+
|
|
666
|
+
Release CI builds wheel/sdist, CLI standalone and GUI standalone artifacts on Windows, Linux and
|
|
667
|
+
macOS. The ordinary CI matrix also performs isolated wheel and repository lifecycle smoke tests.
|