Commit Graph

22654 Commits

Author SHA1 Message Date
Daniel ef847d9d0d ✨ New default appearance icon https://github.com/siyuan-note/siyuan/issues/7976
Signed-off-by: Daniel <845765@qq.com>
v3.7.0-dev4
2026-05-14 23:11:24 +08:00
Daniel 82fa906966 ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-14 22:53:16 +08:00
Vanessa 9afa9ae4a2 🎨 https://github.com/siyuan-note/siyuan/issues/17384 2026-05-14 22:00:10 +08:00
Vanessa ce05a91673 Merge remote-tracking branch 'origin/dev' into dev 2026-05-14 21:13:30 +08:00
Vanessa 730e53d94c 🎨 https://github.com/siyuan-note/siyuan/issues/17677 2026-05-14 21:13:12 +08:00
Daniel 4df94f378e 🎨 Graph view zoom control is too sensitive https://github.com/siyuan-note/siyuan/issues/17662
Signed-off-by: Daniel <845765@qq.com>
2026-05-14 20:49:08 +08:00
Daniel 7d3225164c ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-14 20:49:07 +08:00
Daniel d7d06a98e1 ✨ New default appearance icon https://github.com/siyuan-note/siyuan/issues/7976
Signed-off-by: Daniel <845765@qq.com>
2026-05-14 12:37:47 +08:00
Daniel 9f9769c6d5 ✨ New default appearance icon https://github.com/siyuan-note/siyuan/issues/7976
Signed-off-by: Daniel <845765@qq.com>
2026-05-14 12:37:47 +08:00
Daniel d7bb2fb176 ✨ New default appearance icon https://github.com/siyuan-note/siyuan/issues/7976
Signed-off-by: Daniel <845765@qq.com>
2026-05-14 12:37:47 +08:00
Daniel 269d3af9f5 ✨ New default appearance icon https://github.com/siyuan-note/siyuan/issues/7976
Signed-off-by: Daniel <845765@qq.com>
2026-05-14 12:37:46 +08:00
Vanessa 483d3be7fe 🎨 https://github.com/siyuan-note/siyuan/issues/17384 2026-05-14 11:48:06 +08:00
Vanessa d8153b6e58 Merge remote-tracking branch 'origin/dev' into dev 2026-05-14 11:26:40 +08:00
Vanessa b55aa71b10 🎨 https://github.com/siyuan-note/siyuan/issues/8890 2026-05-14 11:26:25 +08:00
Daniel 20cbd21b7a ✨ New default appearance icon https://github.com/siyuan-note/siyuan/issues/7976
Signed-off-by: Daniel <845765@qq.com>
2026-05-14 10:29:03 +08:00
Daniel 64867d02f5 ✨ New default appearance icon https://github.com/siyuan-note/siyuan/issues/7976
Signed-off-by: Daniel <845765@qq.com>
2026-05-14 10:15:28 +08:00
Daniel d9bc87d95a ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-14 09:52:14 +08:00
Daniel eaa3a35e5a ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-14 09:44:30 +08:00
Daniel a50b15fbbd ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-14 09:35:43 +08:00
Daniel ade459cf08 ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-14 00:05:36 +08:00
Daniel e1482b4141 ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-13 22:36:54 +08:00
Daniel 6c4471aff1 ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-13 21:41:59 +08:00
Daniel b0177c4aa1 ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-13 21:18:21 +08:00
Daniel b6ba091f7d ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-13 19:55:40 +08:00
Daniel 490ede88f6 ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-13 16:41:58 +08:00
Daniel 1dd7321fd5 🎨 Supports returning a list of files from data snapshots via filename search https://github.com/siyuan-note/siyuan/issues/17258
Signed-off-by: Daniel <845765@qq.com>
2026-05-13 11:26:35 +08:00
Daniel fac8f9b5f9 📝 Provide online user guides via the publishing service https://github.com/siyuan-note/siyuan/issues/17673
Signed-off-by: Daniel <845765@qq.com>
2026-05-13 10:31:28 +08:00
Daniel 2bfa97a802 🎨 Supports returning a list of files from data snapshots via filename search https://github.com/siyuan-note/siyuan/issues/17258
Signed-off-by: Daniel <845765@qq.com>
2026-05-13 10:31:12 +08:00
Vanessa f57fe14355 Merge remote-tracking branch 'origin/dev' into dev 2026-05-13 09:21:03 +08:00
Vanessa 6c4ef831a5 🎨 https://github.com/siyuan-note/siyuan/issues/17571 2026-05-13 09:20:50 +08:00
Daniel b00314167d 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-13 08:55:13 +08:00
Yingyi / 颖逸 c4ae1d44e5 🎨 Fix kernel plugin related issues (#17670)
* feat(kernel-plugin): Prevent storage.put and storage.remove in read-only mode

* feat(kernel-plugin): Reload petal plugin on install

When installing a Bazaar package, ensure that if the corresponding petal exists and is enabled we call SetPetalEnabled to trigger a kernel plugin reload before scheduling the plugin reload. This ensures the petal's kernel plugin picks up the newly installed package immediately.

* feat(kernel-plugin): Use gin-contrib/sse.Event for SSE handling

Replace the custom sseEvent type with gin-contrib/sse.Event and update the SSE handling pipeline. The JS handler now accepts an event object (data, event, id, retry), which is validated and converted to sse.Event before being sent on the channel; the server renders events with c.Render(-1, e). Added import for github.com/gin-contrib/sse and bumped gin-contrib/sse to v1.1.1 in go.mod (go.sum updated accordingly).

* feat(kernel-plugin): Add global kernel plugin start/stop hooks

Introduce OnKernelPluginsStart and OnKernelPluginsStop hooks and replace the previous OnKernelPluginShutdown usage. Update Close to call OnKernelPluginsStop and wire the new hooks in the plugin manager (OnKernelPluginsStart -> GetManager().Start, OnKernelPluginsStop -> GetManager().Stop). Existing per-plugin OnKernelPluginStart/OnKernelPluginStop handlers remain unchanged. This adds global lifecycle hooks to start and stop all valid plugins via the manager.

* feat(kernel-plugin): Add plugin manager state and bazaar handling

Call kernel plugin start/stop callbacks when bazaar settings change and add lifecycle state to the PluginManager. setting.go now triggers model.OnKernelPluginsStop or model.OnKernelPluginsStart when Bazaar.PetalDisabled or Bazaar.Trust change. plugin/manager.go introduces a PluginManagerState enum, initializes the manager as stopped, adds a State() accessor, and changes lifecycleMu to an RWMutex. Start/Stop now check the current state to avoid redundant operations, skip starting if bazaar config disables plugins, and update the manager state after start/stop, with additional log messages. These changes improve safety around concurrent start/stop and ensure bazaar configuration is honored.

* feat(kernel-plugin): Add plugin hot-reload watcher and per-plugin dirs

Add fsnotify-based watcher and manager context to detect kernel.js changes and trigger plugin hot-reloads. Introduce pluginsDir, pluginDir and storageDir fields and use storageDir in storage API to prevent path traversal. Replace single plugin mutex map with per-plugin mutex map, serialize start/stop per plugin, and adjust StartPlugin/StopPlugin flow to stop first for hot-reload, honor Bazaar config flags, and propagate start context. Update KernelPlugin to accept a start context and set per-plugin directories. Add helper functions to add/remove plugin dirs from the watcher and simplify GetLoadedPlugin. (Note: go.sum changes are present but not described.)

* feat(kernel-plugin): Add storage watcher and plugin reload improvements

Introduce per-plugin fsnotify storage watcher and expose a JS API for it (siyuan.storage.watcher.add/remove). KernelPlugin now accepts a parent context, creates an fsnotify.Watcher, starts a storage watch goroutine that publishes standardized runtime events (createEventMessage) for fs changes, and provides addStorageWatch/removeStorageWatch helpers. Manager API renamed to addPluginSourceWatch/removePluginSourceWatch with safer watcher handling and clearer reload logging; StartPlugin now passes the manager context into NewKernelPlugin. Also refactor runtime start/stop event publishing to use createEventMessage and add minor logging/error handling for watcher creation and path watch operations. The JS watcher object is frozen and integrated into siyuan.storage.
2026-05-13 08:24:46 +08:00
Daniel d7b77d945e 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
v3.7.0-dev3
2026-05-12 22:07:01 +08:00
Daniel de14586bb2 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 21:49:19 +08:00
Daniel 90031d4d04 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 21:32:48 +08:00
Daniel 14147754ea 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 21:11:21 +08:00
Daniel ccd35d5af0 ⬆️ Upgrade lute
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 21:02:11 +08:00
Daniel d7b74081ca 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 20:52:11 +08:00
Daniel 08f3a81ae2 🔒 Stored XSS via Attribute View name to Electron renderer RCE in SiYuan https://github.com/siyuan-note/siyuan/security/advisories/GHSA-2h64-c999-c9r6
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 19:59:25 +08:00
Daniel 8626d7f1c3 🐛 Fix npe
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 19:02:20 +08:00
Daniel 55726b30cd ⬆️ Upgrade lute
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 17:59:58 +08:00
Daniel 94082e9b2d 🔒 Fix some security vulnerabilities CNVD-2026-19400
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 17:58:15 +08:00
Daniel 3392e8667e 🐛 Fix build
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 16:50:14 +08:00
Vanessa 937f9d22ae Merge remote-tracking branch 'origin/dev' into dev 2026-05-12 12:11:20 +08:00
Vanessa 106a958225 🎨 https://github.com/siyuan-note/siyuan/issues/17384 2026-05-12 12:11:02 +08:00
Daniel d7e9e52a89 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 11:43:33 +08:00
Daniel 7589196f9e 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 11:22:48 +08:00
Daniel 56e2fb4932 🔨 Update build scripts
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 11:20:03 +08:00
Daniel dfb331e589 🎨 Clear all cached data when open the user guide
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 00:14:15 +08:00
Vanessa a5de2c8fba 🎨 https://github.com/siyuan-note/siyuan/issues/17258 2026-05-11 23:03:48 +08:00