Commit Graph

4451 Commits

Author SHA1 Message Date
Daniel 0bc765c54a 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-p4m3-mgmm-c664
Signed-off-by: Daniel <845765@qq.com>
2026-06-03 12:18:33 +08:00
Jeffrey Chen 3431a6afeb 🎨 Support setting document title to empty 3 https://github.com/siyuan-note/siyuan/pull/17110 (#17468) 2026-06-03 11:33:05 +08:00
Daniel def96bf85c ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-06-01 17:00:02 +08:00
Daniel 587f8bcd04 🎨 https://github.com/siyuan-note/siyuan/issues/17796
Signed-off-by: Daniel <845765@qq.com>
2026-06-01 13:07:09 +08:00
Daniel 4437737f95 🎨 https://github.com/siyuan-note/siyuan/issues/17796
Signed-off-by: Daniel <845765@qq.com>
2026-06-01 11:13:51 +08:00
Daniel 54ddee0a9a 🎨 https://github.com/siyuan-note/siyuan/issues/15932
Signed-off-by: Daniel <845765@qq.com>
2026-05-31 20:06:29 +08:00
Daniel fb32543ae6 ✨ Support Model Context Protocol (MCP) https://github.com/siyuan-note/siyuan/issues/13795
Signed-off-by: Daniel <845765@qq.com>
2026-05-31 19:50:20 +08:00
Daniel 7b6f5d84cc ✨ Semantic search using AI embeddings https://github.com/siyuan-note/siyuan/issues/17788
Signed-off-by: Daniel <845765@qq.com>
2026-05-31 11:20:20 +08:00
Daniel de8a724a9a ✨ Semantic search using AI embeddings https://github.com/siyuan-note/siyuan/issues/17788
Signed-off-by: Daniel <845765@qq.com>
2026-05-31 10:18:07 +08:00
Daniel 5a02e7b28f ✨ Semantic search using AI embeddings https://github.com/siyuan-note/siyuan/issues/17788
Signed-off-by: Daniel <845765@qq.com>
2026-05-31 09:46:42 +08:00
Daniel 08aaaedb13 ✨ Semantic search using AI embeddings https://github.com/siyuan-note/siyuan/issues/17788
Signed-off-by: Daniel <845765@qq.com>
2026-05-30 21:04:01 +08:00
Daniel 457bd9b2de 🎨 https://github.com/siyuan-note/siyuan/issues/17785
Signed-off-by: Daniel <845765@qq.com>
2026-05-30 11:07:58 +08:00
Daniel 394153076c 🎨 https://github.com/siyuan-note/siyuan/issues/17784
Signed-off-by: Daniel <845765@qq.com>
2026-05-30 10:40:50 +08:00
Jeffrey Chen 899b8c6eb3 🐛 After opening the marketplace package in the downloaded list, if there is an update, the README will not be displayed (#17755) 2026-05-29 09:32:49 +08:00
Jeffrey Chen c9ff08a745 🎨 Improve marketplace package compatibility check and batch update (#17757)
* 🎨 Improve marketplace package compatibility check and batch update https://github.com/siyuan-note/siyuan/issues/17754

* 🎨 Improve marketplace package compatibility check and batch update https://github.com/siyuan-note/siyuan/issues/17754
2026-05-29 09:31:53 +08:00
Daniel 95b5c9655a 🎨 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-28 21:24:33 +08:00
Daniel 32584940dd 🐛 https://github.com/siyuan-note/siyuan/issues/17773
Signed-off-by: Daniel <845765@qq.com>
2026-05-28 20:21:44 +08:00
Daniel 3c875a8b46 🧑‍💻 Add kernel API /api/history/createDocHistory https://github.com/siyuan-note/siyuan/issues/17774
Signed-off-by: Daniel <845765@qq.com>
2026-05-28 20:14:19 +08:00
Jeffrey Chen 04e8082084 🎨 Fix nil pointer when AV block key values or block object is missing https://ld246.com/article/1779156833356 (#17719) 2026-05-28 17:09:45 +08:00
Daniel 64d0c63274 🎨 https://github.com/siyuan-note/siyuan/issues/17707
Signed-off-by: Daniel <845765@qq.com>
2026-05-27 17:31:25 +08:00
Daniel e4c5df67ce 🎨 https://github.com/siyuan-note/siyuan/issues/17707
Signed-off-by: Daniel <845765@qq.com>
2026-05-27 17:18:23 +08:00
Daniel a816a79fa5 🎨 Improve search docs https://github.com/siyuan-note/siyuan/issues/17727
Signed-off-by: Daniel <845765@qq.com>
2026-05-26 18:50:50 +08:00
Daniel e493630d6d 🎨 Improve workspace path update
Signed-off-by: Daniel <845765@qq.com>
2026-05-26 18:05:37 +08:00
Daniel 0c23208aba 🎨 https://github.com/siyuan-note/siyuan/issues/17258
Signed-off-by: Daniel <845765@qq.com>
2026-05-25 18:21:28 +08:00
Daniel 70e21a192f 🎨 https://github.com/siyuan-note/siyuan/pull/17732
Signed-off-by: Daniel <845765@qq.com>
2026-05-25 17:39:26 +08:00
Daniel 3d70e65fd6 🎨 https://github.com/siyuan-note/siyuan/pull/17732
Signed-off-by: Daniel <845765@qq.com>
2026-05-25 17:25:32 +08:00
Daniel dc9bce1a31 🎨 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-25 17:13:25 +08:00
Jeffrey Chen 16b8c1190a 🎨 Prevent changing or removing primary key columns in attribute view (#17732) 2026-05-25 17:13:02 +08:00
Daniel 267a143af5 🐛 https://github.com/siyuan-note/siyuan/issues/17716
Signed-off-by: Daniel <845765@qq.com>
2026-05-24 21:30:48 +08:00
Daniel f0488af4b3 🐛 https://github.com/siyuan-note/siyuan/issues/17716
Signed-off-by: Daniel <845765@qq.com>
2026-05-24 21:25:11 +08:00
Daniel e60093379c ✨ Shorthands on mobile https://github.com/siyuan-note/siyuan/issues/14414#issuecomment-4470321595
Signed-off-by: Daniel <845765@qq.com>
2026-05-17 21:11:51 +08:00
Daniel ff00809eaf 🎨 Rename "Access auth code" to "Lock screen password" https://github.com/siyuan-note/siyuan/issues/17701
Signed-off-by: Daniel <845765@qq.com>
2026-05-17 17:52:55 +08:00
Daniel 38c85d2469 ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-17 11:59:58 +08:00
Jeffrey Chen 04915380b1 🧑‍💻 Add kernel API /api/lute/md2html (#17697) 2026-05-17 11:29:22 +08:00
Daniel 0e73daf7e8 ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-17 11:18:07 +08:00
Daniel 4443f1bb76 ✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
2026-05-17 11:10:00 +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
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 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 94082e9b2d 🔒 Fix some security vulnerabilities CNVD-2026-19400
Signed-off-by: Daniel <845765@qq.com>
2026-05-12 17:58:15 +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
Daniel 4b1c10ee94 🎨 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-11 20:03:16 +08:00
Jeffrey Chen c20212594d ♻️ Extract IsMobileContainer and replace the mobile ternary judgment (#17661) 2026-05-11 00:03:33 +08:00
Daniel 58da3744e1 🎨 Improve text
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 19:59:40 +08:00
Daniel 06065475cd 🎨 Improve text https://github.com/siyuan-note/siyuan/issues/14414
Signed-off-by: Daniel <845765@qq.com>
2026-05-10 15:36:29 +08:00
Daniel c548950b77 ✨ Shorthands on mobile https://github.com/siyuan-note/siyuan/issues/14414
Signed-off-by: Daniel <845765@qq.com>
2026-05-09 20:35:38 +08:00