cfgit 0.1.0__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.
Files changed (76) hide show
  1. cfgit-0.1.0/.github/workflows/ci.yml +46 -0
  2. cfgit-0.1.0/.github/workflows/publish.yml +56 -0
  3. cfgit-0.1.0/.gitignore +180 -0
  4. cfgit-0.1.0/CONTRIBUTING.md +52 -0
  5. cfgit-0.1.0/CREDITS.md +37 -0
  6. cfgit-0.1.0/LICENSE +201 -0
  7. cfgit-0.1.0/NOTICE +10 -0
  8. cfgit-0.1.0/PKG-INFO +744 -0
  9. cfgit-0.1.0/README.md +511 -0
  10. cfgit-0.1.0/SECURITY.md +43 -0
  11. cfgit-0.1.0/docs/ADAPTERS.md +105 -0
  12. cfgit-0.1.0/docs/AGENTS.md +159 -0
  13. cfgit-0.1.0/docs/BRANCHING_PLAN.md +243 -0
  14. cfgit-0.1.0/docs/CONFIGURATION.md +224 -0
  15. cfgit-0.1.0/docs/IDENTITY_AND_ATTRIBUTION.md +159 -0
  16. cfgit-0.1.0/docs/PUBLISHING.md +82 -0
  17. cfgit-0.1.0/docs/README.md +22 -0
  18. cfgit-0.1.0/docs/SPEC.md +831 -0
  19. cfgit-0.1.0/docs/SPEC_CORE.md +210 -0
  20. cfgit-0.1.0/docs/USAGE.md +284 -0
  21. cfgit-0.1.0/docs/archive/spec-v0.1.md +563 -0
  22. cfgit-0.1.0/docs/project-notes/findings.md +128 -0
  23. cfgit-0.1.0/docs/project-notes/handoff.json +107 -0
  24. cfgit-0.1.0/docs/project-notes/handoff.md +178 -0
  25. cfgit-0.1.0/docs/project-notes/review-findings.md +153 -0
  26. cfgit-0.1.0/docs/screenshots/01-diff.png +0 -0
  27. cfgit-0.1.0/docs/screenshots/02-impact.png +0 -0
  28. cfgit-0.1.0/docs/screenshots/03-scoped-impact.png +0 -0
  29. cfgit-0.1.0/examples/.cfg.toml +122 -0
  30. cfgit-0.1.0/plugins/cfg_impact/README.md +47 -0
  31. cfgit-0.1.0/plugins/cfg_impact/cfg_impact/__init__.py +6 -0
  32. cfgit-0.1.0/plugins/cfg_impact/cfg_impact/overview.py +432 -0
  33. cfgit-0.1.0/plugins/cfg_impact/cfg_impact/providers/__init__.py +7 -0
  34. cfgit-0.1.0/plugins/cfg_impact/cfg_impact/providers/base.py +79 -0
  35. cfgit-0.1.0/plugins/cfg_impact/cfg_impact/providers/claude.py +103 -0
  36. cfgit-0.1.0/plugins/cfg_impact/cfg_impact/providers/factory.py +36 -0
  37. cfgit-0.1.0/plugins/cfg_impact/cfg_impact/providers/gemini.py +105 -0
  38. cfgit-0.1.0/plugins/cfg_impact/cfg_impact/providers/openai_provider.py +83 -0
  39. cfgit-0.1.0/plugins/cfg_impact/pyproject.toml +25 -0
  40. cfgit-0.1.0/pyproject.toml +63 -0
  41. cfgit-0.1.0/skills/cfgit/SKILL.md +98 -0
  42. cfgit-0.1.0/src/cfg/__init__.py +13 -0
  43. cfgit-0.1.0/src/cfg/adapters/__init__.py +25 -0
  44. cfgit-0.1.0/src/cfg/adapters/base.py +127 -0
  45. cfgit-0.1.0/src/cfg/adapters/mongo.py +570 -0
  46. cfgit-0.1.0/src/cfg/adapters/postgres.py +756 -0
  47. cfgit-0.1.0/src/cfg/approval/__init__.py +5 -0
  48. cfgit-0.1.0/src/cfg/approval/base.py +29 -0
  49. cfgit-0.1.0/src/cfg/cli/__init__.py +2 -0
  50. cfgit-0.1.0/src/cfg/cli/main.py +665 -0
  51. cfgit-0.1.0/src/cfg/core/__init__.py +13 -0
  52. cfgit-0.1.0/src/cfg/core/authz.py +58 -0
  53. cfgit-0.1.0/src/cfg/core/config.py +324 -0
  54. cfgit-0.1.0/src/cfg/core/diff.py +43 -0
  55. cfgit-0.1.0/src/cfg/core/engine.py +1388 -0
  56. cfgit-0.1.0/src/cfg/core/hashing.py +102 -0
  57. cfgit-0.1.0/src/cfg/core/identity.py +213 -0
  58. cfgit-0.1.0/src/cfg/interfaces/__init__.py +2 -0
  59. cfgit-0.1.0/src/cfg/interfaces/actions.py +598 -0
  60. cfgit-0.1.0/src/cfg/mcp/__init__.py +10 -0
  61. cfgit-0.1.0/src/cfg/mcp/server.py +452 -0
  62. cfgit-0.1.0/src/cfg/ui/__init__.py +2 -0
  63. cfgit-0.1.0/src/cfg/ui/server.py +1066 -0
  64. cfgit-0.1.0/tests/test_adapter_contract_live.py +128 -0
  65. cfgit-0.1.0/tests/test_authz.py +117 -0
  66. cfgit-0.1.0/tests/test_config.py +34 -0
  67. cfgit-0.1.0/tests/test_console_script.py +22 -0
  68. cfgit-0.1.0/tests/test_core_purity.py +36 -0
  69. cfgit-0.1.0/tests/test_engine_safety.py +852 -0
  70. cfgit-0.1.0/tests/test_hashing.py +45 -0
  71. cfgit-0.1.0/tests/test_identity.py +179 -0
  72. cfgit-0.1.0/tests/test_impact_boundary.py +261 -0
  73. cfgit-0.1.0/tests/test_mcp_identity.py +76 -0
  74. cfgit-0.1.0/tests/test_mongo_history.py +76 -0
  75. cfgit-0.1.0/tests/test_postgres_history.py +51 -0
  76. cfgit-0.1.0/tests/test_ui_server.py +64 -0
