An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 修复 macOS 端构建报错
Liang Dingc585ca972f8e
diff --git a/kernel/cmd/cmd.go b/kernel/cmd/cmd.goindex f0d5b5d347..8f13681b25 100644--- a/kernel/cmd/cmd.go+++ b/kernel/cmd/cmd.go@@ -78,10 +78,7 @@ func NewCommand(cmdStr string, cmdId float64, param map[string]interface{}, sessfunc Exec(cmd Cmd) {go func() {- //start := time.Now()defer logging.Recover()cmd.Exec()- //end := time.Now()- //util.Logger.Infof("cmd [%s] exec consumed [%d]ms", cmd.Name(), end.Sub(start).Milliseconds())}()}diff --git a/kernel/model/assets_watcher_darwin.go b/kernel/model/assets_watcher_darwin.goindex 8ad177e8ee..ead49295ff 100644--- a/kernel/model/assets_watcher_darwin.go+++ b/kernel/model/assets_watcher_darwin.go@@ -23,6 +23,7 @@ import ("time""github.com/radovskyb/watcher"+ "github.com/siyuan-note/logging""github.com/siyuan-note/siyuan/kernel/cache""github.com/siyuan-note/siyuan/kernel/util")@@ -51,7 +52,7 @@ func watchAssets() {return}- //util.LogInfof("assets changed: %s", event)+ //logging.LogInfof("assets changed: %s", event)if watcher.Write == event.Op {IncSync()}@@ -62,7 +63,7 @@ func watchAssets() {if !ok {return}- util.LogErrorf("watch assets failed: %s", err)+ logging.LogErrorf("watch assets failed: %s", err)case <-assetsWatcher.Closed:return}@@ -70,13 +71,13 @@ func watchAssets() {}()if err := assetsWatcher.Add(assetsDir); nil != err {- util.LogErrorf("add assets watcher for folder [%s] failed: %s", assetsDir, err)+ logging.LogErrorf("add assets watcher for folder [%s] failed: %s", assetsDir, err)return}- //util.LogInfof("added file watcher [%s]", assetsDir)+ //logging.LogInfof("added file watcher [%s]", assetsDir)if err := assetsWatcher.Start(10 * time.Second); nil != err {- util.LogErrorf("start assets watcher for folder [%s] failed: %s", assetsDir, err)+ logging.LogErrorf("start assets watcher for folder [%s] failed: %s", assetsDir, err)return}}diff --git a/kernel/model/graph.go b/kernel/model/graph.goindex 174a3b3d02..82ff0b45a9 100644--- a/kernel/model/graph.go+++ b/kernel/model/graph.go@@ -164,7 +164,6 @@ func BuildGraph(query string) (boxID string, nodes []*GraphNode, links []*GraphL// 文档块关联rootBlock := getBlockIn(treeBlocks, root.ID)if nil == rootBlock {- //util.LogWarnf("root block is nil [rootID=%s], tree blocks [len=%d], just skip it", root.ID, len(treeBlocks))continue}