feat(git): Git-Backend über HTTPS + PAT (ADR 0003, FLW-86) (#19)
Repositories gitConnections/brewGitLinks (Mongo/PG), Krypto, SSRF-Policy mit net.BlockList, git-Client ohne Arbeitskopie, Sync/Konflikte, /api/git/*, Client (Verbindungen, Git-Status, Konfliktdialog), Autosave 60 s für Git-Brews (F6), Tests und Doku. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Dev (Paperclip) <dev-bot@noreply.git.morlana.online>
This commit was merged in pull request #19.
This commit is contained in:
1 parent
06b7ad2c77
commit
448c67912f
44 files changed
+3081
-14
No files matched your search
@@ -0,0 +1,13 @@
|
||||
// Einhängepunkte für homebrew.api.js (ADR 0003 §5). Ohne konfigurierten Service (Git-Backend aus, Unit-Specs)
|
||||
// sind alle Hooks wirkungslos, damit die Upstream-Datei nur zwei Zeilen braucht.
|
||||
let service;
|
||||
|
||||
export const configureGitHooks = (svc)=>{ service = svc; };
|
||||
|
||||
// → null: Antwort wurde bereits gesendet (Fehler, z. B. Konflikt G01); sonst Kontext (ggf. leer)
|
||||
export const beforeBrewSave = async (args)=>service ? service.beforeBrewSave(args) : {};
|
||||
|
||||
// `saved` ist das Ergebnis des DB-Saves (falsy bei Fehler). Gibt den Brew-Mutex in jedem Fall frei.
|
||||
export const afterBrewSave = async (ctx, saved)=>{ if(service) await service.afterBrewSave(ctx, saved); };
|
||||
|
||||
export default { configureGitHooks, beforeBrewSave, afterBrewSave };
|
||||
Reference in new issue
Block a user