Refactor architecture into eight components and consolidate reliability work
Build and publish container images / images (push) Successful in 9m34s
Release container images / release (push) Successful in 36s

Extract Grammaratur, Dregarnuhr, Geduldh, Mestionora, Ordoschnellic, Schutzaria, Kunstzeal and Seheweit behind compatible application contracts.

Include accumulated editor resilience, navigation and theme UX, remote CLI, storage/schema and DR groundwork, tests and design/operations documentation.

Verified: uncached full Go suite; go vet ./...; race tests for all eight components; 11 targeted Chromium tests; Node suites; 19 Python CLI tests; reproducible editor build. No push, release tag or deployment in this checkpoint.
This commit is contained in:
Anya Tokugawa committed 2026-11-01 15:23:31 +09:00
1 parent 9dd425f765
commit d5d21b7841
302 files changed
+20037 -3492

No files matched your search

+8 -3
View File
@@ -1,6 +1,7 @@
package server
import (
"context"
"database/sql"
"errors"
"html/template"
@@ -28,7 +29,7 @@ func (s *Server) handlePrint(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
view, err := s.printContentView(revision, semanticPath)
view, err := s.printContentViewContext(r.Context(), revision, semanticPath)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
@@ -84,7 +85,11 @@ func (s *Server) resolvePrintRevision(r *http.Request, address string) (*store.R
}
func (s *Server) printContentView(metadata *store.Revision, semanticPath string) (contentView, error) {
size, err := s.store.DocumentSize(metadata.DocumentHash)
return s.printContentViewContext(context.Background(), metadata, semanticPath)
}
func (s *Server) printContentViewContext(ctx context.Context, metadata *store.Revision, semanticPath string) (contentView, error) {
size, err := s.store.DocumentSizeContext(ctx, metadata.DocumentHash)
if err != nil {
return contentView{}, err
}
@@ -108,7 +113,7 @@ func (s *Server) printContentView(metadata *store.Revision, semanticPath string)
return view, nil
}
if adapter.WindowableText && size > maxPrintTextBytes {
window, err := s.store.ReadDocumentWindow(metadata.DocumentHash, 0, maxPrintTextBytes)
window, err := s.store.ReadDocumentWindowContext(ctx, metadata.DocumentHash, 0, maxPrintTextBytes)
if err != nil {
return contentView{}, err
}