@@ -0,0 +1,46 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [main]
6
+ push:
7
+ branches: [main]
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ tests:
15
+ name: tests
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.11"
22
+ - name: Install
23
+ run: |
24
+ python -m pip install -U pip
25
+ python -m pip install -e '.[mongo,postgres,mcp,dev]'
26
+ python -m pip install -e plugins/cfg_impact
27
+ - name: Run tests
28
+ run: python -m pytest -q
29
+
30
+ package-build:
31
+ name: package-build
32
+ runs-on: ubuntu-latest
33
+ steps:
34
+ - uses: actions/checkout@v4
35
+ - uses: actions/setup-python@v5
36
+ with:
37
+ python-version: "3.11"
38
+ - name: Build and check distributions
39
+ run: |
40
+ python -m pip install -U build twine
41
+ rm -rf dist plugins/cfg_impact/dist
42
+ python -m build
43
+ python -m twine check dist/*
44
+ cd plugins/cfg_impact
45
+ python -m build
46
+ python -m twine check dist/*
@@ -0,0 +1,56 @@
1
+ name: Publish Python packages
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ publish-cfgit:
13
+ name: Publish cfgit
14
+ runs-on: ubuntu-latest
15
+ environment: pypi-cfgit
16
+ permissions:
17
+ id-token: write
18
+ contents: read
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+ - uses: actions/setup-python@v5
22
+ with:
23
+ python-version: "3.11"
24
+ - name: Build
25
+ run: |
26
+ python -m pip install -U build twine
27
+ python -m build
28
+ python -m twine check dist/*
29
+ - name: Publish cfgit to PyPI
30
+ uses: pypa/gh-action-pypi-publish@release/v1
31
+ with:
32
+ packages-dir: dist/
33
+
34
+ publish-cfgit-impact:
35
+ name: Publish cfgit-impact
36
+ runs-on: ubuntu-latest
37
+ needs: publish-cfgit
38
+ environment: pypi-cfgit-impact
39
+ permissions:
40
+ id-token: write
41
+ contents: read
42
+ steps:
43
+ - uses: actions/checkout@v4
44
+ - uses: actions/setup-python@v5
45
+ with:
46
+ python-version: "3.11"
47
+ - name: Build
48
+ working-directory: plugins/cfg_impact
49
+ run: |
50
+ python -m pip install -U build twine
51
+ python -m build
52
+ python -m twine check dist/*
53
+ - name: Publish cfgit-impact to PyPI
54
+ uses: pypa/gh-action-pypi-publish@release/v1
55
+ with:
56
+ packages-dir: plugins/cfg_impact/dist/
cfgit-0.1.0/.gitignore ADDED
@@ -0,0 +1,180 @@
1
+ # Based on GitHub's standard Python, macOS, and Visual Studio Code templates.
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ *.py[codz]
6
+ *$py.class
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ # Distribution / packaging
12
+ .Python
13
+ build/
14
+ develop-eggs/
15
+ dist/
16
+ downloads/
17
+ eggs/
18
+ .eggs/
19
+ lib/
20
+ lib64/
21
+ parts/
22
+ sdist/
23
+ var/
24
+ wheels/
25
+ share/python-wheels/
26
+ *.egg-info/
27
+ .installed.cfg
28
+ *.egg
29
+ MANIFEST
30
+
31
+ # PyInstaller
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ *.lcov
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Documentation builds
56
+ docs/_build/
57
+ /site
58
+
59
+ # Jupyter / IPython
60
+ .ipynb_checkpoints
61
+ profile_default/
62
+ ipython_config.py
63
+
64
+ # Python environment managers
65
+ .env
66
+ .envrc
67
+ .venv/
68
+ env/
69
+ venv/
70
+ ENV/
71
+ env.bak/
72
+ venv.bak/
73
+ .pdm-python
74
+ .pdm-build/
75
+ .pixi/*
76
+ !.pixi/config.toml
77
+ __pypackages__/
78
+
79
+ # Type checkers and linters
80
+ .mypy_cache/
81
+ .dmypy.json
82
+ dmypy.json
83
+ .pyre/
84
+ .pytype/
85
+ .ruff_cache/
86
+
87
+ # Framework and tooling local state
88
+ instance/
89
+ .webassets-cache
90
+ .scrapy
91
+ .pybuilder/
92
+ target/
93
+ .ropeproject
94
+ .spyderproject
95
+ .spyproject
96
+ .abstra/
97
+ cython_debug/
98
+ .pypirc
99
+
100
+ # Local databases and service state
101
+ *.log
102
+ local_settings.py
103
+ db.sqlite3
104
+ db.sqlite3-journal
105
+ celerybeat-schedule*
106
+ celerybeat.pid
107
+ *.rdb
108
+ *.aof
109
+ *.pid
110
+ mnesia/
111
+ rabbitmq/
112
+ rabbitmq-data/
113
+ activemq-data/
114
+
115
+ # cfgit local state
116
+ .cfg/
117
+ /.cfg.toml
118
+
119
+ # Local secrets and overrides
120
+ *.local
121
+ .streamlit/secrets.toml
122
+
123
+ # Visual Studio Code
124
+ .vscode/*
125
+ !.vscode/settings.json
126
+ !.vscode/tasks.json
127
+ !.vscode/launch.json
128
+ !.vscode/extensions.json
129
+ !.vscode/*.code-snippets
130
+ !*.code-workspace
131
+ *.vsix
132
+ tempCodeRunnerFile.py
133
+
134
+ # JetBrains
135
+ # .idea/
136
+
137
+ # macOS
138
+ .DS_Store
139
+ .localized
140
+ __MACOSX/
141
+ .AppleDouble
142
+ .LSOverride
143
+ Icon
144
+ ._*
145
+ .DocumentRevisions-V100
146
+ .fseventsd
147
+ .Spotlight-V100
148
+ .TemporaryItems
149
+ .Trashes
150
+ .VolumeIcon.icns
151
+ .com.apple.timemachine.donotpresent
152
+ .com.apple.timemachine.supported
153
+ .PKInstallSandboxManager
154
+ .PKInstallSandboxManager-SystemSoftware
155
+ .hotfiles.btree
156
+ .vol
157
+ .file
158
+ .disk_label*
159
+ lost+found
160
+ AppleDB
161
+ AppleDesktop
162
+ Network Trash Folder
163
+ Temporary Items
164
+ .apdisk
165
+ Desktop DB
166
+ Desktop DF
167
+ TheFindByContentFolder
168
+ TheVolumeSettingsFolder
169
+ .FBCIndex
170
+ .FBCSemaphoreFile
171
+ .FBCLockFolder
172
+ .quota.group
173
+ .quota.user
174
+ .quota.ops.group
175
+ .quota.ops.user
176
+ Backups.backupdb
177
+ .MobileBackups
178
+ .MobileBackups.trash
179
+ MobileBackups.trash
180
+ tmbootpicker.efi
@@ -0,0 +1,52 @@
1
+ # Contributing
2
+
3
+ cfgit is an Apache-2.0 open-source project. Contributions are welcome.
4
+
5
+ ## Development setup
6
+
7
+ ```bash
8
+ python -m venv .venv
9
+ . .venv/bin/activate
10
+ pip install -e '.[mongo,postgres,mcp,dev]'
11
+ pip install -e plugins/cfg_impact
12
+ ```
13
+
14
+ ## Checks
15
+
16
+ Run these before opening a pull request:
17
+
18
+ ```bash
19
+ ruff check src tests plugins/cfg_impact/cfg_impact
20
+ pytest tests/ -q
21
+ git diff --check
22
+ ```
23
+
24
+ ## Design constraints
25
+
26
+ - `src/cfg/core` must not import database drivers.
27
+ - `src/cfg/core` must not import LLM providers or SDKs.
28
+ - Storage-specific code belongs in `src/cfg/adapters`.
29
+ - LLM impact narration belongs in `plugins/cfg_impact`.
30
+ - The runtime datastore remains the source of truth for live reads.
31
+ - cfgit history is append-only except for explicitly designed maintenance tools.
32
+
33
+ ## Testing database changes
34
+
35
+ Use local throwaway databases for adapter tests.
36
+
37
+ Mongo tests should use a local replica set, because cfgit relies on Mongo
38
+ transactions for safe apply operations.
39
+
40
+ Postgres tests should use a local Docker container and the v1 `doc jsonb` table
41
+ contract.
42
+
43
+ Do not run write tests against production databases.
44
+
45
+ ## Documentation
46
+
47
+ If a change adds a user-facing command, config key, adapter behavior, or safety
48
+ rule, update the README or the relevant file in `docs/`.
49
+
50
+ ## License
51
+
52
+ By contributing, you agree that your contribution is licensed under Apache-2.0.
cfgit-0.1.0/CREDITS.md ADDED
@@ -0,0 +1,37 @@
1
+ # Credits & Attribution
2
+
3
+ `cfg` borrows ideas and design vocabulary from prior work. This file records what
4
+ was taken, from where, and under what license, so reuse is attributed and
5
+ license-respecting. **Process rule:** whenever code or a non-obvious design is taken
6
+ from an external project, add a row here in the same change, after actually reading
7
+ that project's LICENSE. Anything copyleft is isolated and labeled; by default `cfg`
8
+ reuses *concepts*, not source.
9
+
10
+ Legend for "Taken": **idea** = concept/design/vocabulary only (no source copied;
11
+ needs citation, not a license grant) · **code** = source incorporated (license
12
+ applies; must be isolated/labeled).
13
+
14
+ | Project | What we took | License | Taken | Obligation honored |
15
+ |---|---|---|---|---|
16
+ | [Git](https://git-scm.com) | Command vocabulary and UX (`commit`/`log`/`diff`/`show`/`restore`/`revert`/`reflog`/`tag`), the **porcelain/plumbing** split (stable machine layer vs human layer), content-addressable object identity (sha256 of canonical content, "blob"-style). | GPL-2.0 | **idea** | Attribution + design credit here. **No Git source is copied.** GPL-2.0 copyleft binds copied code, not ideas/command-names/UX; Git's own docs explicitly invite building alternative "porcelains" on its interface. If a Git source snippet is ever vendored, that file becomes GPL-2.0, is isolated under `third_party/`, and labeled: current plan: none. |
17
+ | [llm-prompt-semantic-diff](https://github.com/aatakansalar/llm-prompt-semantic-diff) | The framing that prompt changes need a *meaning-level* signal, not text diff; CLI + CI-exit-code shape. | Check repo LICENSE at vendor time (appears permissive) | **idea** | Cited as prior art for §7. Reusing only the framing; no code reused. If code is reused later, read + record its LICENSE first. |
18
+ | [llm-behavior-diff](https://dev.to/nilofer_tweets/llm-behavior-diff-model-update-detector-3e7b) | The idea of severity-classified divergence + shipping an **MCP server** so agents can run the analysis. We deliberately do NOT adopt its output-generation/eval approach (we eval reasoning/payloads, not generations). | Check repo LICENSE at vendor time | **idea** | Cited as prior art for §7 (MCP-first, severity tiers). No code reused. |
19
+ | "Prompting in the Wild: An Empirical Study of Prompt Evolution in Software Repositories" ([arXiv:2412.17298](https://arxiv.org/abs/2412.17298)) | The chain-of-thought inconsistency method: read old + new prompt → identify changed parts → for each change decide whether it introduced an inconsistency. Adopted for §7's intra-config `self_inconsistency` dimension. | Academic paper (method) | **idea** | Cited. Method adopted, not code. |
20
+
21
+ ## Prior art we position against (not reused; credited for honesty)
22
+ cfgit's framing (`SPEC_CORE.md` §3) is defined by contrast with the "git for data" category. We reuse none of their code; we credit them as the prior art that defines the niche cfgit fills (the non-custodial / in-place case they explicitly do not serve).
23
+ - **[Dolt](https://github.com/dolthub/dolt)** (Apache-2.0): the most literal "git for data" (Git semantics on table rows, Prolly-tree storage). cfgit differs by being non-custodial: Dolt *is* the database; cfgit versions a database you keep. Dolt's own docs note it "won't help you if you wish to keep your data in place," which is precisely cfgit's case.
24
+ - **[TerminusDB](https://github.com/terminusdb/terminusdb)**, **[lakeFS](https://github.com/treeverse/lakeFS)**: same custodial pattern for graph/document data and object stores respectively.
25
+ - **Temporal tables** (SQL:2011 standard): built-in time-travel/rollback for a single store; cfgit adds cross-store, in-place, and drift reconciliation on top of stores that may lack it.
26
+
27
+ ## Standard building blocks (influences, no license obligation)
28
+ - **sha256 / canonical-JSON hashing** for content identity: common technique (git blob, content-addressable stores).
29
+ - **Bitemporal data modeling** (`recorded_at` transaction time vs `valid_from`/`valid_to` valid time): from the data-warehousing / temporal-database literature (e.g. Snodgrass, "Developing Time-Oriented Database Applications").
30
+ - **Optimistic concurrency control / compare-and-swap** on a HEAD pointer: standard concurrency-control technique.
31
+
32
+ ## `cfg`'s own license
33
+ **Apache-2.0** (see `LICENSE`). Permissive + explicit patent grant, so the company
34
+ and others can adopt freely. Apache-2.0 can depend on MIT/Apache libraries; it
35
+ **cannot** link GPL-2.0 source into the core: a second reason the Git borrowing
36
+ stays concept-only. The optional `cfg-impact` plugin keeps any model-provider SDK
37
+ out of the core package, so a differently-licensed SDK can't taint the core license.
cfgit-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Mohammad Ausaf
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
cfgit-0.1.0/NOTICE ADDED
@@ -0,0 +1,10 @@
1
+ cfg: Config Version Control
2
+ Copyright 2026 Mohammad Ausaf
3
+
4
+ This product includes software developed as an original work, licensed under the
5
+ Apache License, Version 2.0 (see LICENSE).
6
+
7
+ This product reuses DESIGN CONCEPTS and command vocabulary (not source code) from
8
+ Git (https://git-scm.com), which is licensed GPL-2.0. No Git source code is
9
+ included or linked. See CREDITS.md for the full attribution table, including the
10
+ semantic-diff prior art that informs the optional impact layer.