reactor(cli): move memoh cli to tui

1. Split the oversized `cmd/agent` entrypoint into a multi-file package and update dev/build scripts to use the package path instead of compiling `main.go` directly.
2. Add a new `memoh` terminal UI for local bot chat, with Bubble Tea
This commit is contained in:
晨苒
2026-04-14 00:39:34 +08:00
parent 8c9f222783
commit d50eeea114
32 changed files with 2140 additions and 1962 deletions
+1 -1
View File
@@ -11,4 +11,4 @@ if [ "$confirmation" != "yes" ]; then
exit 0
fi
go run "${PROJECT_ROOT}/cmd/agent/main.go" migrate down
go run "${PROJECT_ROOT}/cmd/agent" migrate down
+1 -1
View File
@@ -3,4 +3,4 @@ set -e
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
go run "${PROJECT_ROOT}/cmd/agent/main.go" migrate up
go run "${PROJECT_ROOT}/cmd/agent" migrate up
+3 -3
View File
@@ -1,4 +1,4 @@
çç#!/usr/bin/env bash
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
@@ -23,8 +23,8 @@ Usage: scripts/release.sh [options]
Options:
--os <os> Target OS (default: current GOOS)
--arch <arch> Target ARCH (default: current GOARCH)
--version <version> Version string injected into memoh binary
--commit-hash <sha> Commit hash injected into memoh binary
--version <version> Version string injected into the memoh CLI
--commit-hash <sha> Commit hash injected into the memoh CLI
--output-dir <dir> Output directory for release artifacts
--prepare-assets Only prepare embedded assets, do not build archive
EOF