diff --git a/AGENTS.md b/AGENTS.md index 3b0d550..b003a0a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,3 +4,43 @@ This repo maps to **Maven** (project ID: 2) in Vikunja. Feature work, bugs, deployment tasks all go here. MCP endpoint: `http://localhost:9100/mcp` (or `http://192.168.1.104:9100/mcp` from workpc) + +## Rendering / previewing the web UI locally + +To see mavweb pages with real data without touching the production stack: + +```sh +R=/tmp/mvn-preview; mkdir -p $R +go build -o $R/mavend ./cmd/mavend/ && go build -o $R/mavweb ./cmd/mavweb/ +cat > $R/mavend.json <"}}`). New pages must link both — + no per-page inline ` - + +maven · dash + +{{template "nav" "dash"}}

presence

{{.Presence.Bucket}} — score {{printf "%.2f" .Presence.Score}} ({{ago .Presence.Updated}})

-
обновляется каждые 10с
+
обновляется каждые 10с

nudges

- -{{range .Nudges}}{{end}} -
whenrulechanoutcomemessage
{{ago .Ts}}{{.Rule}}{{.Channel}}{{.Outcome}}{{.Message}}
+
+{{range .Nudges}}{{end}} +
whenrulechanoutcomemessage
{{ago .Ts}}{{.Rule}}{{.Channel}}{{.Outcome}}{{.Message}}

facts

- -{{range .Facts}}{{end}} -
whenkindkeyvaluesourceconf
{{ago .Ts}}{{.Kind}}{{.Key}}{{.Value}}{{.Source}}{{printf "%.2f" .Confidence}}
+
+{{range .Facts}}{{end}} +
whenkindkeyvaluesourceconf
{{ago .Ts}}{{.Kind}}{{.Key}}{{.Value}}{{.Source}}{{printf "%.2f" .Confidence}}

notes

- +
whensourcetext
{{range .Notes}}{{end}} -
whensourcetext
{{ago .Ts}}{{.Source}}{{.Text}}
+ \ No newline at end of file + diff --git a/cmd/mavweb/history.html b/cmd/mavweb/history.html index 60a5332..87fa20e 100644 --- a/cmd/mavweb/history.html +++ b/cmd/mavweb/history.html @@ -1,43 +1,24 @@ - - - + maven · history - -

maven · command history

- -

{{len .Facts}} facts shown (newest first)

-
- + + +{{template "nav" "history"}} +

command history

+

{{len .Facts}} facts shown (newest first)

+ +
{{range .Facts}}{{if .VoidsID}}{{else}}{{end}} - + - +{{end}} -
whenkindkeyvaluesourceconf
{{if .VoidsID}}⨯ voided{{end}}{{.Ts.Format "2006-01-02 15:04"}} {{.Kind}} {{.Key}} {{.Value}}{{.Source}}{{.Source}} {{printf "%.2f" .Confidence}}{{if not .VoidsID}}{{end}}{{if not .VoidsID}}{{end}}
+