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

+4 -33
View File
@@ -1,11 +1,9 @@
package store
import (
"io"
"os"
"strings"
"golang.org/x/net/html"
"pageswiki/internal/mestionora"
)
type BrowserEntry struct {
@@ -23,32 +21,7 @@ type BrowserEntry struct {
Title string
}
func firstHTMLHeading(source string) string {
t := html.NewTokenizer(strings.NewReader(source))
in := false
var out strings.Builder
for {
kind := t.Next()
if kind == html.ErrorToken {
if t.Err() == io.EOF {
break
}
break
}
tok := t.Token()
if kind == html.StartTagToken && strings.EqualFold(tok.Data, "h1") {
in = true
continue
}
if kind == html.EndTagToken && strings.EqualFold(tok.Data, "h1") {
break
}
if in && kind == html.TextToken {
out.WriteString(tok.Data)
}
}
return strings.TrimSpace(out.String())
}
func firstHTMLHeading(source string) string { return mestionora.FirstHTMLHeading(source) }
func normalizeBrowserPath(p string) string {
p = strings.TrimSpace(p)
@@ -117,10 +90,8 @@ func (s *Store) ListBrowserEntriesInDomain(domainUUID, parent string) ([]Browser
}
entry.Path = prefix + entry.Name
if !entry.IsDir && s.DocumentRoot != "" && entry.DocumentHash != "" {
if filename, err := s.DocumentPath(entry.DocumentHash); err == nil {
if info, err := os.Stat(filename); err == nil {
entry.Size = int(info.Size())
}
if size, err := s.DocumentSize(entry.DocumentHash); err == nil {
entry.Size = int(size)
}
}
out = append(out, entry)