Commit Graph
12 Commits
Author SHA1 Message Date
Sycun 9a68a17cec fix: the password-reset entry builds the cmd/server package, not one file
`./run.sh --reset-admin-password` rebuilds the binary whenever it is missing or
older than the sources, through build_go_project_quiet - the one build path left
that compiled the single file `cmd/server/main.go`. A file-based go build only
compiles the file it names, so it dropped every sibling of package main that
this PR added; measured on the parent commit:

    cmd/server/main.go:35:22: undefined: updateCommandIfNeeded

(the symbol lives in cmd/server/update_cli.go), which made the documented
password-reset entry exactly the path that could not build itself. The normal
start path and upgrade.sh already build `./cmd/server`; the quiet path now does
too, and a test scans run.sh, upgrade.sh and scripts/*.sh so a file-based
go build cannot come back unnoticed - it fails on the pre-fix tree with the
command named.
2026-10-08 16:16:14 +08:00
Sycun dc5c4d6a75 fix: build the server through the package, not one file
The CLI now lives in two files (main.go and update_cli.go), so
`go build cmd/server/main.go` compiles only main.go and leaves
updateCommandIfNeeded undefined - which is exactly how run.sh (twice) and both
READMEs built. `go build ./cmd/server` compiles the whole package; run.sh's
rebuild check already scans internal/ and cmd/ for newer sources, so nothing
else needed adjusting.
2026-10-07 12:11:50 +08:00
temp e218316c55 Add token usage tracking and UI refinements 2026-08-24 00:05:05 +08:00
公明 7b6f56e476 Add files via upload 2026-07-24 16:43:01 +08:00
公明 cb0d61a48d Add files via upload 2026-07-20 10:48:28 +08:00
公明 bd80010cda Add files via upload 2026-07-09 19:24:20 +08:00
公明 9887589d99 Add files via upload 2026-06-13 12:15:55 +08:00
公明 f9e1ca0e2d Add files via upload 2026-05-15 11:49:53 +08:00
公明 6321df417b Add files via upload 2026-01-17 14:17:20 +08:00
公明 dccbb80fa4 Add files via upload 2026-01-08 22:54:36 +08:00
公明 9254542f3d Update run.sh 2025-11-25 21:28:12 +08:00
公明 add33e1cf7 Add files via upload 2025-11-08 18:56:23 +08:00