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.
Files changed (85) hide show
  1. {cfgit-0.4.6 → cfgit-0.4.7}/PKG-INFO +6 -6
  2. {cfgit-0.4.6 → cfgit-0.4.7}/README.md +5 -5
  3. {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/pyproject.toml +2 -2
  4. {cfgit-0.4.6 → cfgit-0.4.7}/pyproject.toml +1 -1
  5. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/ui/server.py +19 -5
  6. {cfgit-0.4.6 → cfgit-0.4.7}/.github/workflows/ci.yml +0 -0
  7. {cfgit-0.4.6 → cfgit-0.4.7}/.github/workflows/publish.yml +0 -0
  8. {cfgit-0.4.6 → cfgit-0.4.7}/.gitignore +0 -0
  9. {cfgit-0.4.6 → cfgit-0.4.7}/CONTRIBUTING.md +0 -0
  10. {cfgit-0.4.6 → cfgit-0.4.7}/CREDITS.md +0 -0
  11. {cfgit-0.4.6 → cfgit-0.4.7}/LICENSE +0 -0
  12. {cfgit-0.4.6 → cfgit-0.4.7}/NOTICE +0 -0
  13. {cfgit-0.4.6 → cfgit-0.4.7}/SECURITY.md +0 -0
  14. {cfgit-0.4.6 → cfgit-0.4.7}/docs/ADAPTERS.md +0 -0
  15. {cfgit-0.4.6 → cfgit-0.4.7}/docs/AGENTS.md +0 -0
  16. {cfgit-0.4.6 → cfgit-0.4.7}/docs/BRANCHING_PLAN.md +0 -0
  17. {cfgit-0.4.6 → cfgit-0.4.7}/docs/CONFIGURATION.md +0 -0
  18. {cfgit-0.4.6 → cfgit-0.4.7}/docs/IDENTITY_AND_ATTRIBUTION.md +0 -0
  19. {cfgit-0.4.6 → cfgit-0.4.7}/docs/PUBLISHING.md +0 -0
  20. {cfgit-0.4.6 → cfgit-0.4.7}/docs/README.md +0 -0
  21. {cfgit-0.4.6 → cfgit-0.4.7}/docs/SPEC.md +0 -0
  22. {cfgit-0.4.6 → cfgit-0.4.7}/docs/SPEC_CORE.md +0 -0
  23. {cfgit-0.4.6 → cfgit-0.4.7}/docs/USAGE.md +0 -0
  24. {cfgit-0.4.6 → cfgit-0.4.7}/docs/screenshots/01-diff.png +0 -0
  25. {cfgit-0.4.6 → cfgit-0.4.7}/docs/screenshots/02-impact.png +0 -0
  26. {cfgit-0.4.6 → cfgit-0.4.7}/docs/screenshots/03-scoped-impact.png +0 -0
  27. {cfgit-0.4.6 → cfgit-0.4.7}/docs/screenshots/04-branches.png +0 -0
  28. {cfgit-0.4.6 → cfgit-0.4.7}/docs/screenshots/05-pull-request.png +0 -0
  29. {cfgit-0.4.6 → cfgit-0.4.7}/examples/.cfg.toml +0 -0
  30. {cfgit-0.4.6 → cfgit-0.4.7}/examples/cfgit-support-demo.toml +0 -0
  31. {cfgit-0.4.6 → cfgit-0.4.7}/examples/seed_support_demo.py +0 -0
  32. {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/README.md +0 -0
  33. {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/__init__.py +0 -0
  34. {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/overview.py +0 -0
  35. {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/providers/__init__.py +0 -0
  36. {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/providers/base.py +0 -0
  37. {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/providers/claude.py +0 -0
  38. {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/providers/factory.py +0 -0
  39. {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/providers/gemini.py +0 -0
  40. {cfgit-0.4.6 → cfgit-0.4.7}/plugins/cfg_impact/cfg_impact/providers/openai_provider.py +0 -0
  41. {cfgit-0.4.6 → cfgit-0.4.7}/skills/cfgit/SKILL.md +0 -0
  42. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/__init__.py +0 -0
  43. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/adapters/__init__.py +0 -0
  44. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/adapters/base.py +0 -0
  45. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/adapters/mongo.py +0 -0
  46. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/adapters/postgres.py +0 -0
  47. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/approval/__init__.py +0 -0
  48. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/approval/base.py +0 -0
  49. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/cli/__init__.py +0 -0
  50. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/cli/main.py +0 -0
  51. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/__init__.py +0 -0
  52. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/authz.py +0 -0
  53. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/config.py +0 -0
  54. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/diff.py +0 -0
  55. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/engine.py +0 -0
  56. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/hashing.py +0 -0
  57. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/identity.py +0 -0
  58. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/core/remedy.py +0 -0
  59. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/interfaces/__init__.py +0 -0
  60. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/interfaces/actions.py +0 -0
  61. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/mcp/__init__.py +0 -0
  62. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/mcp/server.py +0 -0
  63. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/ui/__init__.py +0 -0
  64. {cfgit-0.4.6 → cfgit-0.4.7}/src/cfg/update.py +0 -0
  65. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_adapter_contract_live.py +0 -0
  66. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_authz.py +0 -0
  67. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_awareness.py +0 -0
  68. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_commit_dry_run.py +0 -0
  69. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_config.py +0 -0
  70. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_config_discovery.py +0 -0
  71. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_console_script.py +0 -0
  72. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_core_purity.py +0 -0
  73. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_engine_safety.py +0 -0
  74. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_export_import.py +0 -0
  75. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_hashing.py +0 -0
  76. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_identity.py +0 -0
  77. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_impact_boundary.py +0 -0
  78. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_mcp_identity.py +0 -0
  79. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_mongo_history.py +0 -0
  80. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_output_mode.py +0 -0
  81. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_postgres_history.py +0 -0
  82. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_remedy.py +0 -0
  83. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_set_fields.py +0 -0
  84. {cfgit-0.4.6 → cfgit-0.4.7}/tests/test_ui_server.py +0 -0
  85. {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.6
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="docs/screenshots/01-diff.png" alt="Production-shaped support agent drift with collection stats, branch workflow controls, history, and line-aligned diff" width="32%" />
247
- <img src="docs/screenshots/02-impact.png" alt="High-risk system-impact panel for a refund-resolution agent change with provider-backed LLM narration" width="32%" />
248
- <img src="docs/screenshots/03-scoped-impact.png" alt="Scoped impact analysis with selected policy, eval, and rollout records plus provider-backed narration" width="32%" />
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="docs/screenshots/04-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="docs/screenshots/05-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%" />
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="docs/screenshots/01-diff.png" alt="Production-shaped support agent drift with collection stats, branch workflow controls, history, and line-aligned diff" width="32%" />
14
- <img src="docs/screenshots/02-impact.png" alt="High-risk system-impact panel for a refund-resolution agent change with provider-backed LLM narration" width="32%" />
15
- <img src="docs/screenshots/03-scoped-impact.png" alt="Scoped impact analysis with selected policy, eval, and rollout records plus provider-backed narration" width="32%" />
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="docs/screenshots/04-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="docs/screenshots/05-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%" />
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.6"
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.6,<0.5.0",
10
+ "cfgit>=0.4.7,<0.5.0",
11
11
  "httpx>=0.27",
12
12
  ]
13
13
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cfgit"
3
- version = "0.4.6"
3
+ version = "0.4.7"
4
4
  description = "Git-style history, diff, drift detection, and rollback for live database records without migrating or owning your datastore"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -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
- $("aImpact").onclick=()=>showImpact();
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.textContent="Analyzing…";}
1230
- const payload={record:S.sel,a:S.diffCtx.a,b:S.diffCtx.b,use_llm:true};
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