cfgit 0.4.6__tar.gz → 0.4.7__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.
- {cfgit-0.4.6 → cfgit-0.4.7}/PKG-INFO +6 -6
- {cfgit-0.4.6 → cfgit-0.4.7}/README.md +5 -5
- {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/pyproject.toml +2 -2
- {cfgit-0.4.6 → cfgit-0.4.7}/pyproject.toml +1 -1
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/ui/server.py +19 -5
- {cfgit-0.4.6 → cfgit-0.4.7}/.github/workflows/ci.yml +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/.github/workflows/publish.yml +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/.gitignore +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/CONTRIBUTING.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/CREDITS.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/LICENSE +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/NOTICE +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/SECURITY.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/ADAPTERS.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/AGENTS.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/BRANCHING_PLAN.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/CONFIGURATION.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/IDENTITY_AND_ATTRIBUTION.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/PUBLISHING.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/README.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/SPEC.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/SPEC_CORE.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/USAGE.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/screenshots/01-diff.png +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/screenshots/02-impact.png +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/screenshots/03-scoped-impact.png +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/screenshots/04-branches.png +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/docs/screenshots/05-pull-request.png +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/examples/.cfg.toml +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/examples/cfgit-support-demo.toml +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/examples/seed_support_demo.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/README.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/__init__.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/overview.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/providers/__init__.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/providers/base.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/providers/claude.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/providers/factory.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/providers/gemini.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/providers/openai_provider.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/skills/cfgit/SKILL.md +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/__init__.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/adapters/__init__.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/adapters/base.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/adapters/mongo.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/adapters/postgres.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/approval/__init__.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/approval/base.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/cli/__init__.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/cli/main.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/__init__.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/authz.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/config.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/diff.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/engine.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/hashing.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/identity.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/remedy.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/interfaces/__init__.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/interfaces/actions.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/mcp/__init__.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/mcp/server.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/ui/__init__.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/update.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_adapter_contract_live.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_authz.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_awareness.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_commit_dry_run.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_config.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_config_discovery.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_console_script.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_core_purity.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_engine_safety.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_export_import.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_hashing.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_identity.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_impact_boundary.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_mcp_identity.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_mongo_history.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_output_mode.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_postgres_history.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_remedy.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_set_fields.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_ui_server.py +0 -0
- {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_update_check.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cfgit
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.7
|
|
4
4
|
Summary: Git-style history, diff, drift detection, and rollback for live database records without migrating or owning your datastore
|
|
5
5
|
Project-URL: Homepage, https://github.com/AusafMo/cfgit
|
|
6
6
|
Project-URL: Repository, https://github.com/AusafMo/cfgit
|
|
@@ -243,9 +243,9 @@ same database. Your scripts and admin tools can still write it. cfgit sits besid
|
|
|
243
243
|
the store, records what changed, and refuses to clobber changes it did not record.
|
|
244
244
|
|
|
245
245
|
<p align="center">
|
|
246
|
-
<img src="
|
|
247
|
-
<img src="
|
|
248
|
-
<img src="
|
|
246
|
+
<img src="https://storage.googleapis.com/ausaf-public/portfolio-assets/cfgit-20260802/cfgit-diff.png" alt="Production-shaped support agent drift with collection stats, branch workflow controls, history, and line-aligned diff" width="32%" />
|
|
247
|
+
<img src="https://storage.googleapis.com/ausaf-public/portfolio-assets/cfgit-20260802/cfgit-impact.png" alt="High-risk system-impact panel for a refund-resolution agent change with provider-backed LLM narration" width="32%" />
|
|
248
|
+
<img src="https://storage.googleapis.com/ausaf-public/portfolio-assets/cfgit-20260802/cfgit-scoped-impact.png" alt="Scoped impact analysis with selected policy, eval, and rollout records plus provider-backed narration" width="32%" />
|
|
249
249
|
</p>
|
|
250
250
|
|
|
251
251
|
<p align="center">
|
|
@@ -253,8 +253,8 @@ the store, records what changed, and refuses to clobber changes it did not recor
|
|
|
253
253
|
</p>
|
|
254
254
|
|
|
255
255
|
<p align="center">
|
|
256
|
-
<img src="
|
|
257
|
-
<img src="
|
|
256
|
+
<img src="https://storage.googleapis.com/ausaf-public/portfolio-assets/cfgit-20260802/cfgit-branches.png" alt="Branches workspace with a default runtime branch, a draft branch, and a branch with an open cfgit PR, plus a compare-branches selector" width="48%" />
|
|
257
|
+
<img src="https://storage.googleapis.com/ausaf-public/portfolio-assets/cfgit-20260802/cfgit-pull-request.png" alt="Open cfgit pull request reviewing a policy-rule change on a draft branch with a line-aligned diff and merge action" width="48%" />
|
|
258
258
|
</p>
|
|
259
259
|
|
|
260
260
|
<p align="center">
|
|
@@ -10,9 +10,9 @@ same database. Your scripts and admin tools can still write it. cfgit sits besid
|
|
|
10
10
|
the store, records what changed, and refuses to clobber changes it did not record.
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
13
|
-
<img src="
|
|
14
|
-
<img src="
|
|
15
|
-
<img src="
|
|
13
|
+
<img src="https://storage.googleapis.com/ausaf-public/portfolio-assets/cfgit-20260802/cfgit-diff.png" alt="Production-shaped support agent drift with collection stats, branch workflow controls, history, and line-aligned diff" width="32%" />
|
|
14
|
+
<img src="https://storage.googleapis.com/ausaf-public/portfolio-assets/cfgit-20260802/cfgit-impact.png" alt="High-risk system-impact panel for a refund-resolution agent change with provider-backed LLM narration" width="32%" />
|
|
15
|
+
<img src="https://storage.googleapis.com/ausaf-public/portfolio-assets/cfgit-20260802/cfgit-scoped-impact.png" alt="Scoped impact analysis with selected policy, eval, and rollout records plus provider-backed narration" width="32%" />
|
|
16
16
|
</p>
|
|
17
17
|
|
|
18
18
|
<p align="center">
|
|
@@ -20,8 +20,8 @@ the store, records what changed, and refuses to clobber changes it did not recor
|
|
|
20
20
|
</p>
|
|
21
21
|
|
|
22
22
|
<p align="center">
|
|
23
|
-
<img src="
|
|
24
|
-
<img src="
|
|
23
|
+
<img src="https://storage.googleapis.com/ausaf-public/portfolio-assets/cfgit-20260802/cfgit-branches.png" alt="Branches workspace with a default runtime branch, a draft branch, and a branch with an open cfgit PR, plus a compare-branches selector" width="48%" />
|
|
24
|
+
<img src="https://storage.googleapis.com/ausaf-public/portfolio-assets/cfgit-20260802/cfgit-pull-request.png" alt="Open cfgit pull request reviewing a policy-rule change on a draft branch with a line-aligned diff and merge action" width="48%" />
|
|
25
25
|
</p>
|
|
26
26
|
|
|
27
27
|
<p align="center">
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "cfgit-impact"
|
|
3
|
-
version = "0.4.
|
|
3
|
+
version = "0.4.7"
|
|
4
4
|
description = "Optional cfgit plugin for deterministic system-impact summaries and opt-in LLM narration of database record diffs"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.11"
|
|
7
7
|
license = "Apache-2.0"
|
|
8
8
|
authors = [{ name = "Mohammad Ausaf" }]
|
|
9
9
|
dependencies = [
|
|
10
|
-
"cfgit>=0.4.
|
|
10
|
+
"cfgit>=0.4.7,<0.5.0",
|
|
11
11
|
"httpx>=0.27",
|
|
12
12
|
]
|
|
13
13
|
|
|
@@ -620,6 +620,9 @@ UI_HTML = r"""<!doctype html>
|
|
|
620
620
|
.docbody{padding:14px 16px;white-space:pre-wrap;word-break:break-word;line-height:1.6;max-height:none}
|
|
621
621
|
|
|
622
622
|
.spin{padding:30px;color:var(--faint);font-size:13px;text-align:center}
|
|
623
|
+
.spinner{display:inline-block;width:11px;height:11px;margin-right:6px;vertical-align:-1px;
|
|
624
|
+
border:2px solid var(--edge2);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}
|
|
625
|
+
@keyframes spin{to{transform:rotate(360deg)}}
|
|
623
626
|
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%) translateY(8px);background:var(--panel2);
|
|
624
627
|
border:1px solid var(--edge2);border-radius:10px;padding:10px 18px;font-size:13px;z-index:60;
|
|
625
628
|
box-shadow:var(--shadow);opacity:0;transition:all .18s;pointer-events:none;display:flex;align-items:center;gap:9px}
|
|
@@ -1219,15 +1222,20 @@ async function showDrift(rec){
|
|
|
1219
1222
|
$("diff").innerHTML=`<div class="spin">computing diff…</div>`;
|
|
1220
1223
|
const res=await api("diff",{record:S.sel,a:"=HEAD",b:"=live"});
|
|
1221
1224
|
renderDiff(res,"recorded","live",S.diffCtx.empty);
|
|
1222
|
-
|
|
1225
|
+
// The top button adds LLM narration on demand; the deterministic panel is shown by default below.
|
|
1226
|
+
$("aImpact").onclick=()=>showImpact({llm:true});
|
|
1223
1227
|
$("aAdopt").onclick=()=>openAdopt(rec);
|
|
1224
1228
|
refreshImpactBtn();
|
|
1229
|
+
showImpact(); // auto-show the deterministic system-impact panel (no LLM call)
|
|
1225
1230
|
}
|
|
1226
|
-
async function showImpact(){
|
|
1231
|
+
async function showImpact(opts){
|
|
1227
1232
|
if(!S.diffCtx)return;
|
|
1233
|
+
const useLlm=!!(opts&&opts.llm); // deterministic by default; LLM narration only on request
|
|
1228
1234
|
const against=[...S.against].filter(k=>k!==S.sel);
|
|
1229
|
-
const btn=$("aImpact"); if(btn){btn.disabled=true;btn.
|
|
1230
|
-
|
|
1235
|
+
const btn=$("aImpact"); if(btn){btn.disabled=true;btn.innerHTML=`<span class="spinner"></span>${useLlm?"Narrating…":"Analyzing…"}`;}
|
|
1236
|
+
// The narration call takes a few seconds; give the clicked in-panel button its own busy state.
|
|
1237
|
+
const busyBtn=$("aNarrate"); if(busyBtn){busyBtn.disabled=true;busyBtn.innerHTML=`<span class="spinner"></span>Narrating…`;}
|
|
1238
|
+
const payload={record:S.sel,a:S.diffCtx.a,b:S.diffCtx.b,use_llm:useLlm};
|
|
1231
1239
|
if(S.impact&&S.impact.provider)payload.provider=S.impact.provider;
|
|
1232
1240
|
if(S.impact&&S.impact.model)payload.model=S.impact.model;
|
|
1233
1241
|
if(against.length)payload.against=against;
|
|
@@ -1257,6 +1265,11 @@ async function showImpact(){
|
|
|
1257
1265
|
if(ov.unknowns&&(Array.isArray(ov.unknowns)?ov.unknowns.length:true))parts.push(`<div class="lk"><span class="lkk">unknowns</span>${asList(ov.unknowns)}</div>`);
|
|
1258
1266
|
const fallback=(!parts.length&&(llm.text||llm.narration))?`<div class="body">${esc(llm.text||llm.narration)}</div>`:"";
|
|
1259
1267
|
llmHtml=`<div class="llm"><div class="who">${esc(llm.provider||"llm")} · ${esc(llm.model||"")} narration</div>${parts.join("")||fallback||`<div class="off">no narration returned</div>`}</div>`;
|
|
1268
|
+
} else if(!useLlm){
|
|
1269
|
+
// deterministic-only run (the default): the impact above is computed locally. Narration
|
|
1270
|
+
// is opt-in and DOES send the record diff to the configured provider — say so plainly.
|
|
1271
|
+
const prov=(S.impact&&S.impact.provider)?esc(S.impact.provider):"the configured provider";
|
|
1272
|
+
llmHtml=`<div class="llm"><div class="who">LLM narration</div><div class="off">The impact above is computed locally. Narration sends this record's diff to ${prov}. <button class="btn" id="aNarrate" style="margin-left:6px">Narrate with LLM</button></div></div>`;
|
|
1260
1273
|
} else {
|
|
1261
1274
|
llmHtml=`<div class="llm"><div class="who">LLM narration</div><div class="off">off — enable <span class="mono">[connections]</span> in .cfg.toml for a written explanation of what this change does to the system. Everything above is computed locally, no data leaves your machine.</div></div>`;
|
|
1262
1275
|
}
|
|
@@ -1280,6 +1293,7 @@ async function showImpact(){
|
|
|
1280
1293
|
const wrap=$("diff");
|
|
1281
1294
|
const existing=wrap.querySelector(".impact"); if(existing)existing.remove();
|
|
1282
1295
|
wrap.insertAdjacentHTML("afterbegin",panel);
|
|
1296
|
+
const nb=$("aNarrate"); if(nb)nb.onclick=()=>showImpact({llm:true});
|
|
1283
1297
|
}
|
|
1284
1298
|
async function selectNode(e){
|
|
1285
1299
|
if(!e)return;markNode(e.seq,false);
|
|
@@ -1296,7 +1310,7 @@ async function selectNode(e){
|
|
|
1296
1310
|
const res=await api("diff",{record:S.sel,a:"@"+parent.seq,b:"@"+e.seq});
|
|
1297
1311
|
renderDiff(res,"@"+parent.seq,"@"+e.seq,"No field-level change from the parent version.");}
|
|
1298
1312
|
else{S.diffCtx=null;const res=await api("show",{record:S.sel,ref:"@"+e.seq});renderDoc(res);}
|
|
1299
|
-
const ib=$("aImpact");if(ib)ib.onclick=()=>showImpact();
|
|
1313
|
+
const ib=$("aImpact");if(ib)ib.onclick=()=>showImpact({llm:true});
|
|
1300
1314
|
const rb=$("aRestore");if(rb)rb.onclick=()=>openRestore(S.records.find(r=>r.collection+":"+r.record_id===S.sel),"@"+e.seq);
|
|
1301
1315
|
refreshImpactBtn();
|
|
1302
1316
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|