An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Daniel7345f451e264
diff --git a/kernel/cli/cmd/root.go b/kernel/cli/cmd/root.goindex 36e741c345..33741136e3 100644--- a/kernel/cli/cmd/root.go+++ b/kernel/cli/cmd/root.go@@ -42,6 +42,7 @@ var rootCmd = &cobra.Command{PersistentPreRunE: func(cmd *cobra.Command, args []string) error {// 确定工作目录if exePath, err := os.Executable(); err == nil {+ exePath, _ = filepath.EvalSymlinks(exePath)util.WorkingDir = filepath.Dir(exePath)}diff --git a/kernel/cli/cmd/serve.go b/kernel/cli/cmd/serve.goindex 05f087a7c7..1dee7f4c65 100644--- a/kernel/cli/cmd/serve.go+++ b/kernel/cli/cmd/serve.go@@ -55,6 +55,7 @@ var serveCmd = &cobra.Command{// 设置工作目录为可执行文件所在目录if exePath, err := os.Executable(); err == nil {+ exePath, _ = filepath.EvalSymlinks(exePath)util.WorkingDir = filepath.Dir(exePath)}