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 HarmonyOS NEXT system https://github.com/siyuan-note/siyuan/issues/13184
Daniela20526797bac
diff --git a/kernel/harmony/kernel.go b/kernel/harmony/kernel.goindex cacff267da..78783b5fb8 100644--- a/kernel/harmony/kernel.go+++ b/kernel/harmony/kernel.go@@ -34,10 +34,12 @@ import ("github.com/siyuan-note/siyuan/kernel/util")+//export StartKernelFastfunc StartKernelFast(container, appDir, workspaceBaseDir, localIPs string) {go server.Serve(true)}+//export StartKernelfunc StartKernel(container, appDir, workspaceBaseDir, timezoneID, localIPs, lang, osVer string) {SetTimezone(container, appDir, timezoneID)util.Mode = "prod"@@ -69,26 +71,32 @@ func StartKernel(container, appDir, workspaceBaseDir, timezoneID, localIPs, lang}()}+//export Languagefunc Language(num int) string {return model.Conf.Language(num)}+//export ShowMsgfunc ShowMsg(msg string, timeout int) {util.PushMsg(msg, timeout)}+//export IsHttpServingfunc IsHttpServing() bool {return util.HttpServing}+//export SetHttpServerPortfunc SetHttpServerPort(port int) {filelock.AndroidServerPort = port}+//export GetCurrentWorkspacePathfunc GetCurrentWorkspacePath() string {return util.WorkspaceDir}+//export GetAssetAbsPathfunc GetAssetAbsPath(asset string) (ret string) {ret, err := model.GetAssetAbsPath(asset)if err != nil {@@ -98,10 +106,12 @@ func GetAssetAbsPath(asset string) (ret string) {return}+//export GetMimeTypeByExtfunc GetMimeTypeByExt(ext string) string {return util.GetMimeTypeByExt(ext)}+//export SetTimezonefunc SetTimezone(container, appDir, timezoneID string) {if "ios" == container {os.Setenv("ZONEINFO", filepath.Join(appDir, "app", "zoneinfo.zip"))@@ -115,6 +125,7 @@ func SetTimezone(container, appDir, timezoneID string) {time.Local = z}+//export DisableFeaturefunc DisableFeature(feature string) {util.DisableFeature(feature)}