An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Support opening assets through other apps on HarmonyOS NEXT https://github.com/siyuan-note/siyuan/issues/15691
Daniel174a7befbeea
diff --git a/kernel/harmony/kernel.go b/kernel/harmony/kernel.goindex b9b3f754c4..40bf54a274 100644--- a/kernel/harmony/kernel.go+++ b/kernel/harmony/kernel.go@@ -93,18 +93,18 @@ func SetHttpServerPort(port int) {}//export GetCurrentWorkspacePath-func GetCurrentWorkspacePath() string {- return util.WorkspaceDir+func GetCurrentWorkspacePath() *C.char {+ return C.CString(util.WorkspaceDir)}//export GetAssetAbsPath-func GetAssetAbsPath(asset string) (ret string) {- ret, err := model.GetAssetAbsPath(asset)- if err != nil {- logging.LogErrorf("get asset [%s] abs path failed: %s", asset, err)- ret = asset+func GetAssetAbsPath(relativePath *C.char) *C.char {+ absPath, err := model.GetAssetAbsPath(C.GoString(relativePath))+ if nil != err {+ logging.LogErrorf("get asset abs path failed: %s", err)+ return relativePath}- return+ return C.CString(absPath)}//export GetMimeTypeByExt