fix: cap distiller startup scan and switch to formal SDK module dependency

- replace vendored third_party/homeagent-sdk with formal module dependency
- keep canonical SDK via go.mod pinned commit
- optimize distiller startup loading to stream recent raw records only
- parse timestamps correctly and cap startup load to 5000 records
- remove quadratic string building in raw record parsing
- restore fast startup while preserving memory pipeline
This commit is contained in:
root
2026-07-06 20:18:13 +08:00
parent 50e5dec745
commit b55f1dcf0e
32 changed files with 65 additions and 4322 deletions

3
go.mod
View File

@ -3,12 +3,11 @@ module gitcode.com/JianFeeeee/HomeAgent
go 1.19
require (
gitcode.com/JianFeeeee/homeagent-sdk v0.0.0-20260706112739-e073074a267d
github.com/gorilla/websocket v1.5.3
github.com/mattn/go-sqlite3 v1.14.22
github.com/yanyiwu/gojieba v1.4.7
github.com/yuin/gopher-lua v1.1.2
gitcode.com/JianFeeeee/homeagent-sdk v0.0.0
gopkg.in/yaml.v3 v3.0.1
)
replace gitcode.com/JianFeeeee/homeagent-sdk => ./third_party/homeagent-sdk