An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:memo: Unify kernel Go file headers
Jeffrey Chenab5d96679725
diff --git a/.github/workflows/auto_aur_release_stable.yml b/.github/workflows/auto_aur_release_stable.ymlindex ab28ae016f..ef081b58cb 100644--- a/.github/workflows/auto_aur_release_stable.yml+++ b/.github/workflows/auto_aur_release_stable.yml@@ -68,7 +68,7 @@ jobs:pkgdesc="auto upload to AUR when SiYuan stable release"arch=("x86_64")url="https://b3log.org/siyuan"- license=("AGPL-3.0-only")+ license=("AGPL-3.0-or-later")options=("!strip" "!debug")depends=("fuse2")optdepends=('pandoc: docx export')diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.ymlindex ac3bcc195e..b5c28a10a0 100644--- a/.github/workflows/cd.yml+++ b/.github/workflows/cd.yml@@ -156,6 +156,29 @@ jobs:WORKFLOW_STEPS: ${{ toJSON(steps) }}run: node scripts/report-workflow-outcomes.mjs+ headers:+ name: Source file headers+ needs: prepare+ runs-on: ubuntu-24.04+ permissions:+ contents: read+ steps:+ - uses: actions/checkout@v7+ - uses: actions/setup-node@v7+ with:+ node-version: 24+ - name: Check project source file headers+ id: check_source_file_headers+ # 文件头只是格式约定,偏离不阻塞发布,按其他非阻塞检查的方式记录结果。+ continue-on-error: true+ run: node scripts/check-license-headers.mjs++ - name: Report non-blocking step outcomes+ if: always()+ env:+ WORKFLOW_STEPS: ${{ toJSON(steps) }}+ run: node scripts/report-workflow-outcomes.mjs+contracts:name: API contracts and typesneeds: preparediff --git a/AGENTS.md b/AGENTS.mdindex 69856c2334..6cce0c478a 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -199,6 +199,17 @@ Unambiguous mechanical edits with no behavioral or compatibility impact need no- Do not derive the frontend platform from the kernel reported container or from `data-backend`: a remote kernel reports its own host, so both differ from the platform of the current frontend- `data-frontend` on the root element reports the frontend form (`desktop`, `desktop-window`, `mobile`, `browser-desktop`, `browser-mobile`) and may be used by built-in styles and third-party theme CSS; `data-backend` on the root element is for third-party JavaScript only and must not appear in built-in CSS+11. **Source file headers:** `kernel/**/*.go` and `app/electron/main.js` start with exactly these three lines, then one blank line+ ```+ // SiYuan - https://github.com/siyuan-note/siyuan+ // Copyright (c) 2020-present, b3log.org+ // SPDX-License-Identifier: AGPL-3.0-or-later+ ```+ - Sources in other languages carry no header; remove it from a non-Go file that still has one instead of extending the convention+ - `//go:build` follows the header after a blank line and needs its own blank line before `package`; a build constraint without that blank line silently stops applying+ - Do not add this header under `kernel/plugin/encoding/` (`grafana/sobek-webapi-encoding`, Apache-2.0) or `kernel/heif/internal/h265heic/` (`roticv/h265`, MIT); those subtrees keep their own license and a SiYuan header there would overwrite it+ - `scripts/check-license-headers.mjs` checks both directions; the scopes are declared in `scripts/license-header.mjs`. CI runs it as a non-blocking step, so run it yourself before committing header changes+---## 4. Required toolchaindiff --git a/app/electron/main.js b/app/electron/main.jsindex a1b721f460..289a5676f0 100644--- a/app/electron/main.js+++ b/app/electron/main.js@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later// 开发环境下隐藏 Electron 安全清单控制台提示 https://www.electronjs.org/docs/latest/tutorial/securityprocess.env.ELECTRON_DISABLE_SECURITY_WARNINGS = "true";diff --git a/app/src/layout/dock/agent/frontendCapabilities.ts b/app/src/layout/dock/agent/frontendCapabilities.tsindex 6733b1c103..058f673677 100644--- a/app/src/layout/dock/agent/frontendCapabilities.ts+++ b/app/src/layout/dock/agent/frontendCapabilities.ts@@ -1,19 +1,3 @@-// SiYuan - From thought to insight, with agents-// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.-import type {App} from "../../../index";import type {SearchOpenOptions} from "../../../search/openOptions";import {isDisabledFeature} from "../../../protyle/util/compatibility";diff --git a/app/src/types/config.d.ts b/app/src/types/config.d.tsindex 5c03f7fc8e..8a812714de 100644--- a/app/src/types/config.d.ts+++ b/app/src/types/config.d.ts@@ -1,20 +1,3 @@-/**- * Copyright (C) 2023 SiYuan Community- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License as- * published by the Free Software Foundation, either version 3 of the- * License, or (at your option) any later version.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see <http://www.gnu.org/licenses/>.- */-declare namespace Config {/**diff --git a/kernel/agent/agent.go b/kernel/agent/agent.goindex 4f2509174c..8c7bfff3d2 100644--- a/kernel/agent/agent.go+++ b/kernel/agent/agent.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/anthropic_test.go b/kernel/agent/anthropic_test.goindex be725fddfc..735c2484e0 100644--- a/kernel/agent/anthropic_test.go+++ b/kernel/agent/anthropic_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package agentimport (diff --git a/kernel/agent/assistant_context_test.go b/kernel/agent/assistant_context_test.goindex 391d898e89..0b9cca2ea1 100644--- a/kernel/agent/assistant_context_test.go+++ b/kernel/agent/assistant_context_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/attachments.go b/kernel/agent/attachments.goindex d8d703d19f..80836eb316 100644--- a/kernel/agent/attachments.go+++ b/kernel/agent/attachments.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/attachments_test.go b/kernel/agent/attachments_test.goindex 7e77450666..22e8e667a2 100644--- a/kernel/agent/attachments_test.go+++ b/kernel/agent/attachments_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/capability.go b/kernel/agent/capability.goindex 25c5bd75c3..d92397245d 100644--- a/kernel/agent/capability.go+++ b/kernel/agent/capability.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/capability_test.go b/kernel/agent/capability_test.goindex 63e48a2582..88302eeeeb 100644--- a/kernel/agent/capability_test.go+++ b/kernel/agent/capability_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/compaction.go b/kernel/agent/compaction.goindex 9b695ff77a..f7cd8537c1 100644--- a/kernel/agent/compaction.go+++ b/kernel/agent/compaction.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/compaction_context.go b/kernel/agent/compaction_context.goindex 51a4c988ab..d8ef5a0dd7 100644--- a/kernel/agent/compaction_context.go+++ b/kernel/agent/compaction_context.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/compaction_context_test.go b/kernel/agent/compaction_context_test.goindex ca367c8ef9..257b1eb82e 100644--- a/kernel/agent/compaction_context_test.go+++ b/kernel/agent/compaction_context_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/compaction_test.go b/kernel/agent/compaction_test.goindex 5e227e95cf..5141bb4849 100644--- a/kernel/agent/compaction_test.go+++ b/kernel/agent/compaction_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/decision.go b/kernel/agent/decision.goindex aeabc90fdf..29b743ae5a 100644--- a/kernel/agent/decision.go+++ b/kernel/agent/decision.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package agentimport "encoding/json"diff --git a/kernel/agent/decision_test.go b/kernel/agent/decision_test.goindex db74f32bf2..4447137f0c 100644--- a/kernel/agent/decision_test.go+++ b/kernel/agent/decision_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package agentimport (diff --git a/kernel/agent/gemini_interactions_test.go b/kernel/agent/gemini_interactions_test.goindex 4d63bf0ee4..be4f45bd64 100644--- a/kernel/agent/gemini_interactions_test.go+++ b/kernel/agent/gemini_interactions_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package agentimport (diff --git a/kernel/agent/gemini_parallel_tools_test.go b/kernel/agent/gemini_parallel_tools_test.goindex ed8fc124f8..dbf410cd03 100644--- a/kernel/agent/gemini_parallel_tools_test.go+++ b/kernel/agent/gemini_parallel_tools_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/instructions_test.go b/kernel/agent/instructions_test.goindex 8e85f28962..cb1c44b049 100644--- a/kernel/agent/instructions_test.go+++ b/kernel/agent/instructions_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package agentimport (diff --git a/kernel/agent/mcp.go b/kernel/agent/mcp.goindex a6092a231d..1d5766171b 100644--- a/kernel/agent/mcp.go+++ b/kernel/agent/mcp.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/mcp_test.go b/kernel/agent/mcp_test.goindex 3f37c78e8b..ec8e86ac4c 100644--- a/kernel/agent/mcp_test.go+++ b/kernel/agent/mcp_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package agentimport (diff --git a/kernel/agent/modelmeta.go b/kernel/agent/modelmeta.goindex b983a13a59..2de5ea102c 100644--- a/kernel/agent/modelmeta.go+++ b/kernel/agent/modelmeta.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/modelmeta_online.go b/kernel/agent/modelmeta_online.goindex 0837c0cf10..c1d7d4020c 100644--- a/kernel/agent/modelmeta_online.go+++ b/kernel/agent/modelmeta_online.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/modelmeta_test.go b/kernel/agent/modelmeta_test.goindex fba64f2962..d31537b391 100644--- a/kernel/agent/modelmeta_test.go+++ b/kernel/agent/modelmeta_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/plugin_workflow.go b/kernel/agent/plugin_workflow.goindex 0996879874..d5ee6b88de 100644--- a/kernel/agent/plugin_workflow.go+++ b/kernel/agent/plugin_workflow.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/plugin_workflow_test.go b/kernel/agent/plugin_workflow_test.goindex b028474fb0..e809560baf 100644--- a/kernel/agent/plugin_workflow_test.go+++ b/kernel/agent/plugin_workflow_test.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/prompt_test.go b/kernel/agent/prompt_test.goindex da5f2c633d..28bb11a2a5 100644--- a/kernel/agent/prompt_test.go+++ b/kernel/agent/prompt_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/reasoning_tags.go b/kernel/agent/reasoning_tags.goindex 8a0b723841..21918bf872 100644--- a/kernel/agent/reasoning_tags.go+++ b/kernel/agent/reasoning_tags.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/reasoning_tags_test.go b/kernel/agent/reasoning_tags_test.goindex fa49c6876a..11abe809a4 100644--- a/kernel/agent/reasoning_tags_test.go+++ b/kernel/agent/reasoning_tags_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/runtime.go b/kernel/agent/runtime.goindex ea8691ff21..d203b55394 100644--- a/kernel/agent/runtime.go+++ b/kernel/agent/runtime.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/session.go b/kernel/agent/session.goindex 612f3fa93d..dd6ebd3551 100644--- a/kernel/agent/session.go+++ b/kernel/agent/session.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/session_test.go b/kernel/agent/session_test.goindex 4400088e3b..14f931747f 100644--- a/kernel/agent/session_test.go+++ b/kernel/agent/session_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/snippet_test.go b/kernel/agent/snippet_test.goindex 0e41bea5d1..d6bb588bbf 100644--- a/kernel/agent/snippet_test.go+++ b/kernel/agent/snippet_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package agentimport (diff --git a/kernel/agent/stream_finish_reason_test.go b/kernel/agent/stream_finish_reason_test.goindex b57ebfc272..76c5f9ee5a 100644--- a/kernel/agent/stream_finish_reason_test.go+++ b/kernel/agent/stream_finish_reason_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/stream_timeout_test.go b/kernel/agent/stream_timeout_test.goindex a720dff25f..42b839f787 100644--- a/kernel/agent/stream_timeout_test.go+++ b/kernel/agent/stream_timeout_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/title_test.go b/kernel/agent/title_test.goindex f02ecd62a3..6e3bd9987d 100644--- a/kernel/agent/title_test.go+++ b/kernel/agent/title_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/tokens.go b/kernel/agent/tokens.goindex 020de01960..4a28fb35b8 100644--- a/kernel/agent/tokens.go+++ b/kernel/agent/tokens.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/tool_call_stream.go b/kernel/agent/tool_call_stream.goindex 6d5a4d6c42..aa33227fd5 100644--- a/kernel/agent/tool_call_stream.go+++ b/kernel/agent/tool_call_stream.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/tool_call_stream_test.go b/kernel/agent/tool_call_stream_test.goindex f85a26b56e..632ce36a2f 100644--- a/kernel/agent/tool_call_stream_test.go+++ b/kernel/agent/tool_call_stream_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/tool_round_limit.go b/kernel/agent/tool_round_limit.goindex d601885103..a62c7167ef 100644--- a/kernel/agent/tool_round_limit.go+++ b/kernel/agent/tool_round_limit.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/tool_round_limit_test.go b/kernel/agent/tool_round_limit_test.goindex 13e3c8bf98..8b91e50348 100644--- a/kernel/agent/tool_round_limit_test.go+++ b/kernel/agent/tool_round_limit_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/tools.go b/kernel/agent/tools.goindex 9b4bb8c9cc..9e0bba8f29 100644--- a/kernel/agent/tools.go+++ b/kernel/agent/tools.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/tools_test.go b/kernel/agent/tools_test.goindex 3a533163e7..c4b5aabb06 100644--- a/kernel/agent/tools_test.go+++ b/kernel/agent/tools_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage agentdiff --git a/kernel/agent/variables_test.go b/kernel/agent/variables_test.goindex a8bb7af876..4c340e5d6b 100644--- a/kernel/agent/variables_test.go+++ b/kernel/agent/variables_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package agentimport (diff --git a/kernel/agent/web_test.go b/kernel/agent/web_test.goindex ba51f0273c..fa5b72b56d 100644--- a/kernel/agent/web_test.go+++ b/kernel/agent/web_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package agentimport (diff --git a/kernel/api/account.go b/kernel/api/account.goindex 5c9a407b0e..b584525883 100644--- a/kernel/api/account.go+++ b/kernel/api/account.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/agent.go b/kernel/api/agent.goindex 0fe15b2ac2..0501978c2e 100644--- a/kernel/api/agent.go+++ b/kernel/api/agent.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/agent_instructions.go b/kernel/api/agent_instructions.goindex 535d213a1d..70ef09ad47 100644--- a/kernel/api/agent_instructions.go+++ b/kernel/api/agent_instructions.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/agent_timeout_test.go b/kernel/api/agent_timeout_test.goindex 4d67380085..7dfd04950a 100644--- a/kernel/api/agent_timeout_test.go+++ b/kernel/api/agent_timeout_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/ai.go b/kernel/api/ai.goindex fb13768991..350a4e4745 100644--- a/kernel/api/ai.go+++ b/kernel/api/ai.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/ai_contract.go b/kernel/api/ai_contract.goindex a47eb5138b..b625b52724 100644--- a/kernel/api/ai_contract.go+++ b/kernel/api/ai_contract.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/ai_decision.go b/kernel/api/ai_decision.goindex 2f1b79bc88..9ea1794d3e 100644--- a/kernel/api/ai_decision.go+++ b/kernel/api/ai_decision.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/ai_decision_test.go b/kernel/api/ai_decision_test.goindex 0f2c13438a..da557a6c01 100644--- a/kernel/api/ai_decision_test.go+++ b/kernel/api/ai_decision_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/ai_disabled_test.go b/kernel/api/ai_disabled_test.goindex 91a6ad4786..ff77b9897e 100644--- a/kernel/api/ai_disabled_test.go+++ b/kernel/api/ai_disabled_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/ai_editor_test.go b/kernel/api/ai_editor_test.goindex e201f18a09..17e6dc34a4 100644--- a/kernel/api/ai_editor_test.go+++ b/kernel/api/ai_editor_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/ai_provider_test.go b/kernel/api/ai_provider_test.goindex 07d2fd5b03..3e66791062 100644--- a/kernel/api/ai_provider_test.go+++ b/kernel/api/ai_provider_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/appearance_notifications_test.go b/kernel/api/appearance_notifications_test.goindex 6e74b95c08..6e48d22c4d 100644--- a/kernel/api/appearance_notifications_test.go+++ b/kernel/api/appearance_notifications_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/archive.go b/kernel/api/archive.goindex 310b6a1b78..efea22ae43 100644--- a/kernel/api/archive.go+++ b/kernel/api/archive.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/archive_test.go b/kernel/api/archive_test.goindex 96ae6573a2..db709ef4c3 100644--- a/kernel/api/archive_test.go+++ b/kernel/api/archive_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/api/asset.go b/kernel/api/asset.goindex ca56df122e..4ebf0f7e46 100644--- a/kernel/api/asset.go+++ b/kernel/api/asset.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/asset_annotation.go b/kernel/api/asset_annotation.goindex 1a656b5b53..c832c70326 100644--- a/kernel/api/asset_annotation.go+++ b/kernel/api/asset_annotation.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/asset_annotation_test.go b/kernel/api/asset_annotation_test.goindex 186bb20e08..6a9446e1e0 100644--- a/kernel/api/asset_annotation_test.go+++ b/kernel/api/asset_annotation_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/asset_authorization_test.go b/kernel/api/asset_authorization_test.goindex f36606fa94..3b421b8cad 100644--- a/kernel/api/asset_authorization_test.go+++ b/kernel/api/asset_authorization_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/asset_crypto_test.go b/kernel/api/asset_crypto_test.goindex bdc43dd83a..f77036c461 100644--- a/kernel/api/asset_crypto_test.go+++ b/kernel/api/asset_crypto_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/asset_download_authorization_test.go b/kernel/api/asset_download_authorization_test.goindex ec70aa189e..41b4439444 100644--- a/kernel/api/asset_download_authorization_test.go+++ b/kernel/api/asset_download_authorization_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/api/asset_html_paste_test.go b/kernel/api/asset_html_paste_test.goindex 9a1f0f0a09..59649f2b4d 100644--- a/kernel/api/asset_html_paste_test.go+++ b/kernel/api/asset_html_paste_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/asset_notification_test.go b/kernel/api/asset_notification_test.goindex 6d41533d3d..38e12b7f8a 100644--- a/kernel/api/asset_notification_test.go+++ b/kernel/api/asset_notification_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/asset_relink.go b/kernel/api/asset_relink.goindex e2a2c2c793..ee1cbb6543 100644--- a/kernel/api/asset_relink.go+++ b/kernel/api/asset_relink.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/asset_relink_test.go b/kernel/api/asset_relink_test.goindex 73cdd45245..bb746e852a 100644--- a/kernel/api/asset_relink_test.go+++ b/kernel/api/asset_relink_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/asset_rename_test.go b/kernel/api/asset_rename_test.goindex a41b4ca68f..05e67b8bd5 100644--- a/kernel/api/asset_rename_test.go+++ b/kernel/api/asset_rename_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/attr.go b/kernel/api/attr.goindex 4e55f65d55..92ae04ce35 100644--- a/kernel/api/attr.go+++ b/kernel/api/attr.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/attr_test.go b/kernel/api/attr_test.goindex eab88a24c0..b0d00908e3 100644--- a/kernel/api/attr_test.go+++ b/kernel/api/attr_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/av.go b/kernel/api/av.goindex f834424e88..7fa0da0bd2 100644--- a/kernel/api/av.go+++ b/kernel/api/av.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/av_authorization_test.go b/kernel/api/av_authorization_test.goindex d767f44d09..448c400885 100644--- a/kernel/api/av_authorization_test.go+++ b/kernel/api/av_authorization_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/av_box_test.go b/kernel/api/av_box_test.goindex 1d5ba1157b..151f10f738 100644--- a/kernel/api/av_box_test.go+++ b/kernel/api/av_box_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/av_context_filter_test.go b/kernel/api/av_context_filter_test.goindex 2797f1ce91..fa092b3bb6 100644--- a/kernel/api/av_context_filter_test.go+++ b/kernel/api/av_context_filter_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/av_contract_automation.go b/kernel/api/av_contract_automation.goindex 2c055f9228..4d70405d6f 100644--- a/kernel/api/av_contract_automation.go+++ b/kernel/api/av_contract_automation.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/av_contract_calendar.go b/kernel/api/av_contract_calendar.goindex 1f24b4452c..c236c3d37d 100644--- a/kernel/api/av_contract_calendar.go+++ b/kernel/api/av_contract_calendar.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/av_contract_mapping.go b/kernel/api/av_contract_mapping.goindex 69495d14f0..1610851788 100644--- a/kernel/api/av_contract_mapping.go+++ b/kernel/api/av_contract_mapping.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/av_contract_render.go b/kernel/api/av_contract_render.goindex 865d2f0f3e..8e41921d3c 100644--- a/kernel/api/av_contract_render.go+++ b/kernel/api/av_contract_render.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/av_row_sort.go b/kernel/api/av_row_sort.goindex 9f23441e6b..cb15145d82 100644--- a/kernel/api/av_row_sort.go+++ b/kernel/api/av_row_sort.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/av_rows.go b/kernel/api/av_rows.goindex 36ce996007..aeba677eee 100644--- a/kernel/api/av_rows.go+++ b/kernel/api/av_rows.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/av_rows_test.go b/kernel/api/av_rows_test.goindex 8389eb0903..8cdcaec1df 100644--- a/kernel/api/av_rows_test.go+++ b/kernel/api/av_rows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/backlink_database_filter.go b/kernel/api/backlink_database_filter.goindex 73c56613bc..be1195d2cd 100644--- a/kernel/api/backlink_database_filter.go+++ b/kernel/api/backlink_database_filter.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/backlink_database_filter_test.go b/kernel/api/backlink_database_filter_test.goindex c36da643bd..ab7aaefb9c 100644--- a/kernel/api/backlink_database_filter_test.go+++ b/kernel/api/backlink_database_filter_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/backlink_ref_filter_test.go b/kernel/api/backlink_ref_filter_test.goindex 46875cb8c3..d92519d1b4 100644--- a/kernel/api/backlink_ref_filter_test.go+++ b/kernel/api/backlink_ref_filter_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/bazaar.go b/kernel/api/bazaar.goindex 16f5867ec0..41c944f7ca 100644--- a/kernel/api/bazaar.go+++ b/kernel/api/bazaar.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/bazaar_rating_test.go b/kernel/api/bazaar_rating_test.goindex 9061852e2b..48cca1c849 100644--- a/kernel/api/bazaar_rating_test.go+++ b/kernel/api/bazaar_rating_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/block.go b/kernel/api/block.goindex 0ea2f27e10..5712cdca42 100644--- a/kernel/api/block.go+++ b/kernel/api/block.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/block_doc_info_publish_test.go b/kernel/api/block_doc_info_publish_test.goindex feb5fc13cf..2e38837cdd 100644--- a/kernel/api/block_doc_info_publish_test.go+++ b/kernel/api/block_doc_info_publish_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/block_op.go b/kernel/api/block_op.goindex 03ec55e9fa..7421bb0246 100644--- a/kernel/api/block_op.go+++ b/kernel/api/block_op.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/block_op_test.go b/kernel/api/block_op_test.goindex b2b3ab451e..5b8e7a8994 100644--- a/kernel/api/block_op_test.go+++ b/kernel/api/block_op_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/block_test.go b/kernel/api/block_test.goindex 4bdebe0f7b..f7169abbde 100644--- a/kernel/api/block_test.go+++ b/kernel/api/block_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/bookmark.go b/kernel/api/bookmark.goindex 8300e6c2ff..dcc918999f 100644--- a/kernel/api/bookmark.go+++ b/kernel/api/bookmark.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/boot_appearance_test.go b/kernel/api/boot_appearance_test.goindex e971d18eb0..8f670d58a0 100644--- a/kernel/api/boot_appearance_test.go+++ b/kernel/api/boot_appearance_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/box_lease.go b/kernel/api/box_lease.goindex 63dce5de79..456049bbe8 100644--- a/kernel/api/box_lease.go+++ b/kernel/api/box_lease.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/box_lease_message_test.go b/kernel/api/box_lease_message_test.goindex c261170a14..1304b984c6 100644--- a/kernel/api/box_lease_message_test.go+++ b/kernel/api/box_lease_message_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/box_lease_test.go b/kernel/api/box_lease_test.goindex 9c4659a8a7..cfbeb844f3 100644--- a/kernel/api/box_lease_test.go+++ b/kernel/api/box_lease_test.go@@ -1,20 +1,8 @@-//go:build (sqlcipher || libsqlcipher) && cgo--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later++//go:build (sqlcipher || libsqlcipher) && cgopackage apidiff --git a/kernel/api/broadcast.go b/kernel/api/broadcast.goindex d9afcce4fe..8bfefd71e2 100644--- a/kernel/api/broadcast.go+++ b/kernel/api/broadcast.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/chatgpt.go b/kernel/api/chatgpt.goindex 1bbe627ed9..3db849548c 100644--- a/kernel/api/chatgpt.go+++ b/kernel/api/chatgpt.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/chatgpt_binding_test.go b/kernel/api/chatgpt_binding_test.goindex 9614656755..4a13dae396 100644--- a/kernel/api/chatgpt_binding_test.go+++ b/kernel/api/chatgpt_binding_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/chatgpt_test.go b/kernel/api/chatgpt_test.goindex 697fdcc93c..eb0a21bccb 100644--- a/kernel/api/chatgpt_test.go+++ b/kernel/api/chatgpt_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/clipboard.go b/kernel/api/clipboard.goindex e03f1daa69..b5c331026c 100644--- a/kernel/api/clipboard.go+++ b/kernel/api/clipboard.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/contract.go b/kernel/api/contract.goindex 04207bbfce..ebf5e91ba2 100644--- a/kernel/api/contract.go+++ b/kernel/api/contract.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_account_test.go b/kernel/api/contract_account_test.goindex e210cfaeae..9fd729938f 100644--- a/kernel/api/contract_account_test.go+++ b/kernel/api/contract_account_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_agent_instructions_test.go b/kernel/api/contract_agent_instructions_test.goindex 38771f2a86..6cbb0cd07e 100644--- a/kernel/api/contract_agent_instructions_test.go+++ b/kernel/api/contract_agent_instructions_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_agent_pinned_test.go b/kernel/api/contract_agent_pinned_test.goindex 0414f1dbe3..cbcb369359 100644--- a/kernel/api/contract_agent_pinned_test.go+++ b/kernel/api/contract_agent_pinned_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_ai_test.go b/kernel/api/contract_ai_test.goindex 72c64737dd..45d52a8a5d 100644--- a/kernel/api/contract_ai_test.go+++ b/kernel/api/contract_ai_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_anthropic_test.go b/kernel/api/contract_anthropic_test.goindex 65aee00e0d..c9d2d2c35d 100644--- a/kernel/api/contract_anthropic_test.go+++ b/kernel/api/contract_anthropic_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_asset_test.go b/kernel/api/contract_asset_test.goindex 14aba31e72..b453a37f5f 100644--- a/kernel/api/contract_asset_test.go+++ b/kernel/api/contract_asset_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_auto_direction_test.go b/kernel/api/contract_auto_direction_test.goindex 14026623c3..b39e0fc8d6 100644--- a/kernel/api/contract_auto_direction_test.go+++ b/kernel/api/contract_auto_direction_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_automation_broadcast_test.go b/kernel/api/contract_av_automation_broadcast_test.goindex 42777a4f6b..5a3480ef39 100644--- a/kernel/api/contract_av_automation_broadcast_test.go+++ b/kernel/api/contract_av_automation_broadcast_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_automation_test.go b/kernel/api/contract_av_automation_test.goindex ceba1bb9db..7563c48ce6 100644--- a/kernel/api/contract_av_automation_test.go+++ b/kernel/api/contract_av_automation_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_calendar_test.go b/kernel/api/contract_av_calendar_test.goindex e5ada888bc..ab55f797de 100644--- a/kernel/api/contract_av_calendar_test.go+++ b/kernel/api/contract_av_calendar_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_conditional_color_test.go b/kernel/api/contract_av_conditional_color_test.goindex 4d926004d5..137e5524d3 100644--- a/kernel/api/contract_av_conditional_color_test.go+++ b/kernel/api/contract_av_conditional_color_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_deprecated_test.go b/kernel/api/contract_av_deprecated_test.goindex 9014ff8b81..dc028bab1b 100644--- a/kernel/api/contract_av_deprecated_test.go+++ b/kernel/api/contract_av_deprecated_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_images_test.go b/kernel/api/contract_av_images_test.goindex af77495785..d06d321ed2 100644--- a/kernel/api/contract_av_images_test.go+++ b/kernel/api/contract_av_images_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_location_mapping_test.go b/kernel/api/contract_av_location_mapping_test.goindex 7f122804ce..0db01ae0d0 100644--- a/kernel/api/contract_av_location_mapping_test.go+++ b/kernel/api/contract_av_location_mapping_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_location_save_test.go b/kernel/api/contract_av_location_save_test.goindex 773d49f6b2..541c974e85 100644--- a/kernel/api/contract_av_location_save_test.go+++ b/kernel/api/contract_av_location_save_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_lunar_test.go b/kernel/api/contract_av_lunar_test.goindex 4d70e097cd..6ba236a197 100644--- a/kernel/api/contract_av_lunar_test.go+++ b/kernel/api/contract_av_lunar_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_publish_readonly_test.go b/kernel/api/contract_av_publish_readonly_test.goindex d8d508e3c0..130edba688 100644--- a/kernel/api/contract_av_publish_readonly_test.go+++ b/kernel/api/contract_av_publish_readonly_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_relation_item_test.go b/kernel/api/contract_av_relation_item_test.goindex 1833867af6..412be692ee 100644--- a/kernel/api/contract_av_relation_item_test.go+++ b/kernel/api/contract_av_relation_item_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_relation_sort_test.go b/kernel/api/contract_av_relation_sort_test.goindex a239efebbf..cff44a3bdc 100644--- a/kernel/api/contract_av_relation_sort_test.go+++ b/kernel/api/contract_av_relation_sort_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_retired_map_test.go b/kernel/api/contract_av_retired_map_test.goindex fd97fa6290..a156f8859c 100644--- a/kernel/api/contract_av_retired_map_test.go+++ b/kernel/api/contract_av_retired_map_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_temporary_sort_test.go b/kernel/api/contract_av_temporary_sort_test.goindex 33c3b4f778..a5796a47bf 100644--- a/kernel/api/contract_av_temporary_sort_test.go+++ b/kernel/api/contract_av_temporary_sort_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_av_test.go b/kernel/api/contract_av_test.goindex 04bdb06d0a..1bfe3d5651 100644--- a/kernel/api/contract_av_test.go+++ b/kernel/api/contract_av_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_basics_test.go b/kernel/api/contract_basics_test.goindex 0a534189b8..4399773d43 100644--- a/kernel/api/contract_basics_test.go+++ b/kernel/api/contract_basics_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_bazaar_cancel_test.go b/kernel/api/contract_bazaar_cancel_test.goindex d669c7a2d2..e65dfe7c2c 100644--- a/kernel/api/contract_bazaar_cancel_test.go+++ b/kernel/api/contract_bazaar_cancel_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_bazaar_reference_test.go b/kernel/api/contract_bazaar_reference_test.goindex 71b390dbc2..ebb36f5aab 100644--- a/kernel/api/contract_bazaar_reference_test.go+++ b/kernel/api/contract_bazaar_reference_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_bazaar_test.go b/kernel/api/contract_bazaar_test.goindex f73dacc914..eb7fd0f4c4 100644--- a/kernel/api/contract_bazaar_test.go+++ b/kernel/api/contract_bazaar_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_block_existence_test.go b/kernel/api/contract_block_existence_test.goindex 083ad0f213..923a9c2252 100644--- a/kernel/api/contract_block_existence_test.go+++ b/kernel/api/contract_block_existence_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build (sqlcipher || libsqlcipher) && cgopackage apidiff --git a/kernel/api/contract_block_info_decode_test.go b/kernel/api/contract_block_info_decode_test.goindex 1be7d97a06..c9fa4d2896 100644--- a/kernel/api/contract_block_info_decode_test.go+++ b/kernel/api/contract_block_info_decode_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_block_remaining_test.go b/kernel/api/contract_block_remaining_test.goindex 0ed6a6eec4..49f6e55f9c 100644--- a/kernel/api/contract_block_remaining_test.go+++ b/kernel/api/contract_block_remaining_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_block_transaction.go b/kernel/api/contract_block_transaction.goindex ad6177d85f..abc72bb0e7 100644--- a/kernel/api/contract_block_transaction.go+++ b/kernel/api/contract_block_transaction.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_block_transaction_test.go b/kernel/api/contract_block_transaction_test.goindex a1e357813a..5916d37696 100644--- a/kernel/api/contract_block_transaction_test.go+++ b/kernel/api/contract_block_transaction_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_bookmark.go b/kernel/api/contract_bookmark.goindex 6110d3dfa7..b321909d7f 100644--- a/kernel/api/contract_bookmark.go+++ b/kernel/api/contract_bookmark.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_bookmark_test.go b/kernel/api/contract_bookmark_test.goindex 979618388f..ba30125e73 100644--- a/kernel/api/contract_bookmark_test.go+++ b/kernel/api/contract_bookmark_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_broadcast_stream_test.go b/kernel/api/contract_broadcast_stream_test.goindex fd1664639d..acaf06acfd 100644--- a/kernel/api/contract_broadcast_stream_test.go+++ b/kernel/api/contract_broadcast_stream_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_broadcast_test.go b/kernel/api/contract_broadcast_test.goindex de76722462..90222d348d 100644--- a/kernel/api/contract_broadcast_test.go+++ b/kernel/api/contract_broadcast_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_builtin_skill_test.go b/kernel/api/contract_builtin_skill_test.goindex 28fbb997b3..ca0210afb7 100644--- a/kernel/api/contract_builtin_skill_test.go+++ b/kernel/api/contract_builtin_skill_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_clipboard_paste_test.go b/kernel/api/contract_clipboard_paste_test.goindex c3af11ec22..4d990af51e 100644--- a/kernel/api/contract_clipboard_paste_test.go+++ b/kernel/api/contract_clipboard_paste_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_clipboard_test.go b/kernel/api/contract_clipboard_test.goindex cc3212f95c..a5023a56dc 100644--- a/kernel/api/contract_clipboard_test.go+++ b/kernel/api/contract_clipboard_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_cloud.go b/kernel/api/contract_cloud.goindex 66aea6d9d3..d7344db6bf 100644--- a/kernel/api/contract_cloud.go+++ b/kernel/api/contract_cloud.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_cloud_test.go b/kernel/api/contract_cloud_test.goindex 5ab3562bf6..cb5873f1f0 100644--- a/kernel/api/contract_cloud_test.go+++ b/kernel/api/contract_cloud_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_cloud_user_cached_test.go b/kernel/api/contract_cloud_user_cached_test.goindex 126a108435..adeecb662d 100644--- a/kernel/api/contract_cloud_user_cached_test.go+++ b/kernel/api/contract_cloud_user_cached_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_concurrency_test.go b/kernel/api/contract_concurrency_test.goindex d3ba654b7e..5c5355f5a0 100644--- a/kernel/api/contract_concurrency_test.go+++ b/kernel/api/contract_concurrency_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_deprecated_test.go b/kernel/api/contract_deprecated_test.goindex 451d415631..19f46d2521 100644--- a/kernel/api/contract_deprecated_test.go+++ b/kernel/api/contract_deprecated_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_document_addressing_archive_test.go b/kernel/api/contract_document_addressing_archive_test.goindex fb6ed26c08..5d758e4fe3 100644--- a/kernel/api/contract_document_addressing_archive_test.go+++ b/kernel/api/contract_document_addressing_archive_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_document_addressing_test.go b/kernel/api/contract_document_addressing_test.goindex f79d7a2b3f..22b35fe830 100644--- a/kernel/api/contract_document_addressing_test.go+++ b/kernel/api/contract_document_addressing_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_document_capabilities_test.go b/kernel/api/contract_document_capabilities_test.goindex f91438a833..26489adbd5 100644--- a/kernel/api/contract_document_capabilities_test.go+++ b/kernel/api/contract_document_capabilities_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_document_legacy_test.go b/kernel/api/contract_document_legacy_test.goindex 097a6db9d1..4cf74b95b4 100644--- a/kernel/api/contract_document_legacy_test.go+++ b/kernel/api/contract_document_legacy_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_document_path_test.go b/kernel/api/contract_document_path_test.goindex b1831cfc28..07749d1aa5 100644--- a/kernel/api/contract_document_path_test.go+++ b/kernel/api/contract_document_path_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_document_target_test.go b/kernel/api/contract_document_target_test.goindex 589b56bfd8..f22a9a8511 100644--- a/kernel/api/contract_document_target_test.go+++ b/kernel/api/contract_document_target_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_duplicate_doc_tree_test.go b/kernel/api/contract_duplicate_doc_tree_test.goindex 6681e9678d..711475c13a 100644--- a/kernel/api/contract_duplicate_doc_tree_test.go+++ b/kernel/api/contract_duplicate_doc_tree_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build (sqlcipher || libsqlcipher) && cgopackage apidiff --git a/kernel/api/contract_encrypted_assets_cleanup_test.go b/kernel/api/contract_encrypted_assets_cleanup_test.goindex 5faa2b7434..d401af3e02 100644--- a/kernel/api/contract_encrypted_assets_cleanup_test.go+++ b/kernel/api/contract_encrypted_assets_cleanup_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_entry_visibility_defaults_test.go b/kernel/api/contract_entry_visibility_defaults_test.goindex e6ab401d97..5958fa8ae7 100644--- a/kernel/api/contract_entry_visibility_defaults_test.go+++ b/kernel/api/contract_entry_visibility_defaults_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_export_heading_numbers_test.go b/kernel/api/contract_export_heading_numbers_test.goindex 024b537ce7..76efeaf4da 100644--- a/kernel/api/contract_export_heading_numbers_test.go+++ b/kernel/api/contract_export_heading_numbers_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_export_lease_test.go b/kernel/api/contract_export_lease_test.goindex 90ce0c16e4..9eba53e396 100644--- a/kernel/api/contract_export_lease_test.go+++ b/kernel/api/contract_export_lease_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build (sqlcipher || libsqlcipher) && cgopackage apidiff --git a/kernel/api/contract_export_task_markers_test.go b/kernel/api/contract_export_task_markers_test.goindex 4bd8a23e21..652de16025 100644--- a/kernel/api/contract_export_task_markers_test.go+++ b/kernel/api/contract_export_task_markers_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_export_test.go b/kernel/api/contract_export_test.goindex 4fca839f67..12a2544a47 100644--- a/kernel/api/contract_export_test.go+++ b/kernel/api/contract_export_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_export_title_image_test.go b/kernel/api/contract_export_title_image_test.goindex 2b420def59..e6599ba40e 100644--- a/kernel/api/contract_export_title_image_test.go+++ b/kernel/api/contract_export_title_image_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_extension_test.go b/kernel/api/contract_extension_test.goindex 129640f173..6aeb880d93 100644--- a/kernel/api/contract_extension_test.go+++ b/kernel/api/contract_extension_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_file_concurrency_test.go b/kernel/api/contract_file_concurrency_test.goindex ca002df1e0..5a8e874d7c 100644--- a/kernel/api/contract_file_concurrency_test.go+++ b/kernel/api/contract_file_concurrency_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_file_test.go b/kernel/api/contract_file_test.goindex 08fd4d6055..a77b406720 100644--- a/kernel/api/contract_file_test.go+++ b/kernel/api/contract_file_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_filetree_test.go b/kernel/api/contract_filetree_test.goindex 09e207e574..f587f56bef 100644--- a/kernel/api/contract_filetree_test.go+++ b/kernel/api/contract_filetree_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_format_test.go b/kernel/api/contract_format_test.goindex 5cf0dd6000..c26baae2cc 100644--- a/kernel/api/contract_format_test.go+++ b/kernel/api/contract_format_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_gemini_interactions_test.go b/kernel/api/contract_gemini_interactions_test.goindex 48dc1b09ec..4745a004ab 100644--- a/kernel/api/contract_gemini_interactions_test.go+++ b/kernel/api/contract_gemini_interactions_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_graph_test.go b/kernel/api/contract_graph_test.goindex 7ed91952b7..f7617b0d3a 100644--- a/kernel/api/contract_graph_test.go+++ b/kernel/api/contract_graph_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_history_snapshots_test.go b/kernel/api/contract_history_snapshots_test.goindex efb0f3651e..e0d172e575 100644--- a/kernel/api/contract_history_snapshots_test.go+++ b/kernel/api/contract_history_snapshots_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package apidiff --git a/kernel/api/contract_history_test.go b/kernel/api/contract_history_test.goindex 387e2bd3ef..4756077a59 100644--- a/kernel/api/contract_history_test.go+++ b/kernel/api/contract_history_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_import_data_test.go b/kernel/api/contract_import_data_test.goindex 512eee77c9..74911169f0 100644--- a/kernel/api/contract_import_data_test.go+++ b/kernel/api/contract_import_data_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/contract_import_footnotes_test.go b/kernel/api/contract_import_footnotes_test.goindex 1da157069f..3e638d5d48 100644--- a/kernel/api/contract_import_footnotes_test.go+++ b/kernel/api/contract_import_footnotes_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package apidiff --git a/kernel/api/contract_import_test.go b/kernel/api/contract_import_test.goindex 48477232ac..5ee2b0db4c 100644--- a/kernel/api/contract_import_test.go+++ b/kernel/api/contract_import_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_inbox.go b/kernel/api/contract_inbox.goindex a3ddeec2d0..3bc8b63b6b 100644--- a/kernel/api/contract_inbox.go+++ b/kernel/api/contract_inbox.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport "encoding/json"diff --git a/kernel/api/contract_inbox_test.go b/kernel/api/contract_inbox_test.goindex b1cd1c8635..f0f2a54722 100644--- a/kernel/api/contract_inbox_test.go+++ b/kernel/api/contract_inbox_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_inline_style.go b/kernel/api/contract_inline_style.goindex 452f25aa3c..4253ab9abe 100644--- a/kernel/api/contract_inline_style.go+++ b/kernel/api/contract_inline_style.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_insert_block_anchor_test.go b/kernel/api/contract_insert_block_anchor_test.goindex 44d40704cb..4b54458349 100644--- a/kernel/api/contract_insert_block_anchor_test.go+++ b/kernel/api/contract_insert_block_anchor_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/contract_list_conversion_test.go b/kernel/api/contract_list_conversion_test.goindex 825c0498e0..070898f2ae 100644--- a/kernel/api/contract_list_conversion_test.go+++ b/kernel/api/contract_list_conversion_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_list_mindmap_test.go b/kernel/api/contract_list_mindmap_test.goindex 10718ea079..0d7979abcb 100644--- a/kernel/api/contract_list_mindmap_test.go+++ b/kernel/api/contract_list_mindmap_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_live_photo_sample_test.go b/kernel/api/contract_live_photo_sample_test.goindex 8b655f5085..52e4369b24 100644--- a/kernel/api/contract_live_photo_sample_test.go+++ b/kernel/api/contract_live_photo_sample_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_live_photo_test.go b/kernel/api/contract_live_photo_test.goindex 7f716872dc..564542cda8 100644--- a/kernel/api/contract_live_photo_test.go+++ b/kernel/api/contract_live_photo_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_mcp_oauth_test.go b/kernel/api/contract_mcp_oauth_test.goindex 02cb901be7..6b20264636 100644--- a/kernel/api/contract_mcp_oauth_test.go+++ b/kernel/api/contract_mcp_oauth_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_move_block_message_test.go b/kernel/api/contract_move_block_message_test.goindex 9f40bfbc41..edaf4a167f 100644--- a/kernel/api/contract_move_block_message_test.go+++ b/kernel/api/contract_move_block_message_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/contract_move_block_test.go b/kernel/api/contract_move_block_test.goindex cde487de19..9defd08946 100644--- a/kernel/api/contract_move_block_test.go+++ b/kernel/api/contract_move_block_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_native_container_test.go b/kernel/api/contract_native_container_test.goindex b8cf3129fe..013a0b33af 100644--- a/kernel/api/contract_native_container_test.go+++ b/kernel/api/contract_native_container_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_network_test.go b/kernel/api/contract_network_test.goindex 5ad48c3763..c376450f69 100644--- a/kernel/api/contract_network_test.go+++ b/kernel/api/contract_network_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_notebook_archive_test.go b/kernel/api/contract_notebook_archive_test.goindex 3750ed0506..cc7ba2105a 100644--- a/kernel/api/contract_notebook_archive_test.go+++ b/kernel/api/contract_notebook_archive_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_notebook_system_lock_test.go b/kernel/api/contract_notebook_system_lock_test.goindex 6839e7d1c8..a3c95ed8a4 100644--- a/kernel/api/contract_notebook_system_lock_test.go+++ b/kernel/api/contract_notebook_system_lock_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_notebook_test.go b/kernel/api/contract_notebook_test.goindex 407ba68c11..65da9d5472 100644--- a/kernel/api/contract_notebook_test.go+++ b/kernel/api/contract_notebook_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_notification_test.go b/kernel/api/contract_notification_test.goindex e275a355b3..0780439eb0 100644--- a/kernel/api/contract_notification_test.go+++ b/kernel/api/contract_notification_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_ocr_ai_test.go b/kernel/api/contract_ocr_ai_test.goindex 0d624396ad..e0a5fc592d 100644--- a/kernel/api/contract_ocr_ai_test.go+++ b/kernel/api/contract_ocr_ai_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_ocr_clear_test.go b/kernel/api/contract_ocr_clear_test.goindex 147807e08a..e6d734d009 100644--- a/kernel/api/contract_ocr_clear_test.go+++ b/kernel/api/contract_ocr_clear_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_ocr_provider_test.go b/kernel/api/contract_ocr_provider_test.goindex bb56230d61..ec11ae7b46 100644--- a/kernel/api/contract_ocr_provider_test.go+++ b/kernel/api/contract_ocr_provider_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_ocr_test.go b/kernel/api/contract_ocr_test.goindex b3a9edb944..2c18ffeab8 100644--- a/kernel/api/contract_ocr_test.go+++ b/kernel/api/contract_ocr_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_ocr_tooltip_test.go b/kernel/api/contract_ocr_tooltip_test.goindex 9336281f98..58e0c40e31 100644--- a/kernel/api/contract_ocr_tooltip_test.go+++ b/kernel/api/contract_ocr_tooltip_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_outline_test.go b/kernel/api/contract_outline_test.goindex fb49ef26e3..8985ee92db 100644--- a/kernel/api/contract_outline_test.go+++ b/kernel/api/contract_outline_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_pandoc_test.go b/kernel/api/contract_pandoc_test.goindex 560deb7dc0..2d8f878da2 100644--- a/kernel/api/contract_pandoc_test.go+++ b/kernel/api/contract_pandoc_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_petal.go b/kernel/api/contract_petal.goindex c9573a0ffb..c6e55e643e 100644--- a/kernel/api/contract_petal.go+++ b/kernel/api/contract_petal.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_petal_test.go b/kernel/api/contract_petal_test.goindex b72eec3ca8..c9a45b131b 100644--- a/kernel/api/contract_petal_test.go+++ b/kernel/api/contract_petal_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_plugin_development_guard_test.go b/kernel/api/contract_plugin_development_guard_test.goindex 951077c529..ee6ae6a084 100644--- a/kernel/api/contract_plugin_development_guard_test.go+++ b/kernel/api/contract_plugin_development_guard_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_plugin_service_test.go b/kernel/api/contract_plugin_service_test.goindex 927df9e5d8..5f6484fb04 100644--- a/kernel/api/contract_plugin_service_test.go+++ b/kernel/api/contract_plugin_service_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_plugin_test.go b/kernel/api/contract_plugin_test.goindex 968fd33ca7..babef50ac9 100644--- a/kernel/api/contract_plugin_test.go+++ b/kernel/api/contract_plugin_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_query_test.go b/kernel/api/contract_query_test.goindex 7919b5f6cc..555e2c9604 100644--- a/kernel/api/contract_query_test.go+++ b/kernel/api/contract_query_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_ref_global_test.go b/kernel/api/contract_ref_global_test.goindex e3df2bedb1..6a93925f98 100644--- a/kernel/api/contract_ref_global_test.go+++ b/kernel/api/contract_ref_global_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_ref_test.go b/kernel/api/contract_ref_test.goindex e94e7bf744..8575c3f08b 100644--- a/kernel/api/contract_ref_test.go+++ b/kernel/api/contract_ref_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_repo_test.go b/kernel/api/contract_repo_test.goindex ebd58b019c..49a21931ee 100644--- a/kernel/api/contract_repo_test.go+++ b/kernel/api/contract_repo_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_riff_test.go b/kernel/api/contract_riff_test.goindex ce6508b834..59847e6890 100644--- a/kernel/api/contract_riff_test.go+++ b/kernel/api/contract_riff_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_routes.go b/kernel/api/contract_routes.goindex a4be5bd9c6..669b0a61df 100644--- a/kernel/api/contract_routes.go+++ b/kernel/api/contract_routes.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_routes_test.go b/kernel/api/contract_routes_test.goindex 83b4ee541a..8649d6ab6d 100644--- a/kernel/api/contract_routes_test.go+++ b/kernel/api/contract_routes_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_search_block.go b/kernel/api/contract_search_block.goindex 5a8ef432ee..8088f80517 100644--- a/kernel/api/contract_search_block.go+++ b/kernel/api/contract_search_block.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_search_replace_test.go b/kernel/api/contract_search_replace_test.goindex d2e8b5a049..38d3794878 100644--- a/kernel/api/contract_search_replace_test.go+++ b/kernel/api/contract_search_replace_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_search_test.go b/kernel/api/contract_search_test.goindex 72c92097cf..8636563c31 100644--- a/kernel/api/contract_search_test.go+++ b/kernel/api/contract_search_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_setting_ai_capability_test.go b/kernel/api/contract_setting_ai_capability_test.goindex 9ae37fb5e7..0b7d2d63f2 100644--- a/kernel/api/contract_setting_ai_capability_test.go+++ b/kernel/api/contract_setting_ai_capability_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_setting_ai_web_test.go b/kernel/api/contract_setting_ai_web_test.goindex cc951909f0..1b7feb10b2 100644--- a/kernel/api/contract_setting_ai_web_test.go+++ b/kernel/api/contract_setting_ai_web_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_setting_close_window_test.go b/kernel/api/contract_setting_close_window_test.goindex 144e9a2ca7..d92d2fe808 100644--- a/kernel/api/contract_setting_close_window_test.go+++ b/kernel/api/contract_setting_close_window_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_setting_embed_breadcrumb_test.go b/kernel/api/contract_setting_embed_breadcrumb_test.goindex 00f40425c2..5157274380 100644--- a/kernel/api/contract_setting_embed_breadcrumb_test.go+++ b/kernel/api/contract_setting_embed_breadcrumb_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_setting_export_test.go b/kernel/api/contract_setting_export_test.goindex a3e9196cd9..04dc2044d1 100644--- a/kernel/api/contract_setting_export_test.go+++ b/kernel/api/contract_setting_export_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_setting_file_tree_click_test.go b/kernel/api/contract_setting_file_tree_click_test.goindex d82f2b70a8..38cd85775f 100644--- a/kernel/api/contract_setting_file_tree_click_test.go+++ b/kernel/api/contract_setting_file_tree_click_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_setting_funnel_test.go b/kernel/api/contract_setting_funnel_test.goindex 6613035080..754bf80e79 100644--- a/kernel/api/contract_setting_funnel_test.go+++ b/kernel/api/contract_setting_funnel_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_setting_gutter_test.go b/kernel/api/contract_setting_gutter_test.goindex 2ec4224699..473f02b56a 100644--- a/kernel/api/contract_setting_gutter_test.go+++ b/kernel/api/contract_setting_gutter_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_setting_math_test.go b/kernel/api/contract_setting_math_test.goindex 502470f8a2..66993fad3d 100644--- a/kernel/api/contract_setting_math_test.go+++ b/kernel/api/contract_setting_math_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_setting_normalize_test.go b/kernel/api/contract_setting_normalize_test.goindex ac71856e9d..579899dac8 100644--- a/kernel/api/contract_setting_normalize_test.go+++ b/kernel/api/contract_setting_normalize_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_setting_page_scroll_test.go b/kernel/api/contract_setting_page_scroll_test.goindex 53fe7fc696..74b181335a 100644--- a/kernel/api/contract_setting_page_scroll_test.go+++ b/kernel/api/contract_setting_page_scroll_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_setting_ranges_test.go b/kernel/api/contract_setting_ranges_test.goindex 24371a8b2e..82df7e4e04 100644--- a/kernel/api/contract_setting_ranges_test.go+++ b/kernel/api/contract_setting_ranges_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_setting_test.go b/kernel/api/contract_setting_test.goindex 007e8b0d8d..94b7d3d058 100644--- a/kernel/api/contract_setting_test.go+++ b/kernel/api/contract_setting_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_skill_manage_test.go b/kernel/api/contract_skill_manage_test.goindex c509d2a287..67d3a03a21 100644--- a/kernel/api/contract_skill_manage_test.go+++ b/kernel/api/contract_skill_manage_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_snippet.go b/kernel/api/contract_snippet.goindex a3f48277a3..1d94cce4f8 100644--- a/kernel/api/contract_snippet.go+++ b/kernel/api/contract_snippet.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_snippet_test.go b/kernel/api/contract_snippet_test.goindex fbd51b8f8a..315da670ee 100644--- a/kernel/api/contract_snippet_test.go+++ b/kernel/api/contract_snippet_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_storage.go b/kernel/api/contract_storage.goindex a0ea966359..45898c6134 100644--- a/kernel/api/contract_storage.go+++ b/kernel/api/contract_storage.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_storage_test.go b/kernel/api/contract_storage_test.goindex b831c1959a..e2efab1606 100644--- a/kernel/api/contract_storage_test.go+++ b/kernel/api/contract_storage_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_structured_titles_test.go b/kernel/api/contract_structured_titles_test.goindex a36878949d..114cfb3bb1 100644--- a/kernel/api/contract_structured_titles_test.go+++ b/kernel/api/contract_structured_titles_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_sync_checkout_test.go b/kernel/api/contract_sync_checkout_test.goindex fd8efc4206..4444b6cbc8 100644--- a/kernel/api/contract_sync_checkout_test.go+++ b/kernel/api/contract_sync_checkout_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_sync_clear_test.go b/kernel/api/contract_sync_clear_test.goindex c51cf007d6..066f3e7b23 100644--- a/kernel/api/contract_sync_clear_test.go+++ b/kernel/api/contract_sync_clear_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_sync_rules_test.go b/kernel/api/contract_sync_rules_test.goindex 1bb49a1647..403ffcff3c 100644--- a/kernel/api/contract_sync_rules_test.go+++ b/kernel/api/contract_sync_rules_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_sync_test.go b/kernel/api/contract_sync_test.goindex 9c03e1e00b..764656eeef 100644--- a/kernel/api/contract_sync_test.go+++ b/kernel/api/contract_sync_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_system_test.go b/kernel/api/contract_system_test.goindex 8013352cbf..7d5464e72e 100644--- a/kernel/api/contract_system_test.go+++ b/kernel/api/contract_system_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_system_wallpaper_test.go b/kernel/api/contract_system_wallpaper_test.goindex a8b208df4b..947573a7c6 100644--- a/kernel/api/contract_system_wallpaper_test.go+++ b/kernel/api/contract_system_wallpaper_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_template_test.go b/kernel/api/contract_template_test.goindex e0ee218527..2b9a4aa67f 100644--- a/kernel/api/contract_template_test.go+++ b/kernel/api/contract_template_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_test.go b/kernel/api/contract_test.goindex 2349c357f0..cb4ebdc087 100644--- a/kernel/api/contract_test.go+++ b/kernel/api/contract_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_transaction_completion_test.go b/kernel/api/contract_transaction_completion_test.goindex fedf901d0c..a6a843049f 100644--- a/kernel/api/contract_transaction_completion_test.go+++ b/kernel/api/contract_transaction_completion_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_transaction_test.go b/kernel/api/contract_transaction_test.goindex cf8bb8f1ba..04255728ec 100644--- a/kernel/api/contract_transaction_test.go+++ b/kernel/api/contract_transaction_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_utility_test.go b/kernel/api/contract_utility_test.goindex 30abce8eca..4b3b1ad994 100644--- a/kernel/api/contract_utility_test.go+++ b/kernel/api/contract_utility_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_word_count_test.go b/kernel/api/contract_word_count_test.goindex c0cbda7561..eadd5fb3f1 100644--- a/kernel/api/contract_word_count_test.go+++ b/kernel/api/contract_word_count_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/contract_wps_test.go b/kernel/api/contract_wps_test.goindex 0c931813d9..55350c228f 100644--- a/kernel/api/contract_wps_test.go+++ b/kernel/api/contract_wps_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/daily_note.go b/kernel/api/daily_note.goindex 4e432a5153..34977d8160 100644--- a/kernel/api/daily_note.go+++ b/kernel/api/daily_note.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/document_addressing.go b/kernel/api/document_addressing.goindex 8c39558811..026b850e87 100644--- a/kernel/api/document_addressing.go+++ b/kernel/api/document_addressing.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/export.go b/kernel/api/export.goindex d9f6e431ab..29213db96c 100644--- a/kernel/api/export.go+++ b/kernel/api/export.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/export_security_test.go b/kernel/api/export_security_test.goindex 45cc3ab659..92ea88b568 100644--- a/kernel/api/export_security_test.go+++ b/kernel/api/export_security_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/export_test.go b/kernel/api/export_test.goindex 5f136ba272..13020b4fcc 100644--- a/kernel/api/export_test.go+++ b/kernel/api/export_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/export_windows_test.go b/kernel/api/export_windows_test.goindex 586bf3f8e1..bb19a6eddf 100644--- a/kernel/api/export_windows_test.go+++ b/kernel/api/export_windows_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build windowsdiff --git a/kernel/api/extension.go b/kernel/api/extension.goindex ab1c529d76..6271cc24d9 100644--- a/kernel/api/extension.go+++ b/kernel/api/extension.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/file.go b/kernel/api/file.goindex 49d85f2eb3..17ae46d383 100644--- a/kernel/api/file.go+++ b/kernel/api/file.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/file_authorization_test.go b/kernel/api/file_authorization_test.goindex 6d68cff218..5ba2effb51 100644--- a/kernel/api/file_authorization_test.go+++ b/kernel/api/file_authorization_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/file_test.go b/kernel/api/file_test.goindex a118b67621..7cb59d57a1 100644--- a/kernel/api/file_test.go+++ b/kernel/api/file_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/file_traversal.go b/kernel/api/file_traversal.goindex 892762e8d8..e7cb600b84 100644--- a/kernel/api/file_traversal.go+++ b/kernel/api/file_traversal.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/file_traversal_test.go b/kernel/api/file_traversal_test.goindex c44e35a96c..27e4b9de65 100644--- a/kernel/api/file_traversal_test.go+++ b/kernel/api/file_traversal_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/file_windows_test.go b/kernel/api/file_windows_test.goindex bea2358fd8..4c16127471 100644--- a/kernel/api/file_windows_test.go+++ b/kernel/api/file_windows_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build windowsdiff --git a/kernel/api/filetree.go b/kernel/api/filetree.goindex 5bc09b57ae..cf3da83907 100644--- a/kernel/api/filetree.go+++ b/kernel/api/filetree.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/filetree_contract.go b/kernel/api/filetree_contract.goindex a01cb187e8..bf7b9ef4fe 100644--- a/kernel/api/filetree_contract.go+++ b/kernel/api/filetree_contract.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/filetree_getdoc_publish_test.go b/kernel/api/filetree_getdoc_publish_test.goindex 197af87b20..64ffffb483 100644--- a/kernel/api/filetree_getdoc_publish_test.go+++ b/kernel/api/filetree_getdoc_publish_test.go@@ -1,20 +1,8 @@-//go:build fts5--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later++//go:build fts5package apidiff --git a/kernel/api/filetree_test.go b/kernel/api/filetree_test.goindex 667a234d24..3c4a3b15d4 100644--- a/kernel/api/filetree_test.go+++ b/kernel/api/filetree_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/format.go b/kernel/api/format.goindex c67a002b7f..a0389d285d 100644--- a/kernel/api/format.go+++ b/kernel/api/format.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/graph.go b/kernel/api/graph.goindex d8a3de3a2b..110f1ed4f2 100644--- a/kernel/api/graph.go+++ b/kernel/api/graph.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/history.go b/kernel/api/history.goindex 9b7df65376..a9132946a3 100644--- a/kernel/api/history.go+++ b/kernel/api/history.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/history_snapshots.go b/kernel/api/history_snapshots.goindex 233bb81c6d..8b31dc9f49 100644--- a/kernel/api/history_snapshots.go+++ b/kernel/api/history_snapshots.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/history_test.go b/kernel/api/history_test.goindex 16b5ef8d02..032b687b23 100644--- a/kernel/api/history_test.go+++ b/kernel/api/history_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/icon.go b/kernel/api/icon.goindex 4bb920a48a..333444e44f 100644--- a/kernel/api/icon.go+++ b/kernel/api/icon.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/icon_publish_access_test.go b/kernel/api/icon_publish_access_test.goindex ec70bad9b1..c38b7faaec 100644--- a/kernel/api/icon_publish_access_test.go+++ b/kernel/api/icon_publish_access_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/icon_test.go b/kernel/api/icon_test.goindex 40aba1e535..0753aec29f 100644--- a/kernel/api/icon_test.go+++ b/kernel/api/icon_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/import.go b/kernel/api/import.goindex 153e06cbcb..b468e3e215 100644--- a/kernel/api/import.go+++ b/kernel/api/import.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/import_data.go b/kernel/api/import_data.goindex e38f3e5129..0692650294 100644--- a/kernel/api/import_data.go+++ b/kernel/api/import_data.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/import_test.go b/kernel/api/import_test.goindex 18a0545fcb..9e803b227a 100644--- a/kernel/api/import_test.go+++ b/kernel/api/import_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/inbox.go b/kernel/api/inbox.goindex ec22939ffe..45b4b218fd 100644--- a/kernel/api/inbox.go+++ b/kernel/api/inbox.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/inline_style.go b/kernel/api/inline_style.goindex ce49d4f2f2..f4538ab36a 100644--- a/kernel/api/inline_style.go+++ b/kernel/api/inline_style.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/inline_style_test.go b/kernel/api/inline_style_test.goindex f826acef92..eb0ff76d3b 100644--- a/kernel/api/inline_style_test.go+++ b/kernel/api/inline_style_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/list_mindmap.go b/kernel/api/list_mindmap.goindex f955543b28..642983014d 100644--- a/kernel/api/list_mindmap.go+++ b/kernel/api/list_mindmap.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/live_photo.go b/kernel/api/live_photo.goindex 184a09a203..cf4e147f68 100644--- a/kernel/api/live_photo.go+++ b/kernel/api/live_photo.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/api/lute.go b/kernel/api/lute.goindex 0e41a8ba56..f1f4a3726e 100644--- a/kernel/api/lute.go+++ b/kernel/api/lute.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/lute_authorization_test.go b/kernel/api/lute_authorization_test.goindex 1805e62e0f..f271c11716 100644--- a/kernel/api/lute_authorization_test.go+++ b/kernel/api/lute_authorization_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/lute_clipboard_math.go b/kernel/api/lute_clipboard_math.goindex 9c56c6452e..213d431508 100644--- a/kernel/api/lute_clipboard_math.go+++ b/kernel/api/lute_clipboard_math.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/lute_clipboard_math_test.go b/kernel/api/lute_clipboard_math_test.goindex 4563ff9444..88a45eaba4 100644--- a/kernel/api/lute_clipboard_math_test.go+++ b/kernel/api/lute_clipboard_math_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/lute_clipboard_style.go b/kernel/api/lute_clipboard_style.goindex 61a4d3e87f..2194dfb33d 100644--- a/kernel/api/lute_clipboard_style.go+++ b/kernel/api/lute_clipboard_style.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/lute_clipboard_style_test.go b/kernel/api/lute_clipboard_style_test.goindex 8dfcea378a..af7f8da63f 100644--- a/kernel/api/lute_clipboard_style_test.go+++ b/kernel/api/lute_clipboard_style_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/lute_escape_test.go b/kernel/api/lute_escape_test.goindex 550229a27a..8027394a42 100644--- a/kernel/api/lute_escape_test.go+++ b/kernel/api/lute_escape_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/lute_iframe_test.go b/kernel/api/lute_iframe_test.goindex c173889994..d0d256c972 100644--- a/kernel/api/lute_iframe_test.go+++ b/kernel/api/lute_iframe_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/lute_math_delimiters_test.go b/kernel/api/lute_math_delimiters_test.goindex 5b7cc5bbf0..c5c9f63b71 100644--- a/kernel/api/lute_math_delimiters_test.go+++ b/kernel/api/lute_math_delimiters_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/lute_request_limit_test.go b/kernel/api/lute_request_limit_test.goindex 5c45225637..41a20ccb23 100644--- a/kernel/api/lute_request_limit_test.go+++ b/kernel/api/lute_request_limit_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/lute_table_rich_test.go b/kernel/api/lute_table_rich_test.goindex 4eed867ce8..c79bafa04b 100644--- a/kernel/api/lute_table_rich_test.go+++ b/kernel/api/lute_table_rich_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/lute_text_style_test.go b/kernel/api/lute_text_style_test.goindex dafa9014a5..ea5d5fd4c2 100644--- a/kernel/api/lute_text_style_test.go+++ b/kernel/api/lute_text_style_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/lute_word_comment_test.go b/kernel/api/lute_word_comment_test.goindex efddb3c6c1..d1bb33744b 100644--- a/kernel/api/lute_word_comment_test.go+++ b/kernel/api/lute_word_comment_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/lute_wps_comment.go b/kernel/api/lute_wps_comment.goindex 77c072460d..7654913593 100644--- a/kernel/api/lute_wps_comment.go+++ b/kernel/api/lute_wps_comment.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/lute_wps_comment_test.go b/kernel/api/lute_wps_comment_test.goindex 47580742b2..2e6e72294c 100644--- a/kernel/api/lute_wps_comment_test.go+++ b/kernel/api/lute_wps_comment_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/lute_wps_presentation.go b/kernel/api/lute_wps_presentation.goindex c23003c50d..0ccb899f49 100644--- a/kernel/api/lute_wps_presentation.go+++ b/kernel/api/lute_wps_presentation.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/lute_wps_presentation_test.go b/kernel/api/lute_wps_presentation_test.goindex 12c4d2a8ef..6e77644a36 100644--- a/kernel/api/lute_wps_presentation_test.go+++ b/kernel/api/lute_wps_presentation_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/mcp_oauth.go b/kernel/api/mcp_oauth.goindex 3cd889b721..c54b1c1ce2 100644--- a/kernel/api/mcp_oauth.go+++ b/kernel/api/mcp_oauth.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/mcp_oauth_test.go b/kernel/api/mcp_oauth_test.goindex e55275887e..6792284743 100644--- a/kernel/api/mcp_oauth_test.go+++ b/kernel/api/mcp_oauth_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/network.go b/kernel/api/network.goindex ede5ac9fdc..7b340957ca 100644--- a/kernel/api/network.go+++ b/kernel/api/network.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/network_test.go b/kernel/api/network_test.goindex 55d8091391..4889d97db2 100644--- a/kernel/api/network_test.go+++ b/kernel/api/network_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/notebook.go b/kernel/api/notebook.goindex 1126c1037e..9ab24c6be6 100644--- a/kernel/api/notebook.go+++ b/kernel/api/notebook.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/notebook_archive.go b/kernel/api/notebook_archive.goindex 2daa7e3d11..43330c4a20 100644--- a/kernel/api/notebook_archive.go+++ b/kernel/api/notebook_archive.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/notebook_patch.go b/kernel/api/notebook_patch.goindex 94a6f37634..0be019a7b8 100644--- a/kernel/api/notebook_patch.go+++ b/kernel/api/notebook_patch.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/notebook_patch_test.go b/kernel/api/notebook_patch_test.goindex 2ecea4d1a7..d79684a1ee 100644--- a/kernel/api/notebook_patch_test.go+++ b/kernel/api/notebook_patch_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/notebook_security_test.go b/kernel/api/notebook_security_test.goindex 32c6af97d8..baf8960d62 100644--- a/kernel/api/notebook_security_test.go+++ b/kernel/api/notebook_security_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/notebook_system_lock.go b/kernel/api/notebook_system_lock.goindex 28c3728df4..a2ff04a388 100644--- a/kernel/api/notebook_system_lock.go+++ b/kernel/api/notebook_system_lock.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/notebook_test.go b/kernel/api/notebook_test.goindex e6f9b835ea..0c87857fad 100644--- a/kernel/api/notebook_test.go+++ b/kernel/api/notebook_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/notification.go b/kernel/api/notification.goindex 2158b2829d..14b39b2594 100644--- a/kernel/api/notification.go+++ b/kernel/api/notification.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/notification_scope_source_test.go b/kernel/api/notification_scope_source_test.goindex 80d5f0186e..fe82c653da 100644--- a/kernel/api/notification_scope_source_test.go+++ b/kernel/api/notification_scope_source_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/ocr.go b/kernel/api/ocr.goindex 277bfded4b..efccf6ded2 100644--- a/kernel/api/ocr.go+++ b/kernel/api/ocr.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/outline.go b/kernel/api/outline.goindex 2f0cc028d5..5a3da5cebb 100644--- a/kernel/api/outline.go+++ b/kernel/api/outline.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/pandoc.go b/kernel/api/pandoc.goindex 343fba5ac0..1ab48d0c7b 100644--- a/kernel/api/pandoc.go+++ b/kernel/api/pandoc.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/petal.go b/kernel/api/petal.goindex 817a1048b1..a08e536005 100644--- a/kernel/api/petal.go+++ b/kernel/api/petal.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/petal_test.go b/kernel/api/petal_test.goindex f16ccdc0e6..74cd6a5ac8 100644--- a/kernel/api/petal_test.go+++ b/kernel/api/petal_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/pinned_docs.go b/kernel/api/pinned_docs.goindex 96f03188a2..a907039a1d 100644--- a/kernel/api/pinned_docs.go+++ b/kernel/api/pinned_docs.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/pinned_docs_test.go b/kernel/api/pinned_docs_test.goindex d718409bfb..8fdc5f61e5 100644--- a/kernel/api/pinned_docs_test.go+++ b/kernel/api/pinned_docs_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/plugin.go b/kernel/api/plugin.goindex add580f656..b081ec625f 100644--- a/kernel/api/plugin.go+++ b/kernel/api/plugin.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/plugin_publish.go b/kernel/api/plugin_publish.goindex 31815ff9d8..d3590ca522 100644--- a/kernel/api/plugin_publish.go+++ b/kernel/api/plugin_publish.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/plugin_publish_test.go b/kernel/api/plugin_publish_test.goindex 9fec2385e9..c0ad6e97a5 100644--- a/kernel/api/plugin_publish_test.go+++ b/kernel/api/plugin_publish_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/publish_encrypted_test.go b/kernel/api/publish_encrypted_test.goindex 4bf2c6037f..92220a3634 100644--- a/kernel/api/publish_encrypted_test.go+++ b/kernel/api/publish_encrypted_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/ref.go b/kernel/api/ref.goindex f661292d2b..38b1b6c41e 100644--- a/kernel/api/ref.go+++ b/kernel/api/ref.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/ref_filter_test.go b/kernel/api/ref_filter_test.goindex 3c0253f67a..8aabaec245 100644--- a/kernel/api/ref_filter_test.go+++ b/kernel/api/ref_filter_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/ref_global.go b/kernel/api/ref_global.goindex 2b8f2894bd..c19e893159 100644--- a/kernel/api/ref_global.go+++ b/kernel/api/ref_global.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/ref_notification_test.go b/kernel/api/ref_notification_test.goindex 9dc1333d2c..8daca61ba7 100644--- a/kernel/api/ref_notification_test.go+++ b/kernel/api/ref_notification_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/ref_revision.go b/kernel/api/ref_revision.goindex 501d0273b7..7690bf6a54 100644--- a/kernel/api/ref_revision.go+++ b/kernel/api/ref_revision.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/ref_revision_test.go b/kernel/api/ref_revision_test.goindex b176e59468..84b24b407c 100644--- a/kernel/api/ref_revision_test.go+++ b/kernel/api/ref_revision_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/ref_test.go b/kernel/api/ref_test.goindex 2c1afae10a..7f17a9c155 100644--- a/kernel/api/ref_test.go+++ b/kernel/api/ref_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/repo.go b/kernel/api/repo.goindex 0b5f0279df..920549769a 100644--- a/kernel/api/repo.go+++ b/kernel/api/repo.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/repo_snapshot_test.go b/kernel/api/repo_snapshot_test.goindex 3eec35356f..2f557a7ee6 100644--- a/kernel/api/repo_snapshot_test.go+++ b/kernel/api/repo_snapshot_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/request_app.go b/kernel/api/request_app.goindex 8e8b2896d8..e2430516f0 100644--- a/kernel/api/request_app.go+++ b/kernel/api/request_app.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport "github.com/gin-gonic/gin"diff --git a/kernel/api/riff.go b/kernel/api/riff.goindex 38e0989235..e2efbd6e05 100644--- a/kernel/api/riff.go+++ b/kernel/api/riff.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/router.go b/kernel/api/router.goindex 6762730126..ec03221122 100644--- a/kernel/api/router.go+++ b/kernel/api/router.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/search.go b/kernel/api/search.goindex 1612db94ba..b30743d0d9 100644--- a/kernel/api/search.go+++ b/kernel/api/search.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/search_fts_injection_test.go b/kernel/api/search_fts_injection_test.goindex b247ba9f9d..0ed1b6b15c 100644--- a/kernel/api/search_fts_injection_test.go+++ b/kernel/api/search_fts_injection_test.go@@ -1,20 +1,8 @@-//go:build fts5--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later++//go:build fts5package apidiff --git a/kernel/api/search_publish_exclusion_test.go b/kernel/api/search_publish_exclusion_test.goindex f4b7b8529b..669a646e8b 100644--- a/kernel/api/search_publish_exclusion_test.go+++ b/kernel/api/search_publish_exclusion_test.go@@ -1,20 +1,8 @@-//go:build fts5--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later++//go:build fts5package apidiff --git a/kernel/api/search_readonly_test.go b/kernel/api/search_readonly_test.goindex 251f5618e3..1105fce787 100644--- a/kernel/api/search_readonly_test.go+++ b/kernel/api/search_readonly_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/search_subtypes.go b/kernel/api/search_subtypes.goindex 3c33ca8e7e..f23798f360 100644--- a/kernel/api/search_subtypes.go+++ b/kernel/api/search_subtypes.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/search_subtypes_test.go b/kernel/api/search_subtypes_test.goindex 84c50d3d8b..16b1604cc1 100644--- a/kernel/api/search_subtypes_test.go+++ b/kernel/api/search_subtypes_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/setting.go b/kernel/api/setting.goindex a063a7b322..5aef85ec69 100644--- a/kernel/api/setting.go+++ b/kernel/api/setting.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/setting_appearance_refresh_test.go b/kernel/api/setting_appearance_refresh_test.goindex 58e14856f7..2129cf9b1a 100644--- a/kernel/api/setting_appearance_refresh_test.go+++ b/kernel/api/setting_appearance_refresh_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/setting_contract.go b/kernel/api/setting_contract.goindex 0a4c4ad6a7..a5983324d0 100644--- a/kernel/api/setting_contract.go+++ b/kernel/api/setting_contract.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/setting_contract_fields_test.go b/kernel/api/setting_contract_fields_test.goindex c191aaac31..9f9ec82ef0 100644--- a/kernel/api/setting_contract_fields_test.go+++ b/kernel/api/setting_contract_fields_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/setting_input.go b/kernel/api/setting_input.goindex ade009009c..abbc2d7231 100644--- a/kernel/api/setting_input.go+++ b/kernel/api/setting_input.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/setting_mcp_test.go b/kernel/api/setting_mcp_test.goindex 3ffd0a86d3..e9c76ef8ed 100644--- a/kernel/api/setting_mcp_test.go+++ b/kernel/api/setting_mcp_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/setting_notification_test.go b/kernel/api/setting_notification_test.goindex ebe9f67234..0919bc8d14 100644--- a/kernel/api/setting_notification_test.go+++ b/kernel/api/setting_notification_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/setting_patch.go b/kernel/api/setting_patch.goindex bdcd9c5007..0c255c08e9 100644--- a/kernel/api/setting_patch.go+++ b/kernel/api/setting_patch.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/setting_patch_test.go b/kernel/api/setting_patch_test.goindex f0e72162b7..142edd3888 100644--- a/kernel/api/setting_patch_test.go+++ b/kernel/api/setting_patch_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/setting_read.go b/kernel/api/setting_read.goindex 3b71dd7b86..95994a60fc 100644--- a/kernel/api/setting_read.go+++ b/kernel/api/setting_read.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/setting_read_test.go b/kernel/api/setting_read_test.goindex 4ecb705d03..a8db7022fc 100644--- a/kernel/api/setting_read_test.go+++ b/kernel/api/setting_read_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/setting_test.go b/kernel/api/setting_test.goindex 60c5e9a379..c55f36c3fe 100644--- a/kernel/api/setting_test.go+++ b/kernel/api/setting_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/setting_write_contract_test.go b/kernel/api/setting_write_contract_test.goindex 8bc330a640..0b6393a7a8 100644--- a/kernel/api/setting_write_contract_test.go+++ b/kernel/api/setting_write_contract_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/settings_reset.go b/kernel/api/settings_reset.goindex aab3f3c78e..205eb5c904 100644--- a/kernel/api/settings_reset.go+++ b/kernel/api/settings_reset.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/settings_reset_test.go b/kernel/api/settings_reset_test.goindex 315266c8ae..a43028040b 100644--- a/kernel/api/settings_reset_test.go+++ b/kernel/api/settings_reset_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/skill_manage.go b/kernel/api/skill_manage.goindex 0e6aca50ce..7cb32700c8 100644--- a/kernel/api/skill_manage.go+++ b/kernel/api/skill_manage.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/snippet.go b/kernel/api/snippet.goindex 4ba531da8b..bb22bf2e73 100644--- a/kernel/api/snippet.go+++ b/kernel/api/snippet.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/sql.go b/kernel/api/sql.goindex 5106042bc3..3ae051031d 100644--- a/kernel/api/sql.go+++ b/kernel/api/sql.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/storage.go b/kernel/api/storage.goindex f1a66fb0b4..2087e36f17 100644--- a/kernel/api/storage.go+++ b/kernel/api/storage.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/storage_test.go b/kernel/api/storage_test.goindex 77930af237..afe4b621d9 100644--- a/kernel/api/storage_test.go+++ b/kernel/api/storage_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/sync.go b/kernel/api/sync.goindex 0987739fad..b5677dcca0 100644--- a/kernel/api/sync.go+++ b/kernel/api/sync.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/sync_checkout.go b/kernel/api/sync_checkout.goindex 069a6adf94..2796279895 100644--- a/kernel/api/sync_checkout.go+++ b/kernel/api/sync_checkout.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/sync_rules.go b/kernel/api/sync_rules.goindex d39fbc7eeb..dff4214bb4 100644--- a/kernel/api/sync_rules.go+++ b/kernel/api/sync_rules.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/system.go b/kernel/api/system.goindex eba48eb990..f8e0dffcf6 100644--- a/kernel/api/system.go+++ b/kernel/api/system.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/system_auth.go b/kernel/api/system_auth.goindex 533f705475..da424c3dca 100644--- a/kernel/api/system_auth.go+++ b/kernel/api/system_auth.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/system_contract.go b/kernel/api/system_contract.goindex e66c6f058c..84105eb205 100644--- a/kernel/api/system_contract.go+++ b/kernel/api/system_contract.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/system_emoji_test.go b/kernel/api/system_emoji_test.goindex ff0472a870..0323e14417 100644--- a/kernel/api/system_emoji_test.go+++ b/kernel/api/system_emoji_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/system_export_secrets_test.go b/kernel/api/system_export_secrets_test.goindex 34a85e3c13..eb4b89f0d3 100644--- a/kernel/api/system_export_secrets_test.go+++ b/kernel/api/system_export_secrets_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/system_import_preferences_test.go b/kernel/api/system_import_preferences_test.goindex 35bc972ff6..873536cbf3 100644--- a/kernel/api/system_import_preferences_test.go+++ b/kernel/api/system_import_preferences_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/system_proxy_import_test.go b/kernel/api/system_proxy_import_test.goindex 8baa1a7d3f..81da0a3d46 100644--- a/kernel/api/system_proxy_import_test.go+++ b/kernel/api/system_proxy_import_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/system_test.go b/kernel/api/system_test.goindex 1919d749d9..78a9e1a0c6 100644--- a/kernel/api/system_test.go+++ b/kernel/api/system_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/system_wallpaper.go b/kernel/api/system_wallpaper.goindex df6edcc6d3..f7538cf9c9 100644--- a/kernel/api/system_wallpaper.go+++ b/kernel/api/system_wallpaper.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/tag.go b/kernel/api/tag.goindex 6655ac64c6..c95b920c60 100644--- a/kernel/api/tag.go+++ b/kernel/api/tag.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/template.go b/kernel/api/template.goindex 908923a7e5..886f0f1b65 100644--- a/kernel/api/template.go+++ b/kernel/api/template.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/template_junction_windows_test.go b/kernel/api/template_junction_windows_test.goindex b39ecacb4e..90fe65f974 100644--- a/kernel/api/template_junction_windows_test.go+++ b/kernel/api/template_junction_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/template_test.go b/kernel/api/template_test.goindex 7aef58bf7f..16aa44bdf9 100644--- a/kernel/api/template_test.go+++ b/kernel/api/template_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/transaction.go b/kernel/api/transaction.goindex 47526fdd10..f088dcec27 100644--- a/kernel/api/transaction.go+++ b/kernel/api/transaction.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/transaction_test.go b/kernel/api/transaction_test.goindex 26187c1595..a51c755532 100644--- a/kernel/api/transaction_test.go+++ b/kernel/api/transaction_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/ui.go b/kernel/api/ui.goindex 5955a82e89..9a3595d455 100644--- a/kernel/api/ui.go+++ b/kernel/api/ui.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/workspace.go b/kernel/api/workspace.goindex 606634b76b..ff38f65bbb 100644--- a/kernel/api/workspace.go+++ b/kernel/api/workspace.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/api/workspace_storage.go b/kernel/api/workspace_storage.goindex 97a83166e9..c551b73c5f 100644--- a/kernel/api/workspace_storage.go+++ b/kernel/api/workspace_storage.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/workspace_storage_test.go b/kernel/api/workspace_storage_test.goindex cde98e9a25..361f77bbf6 100644--- a/kernel/api/workspace_storage_test.go+++ b/kernel/api/workspace_storage_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apiimport (diff --git a/kernel/api/workspace_test.go b/kernel/api/workspace_test.goindex 445235e4de..e6e0235a2d 100644--- a/kernel/api/workspace_test.go+++ b/kernel/api/workspace_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage apidiff --git a/kernel/apicontract/account.go b/kernel/apicontract/account.goindex 2628da4bff..9fdab985b1 100644--- a/kernel/apicontract/account.go+++ b/kernel/apicontract/account.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype ActivationCodeRequest struct {diff --git a/kernel/apicontract/ai.go b/kernel/apicontract/ai.goindex f0776ff04f..0efe7e710f 100644--- a/kernel/apicontract/ai.go+++ b/kernel/apicontract/ai.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "strings"diff --git a/kernel/apicontract/ai_agent.go b/kernel/apicontract/ai_agent.goindex 16da742e82..7045baed58 100644--- a/kernel/apicontract/ai_agent.go+++ b/kernel/apicontract/ai_agent.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype AIReference struct {diff --git a/kernel/apicontract/ai_decision_test.go b/kernel/apicontract/ai_decision_test.goindex 5d830b4a3e..8b4a34fbe0 100644--- a/kernel/apicontract/ai_decision_test.go+++ b/kernel/apicontract/ai_decision_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/ai_input.go b/kernel/apicontract/ai_input.goindex daa9d5b502..98d31bcb2b 100644--- a/kernel/apicontract/ai_input.go+++ b/kernel/apicontract/ai_input.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/ai_instructions.go b/kernel/apicontract/ai_instructions.goindex 7c7d91de52..4ca78d88ff 100644--- a/kernel/apicontract/ai_instructions.go+++ b/kernel/apicontract/ai_instructions.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// AIAgentInstructionsData 是工作空间 data/storage/ai/AGENTS.md 的 UTF-8 原文与内容修订标识。diff --git a/kernel/apicontract/ai_instructions_test.go b/kernel/apicontract/ai_instructions_test.goindex 36cd1581b6..60c1eb621a 100644--- a/kernel/apicontract/ai_instructions_test.go+++ b/kernel/apicontract/ai_instructions_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/ai_session.go b/kernel/apicontract/ai_session.goindex 6b7b845bf3..635bb9b43b 100644--- a/kernel/apicontract/ai_session.go+++ b/kernel/apicontract/ai_session.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/ai_skill_manage.go b/kernel/apicontract/ai_skill_manage.goindex d59746d523..92567337e4 100644--- a/kernel/apicontract/ai_skill_manage.go+++ b/kernel/apicontract/ai_skill_manage.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// AISkillFileRequest 使用工作空间技能目录内的相对路径,保留 UTF-8 文本原文和版本。diff --git a/kernel/apicontract/ai_skill_manage_test.go b/kernel/apicontract/ai_skill_manage_test.goindex 9136ce9e98..cd6905afe4 100644--- a/kernel/apicontract/ai_skill_manage_test.go+++ b/kernel/apicontract/ai_skill_manage_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/ai_test.go b/kernel/apicontract/ai_test.goindex 38b4d66a13..af0ed80a1b 100644--- a/kernel/apicontract/ai_test.go+++ b/kernel/apicontract/ai_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/archive.go b/kernel/apicontract/archive.goindex d4f084a2ef..47836ad42b 100644--- a/kernel/apicontract/archive.go+++ b/kernel/apicontract/archive.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype ZipRequest struct {diff --git a/kernel/apicontract/asset.go b/kernel/apicontract/asset.goindex 397ab67716..ae45a17569 100644--- a/kernel/apicontract/asset.go+++ b/kernel/apicontract/asset.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/asset_relink.go b/kernel/apicontract/asset_relink.goindex 87a0281438..ed40c09ccc 100644--- a/kernel/apicontract/asset_relink.go+++ b/kernel/apicontract/asset_relink.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype FindAssetReferencesRequest struct {diff --git a/kernel/apicontract/asset_test.go b/kernel/apicontract/asset_test.goindex c2c84c4a4e..05e2fe2dde 100644--- a/kernel/apicontract/asset_test.go+++ b/kernel/apicontract/asset_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/authorization.go b/kernel/apicontract/authorization.goindex ea4168c8db..8dd2e7c659 100644--- a/kernel/apicontract/authorization.go+++ b/kernel/apicontract/authorization.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// Authorization 显式声明路由的访问要求;公开端点也必须使用 PublicAccess 标记。diff --git a/kernel/apicontract/authorization_test.go b/kernel/apicontract/authorization_test.goindex 3ab3ddca6e..013d7efff0 100644--- a/kernel/apicontract/authorization_test.go+++ b/kernel/apicontract/authorization_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/av_automation.go b/kernel/apicontract/av_automation.goindex e67a3bee30..784a5ee0ad 100644--- a/kernel/apicontract/av_automation.go+++ b/kernel/apicontract/av_automation.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// AVAutomationConfig 通过 setAttrViewAutomations 事务操作整体保存,所有镜像和视图共享。diff --git a/kernel/apicontract/av_calendar.go b/kernel/apicontract/av_calendar.goindex 143ac354ad..d022bd5619 100644--- a/kernel/apicontract/av_calendar.go+++ b/kernel/apicontract/av_calendar.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// AVCalendarSettings 是 setAttrViewCalendar 事务的完整设置数据,也是日历布局的持久化字段和显示设置。diff --git a/kernel/apicontract/av_conditional_color.go b/kernel/apicontract/av_conditional_color.goindex dcee55472f..9ffd9d0295 100644--- a/kernel/apicontract/av_conditional_color.go+++ b/kernel/apicontract/av_conditional_color.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// AVConditionalColorRule 是 setAttrViewConditionalColors 事务数组中的单字段规则。diff --git a/kernel/apicontract/av_decode.go b/kernel/apicontract/av_decode.goindex 0f45119d7a..e08b28ad67 100644--- a/kernel/apicontract/av_decode.go+++ b/kernel/apicontract/av_decode.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/av_location.go b/kernel/apicontract/av_location.goindex cda2de7e48..7f9737f87e 100644--- a/kernel/apicontract/av_location.go+++ b/kernel/apicontract/av_location.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/av_requests.go b/kernel/apicontract/av_requests.goindex c02cf1eb78..6b73c1f2c6 100644--- a/kernel/apicontract/av_requests.go+++ b/kernel/apicontract/av_requests.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype RemoveUnusedAttributeViewRequest struct {diff --git a/kernel/apicontract/av_response.go b/kernel/apicontract/av_response.goindex 3dbb84c578..0c469fb32c 100644--- a/kernel/apicontract/av_response.go+++ b/kernel/apicontract/av_response.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype AVIDData struct {diff --git a/kernel/apicontract/av_retired_map_test.go b/kernel/apicontract/av_retired_map_test.goindex 4b6f75a35b..94fe3a7375 100644--- a/kernel/apicontract/av_retired_map_test.go+++ b/kernel/apicontract/av_retired_map_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/av_test.go b/kernel/apicontract/av_test.goindex 3a03d2dfc5..0d7fa35d56 100644--- a/kernel/apicontract/av_test.go+++ b/kernel/apicontract/av_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/av_types.go b/kernel/apicontract/av_types.goindex 7f7c8ded3c..03249a8343 100644--- a/kernel/apicontract/av_types.go+++ b/kernel/apicontract/av_types.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype AVTable struct {diff --git a/kernel/apicontract/av_union.go b/kernel/apicontract/av_union.goindex 7344a50008..caf4c8bf0d 100644--- a/kernel/apicontract/av_union.go+++ b/kernel/apicontract/av_union.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/av_value_patch.go b/kernel/apicontract/av_value_patch.goindex 3d6ba181ba..cf1318d99a 100644--- a/kernel/apicontract/av_value_patch.go+++ b/kernel/apicontract/av_value_patch.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "encoding/json"diff --git a/kernel/apicontract/basics.go b/kernel/apicontract/basics.goindex 303ffe2711..a0ff25a70a 100644--- a/kernel/apicontract/basics.go+++ b/kernel/apicontract/basics.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype WorkspaceInfoData struct {diff --git a/kernel/apicontract/basics_test.go b/kernel/apicontract/basics_test.goindex 36169ba3e4..3159bf2ffa 100644--- a/kernel/apicontract/basics_test.go+++ b/kernel/apicontract/basics_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/bazaar.go b/kernel/apicontract/bazaar.goindex c8ed5285f4..ff804c78f5 100644--- a/kernel/apicontract/bazaar.go+++ b/kernel/apicontract/bazaar.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/bazaar_test.go b/kernel/apicontract/bazaar_test.goindex 1e37b833ab..0bb910c40c 100644--- a/kernel/apicontract/bazaar_test.go+++ b/kernel/apicontract/bazaar_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/binary_error_test.go b/kernel/apicontract/binary_error_test.goindex 25e9c085a2..1aec322972 100644--- a/kernel/apicontract/binary_error_test.go+++ b/kernel/apicontract/binary_error_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "testing"diff --git a/kernel/apicontract/binary_test.go b/kernel/apicontract/binary_test.goindex 29a6390209..a56217fa28 100644--- a/kernel/apicontract/binary_test.go+++ b/kernel/apicontract/binary_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/block.go b/kernel/apicontract/block.goindex 49af8ae73c..056331e2de 100644--- a/kernel/apicontract/block.go+++ b/kernel/apicontract/block.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype ChildBlock struct {diff --git a/kernel/apicontract/block_document.go b/kernel/apicontract/block_document.goindex 25873c5b85..772a37a3fe 100644--- a/kernel/apicontract/block_document.go+++ b/kernel/apicontract/block_document.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype DocInfo struct {diff --git a/kernel/apicontract/block_edit.go b/kernel/apicontract/block_edit.goindex 535258d426..7c74a979e5 100644--- a/kernel/apicontract/block_edit.go+++ b/kernel/apicontract/block_edit.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype MoveBlockRequest struct {diff --git a/kernel/apicontract/block_edit_test.go b/kernel/apicontract/block_edit_test.goindex b029f8acd7..58a5a4e927 100644--- a/kernel/apicontract/block_edit_test.go+++ b/kernel/apicontract/block_edit_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/block_existence_test.go b/kernel/apicontract/block_existence_test.goindex 3fb9415011..a9103c1f99 100644--- a/kernel/apicontract/block_existence_test.go+++ b/kernel/apicontract/block_existence_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/block_info_decode.go b/kernel/apicontract/block_info_decode.goindex 477e0eeaf1..61a8fd98a8 100644--- a/kernel/apicontract/block_info_decode.go+++ b/kernel/apicontract/block_info_decode.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/block_info_decode_test.go b/kernel/apicontract/block_info_decode_test.goindex dd7dabb4db..d9c05c4349 100644--- a/kernel/apicontract/block_info_decode_test.go+++ b/kernel/apicontract/block_info_decode_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/block_inputs.go b/kernel/apicontract/block_inputs.goindex 78ce2a4f02..f3d4626a6a 100644--- a/kernel/apicontract/block_inputs.go+++ b/kernel/apicontract/block_inputs.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype TaskListMarkerRequest struct {diff --git a/kernel/apicontract/block_ref.go b/kernel/apicontract/block_ref.goindex d824b99ce6..97880c589e 100644--- a/kernel/apicontract/block_ref.go+++ b/kernel/apicontract/block_ref.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype RefDefs struct {diff --git a/kernel/apicontract/block_remaining.go b/kernel/apicontract/block_remaining.goindex b13060c641..a7fbd608dd 100644--- a/kernel/apicontract/block_remaining.go+++ b/kernel/apicontract/block_remaining.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/block_remaining_test.go b/kernel/apicontract/block_remaining_test.goindex 33269bd5fa..27a2b9e193 100644--- a/kernel/apicontract/block_remaining_test.go+++ b/kernel/apicontract/block_remaining_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/block_transaction.go b/kernel/apicontract/block_transaction.goindex b15a9d1e95..cb8cf58a06 100644--- a/kernel/apicontract/block_transaction.go+++ b/kernel/apicontract/block_transaction.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/block_transaction_test.go b/kernel/apicontract/block_transaction_test.goindex 5ac5ddcf5d..d0826a72a9 100644--- a/kernel/apicontract/block_transaction_test.go+++ b/kernel/apicontract/block_transaction_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/block_tree.go b/kernel/apicontract/block_tree.goindex 176f2a12cb..f0eef9cb8f 100644--- a/kernel/apicontract/block_tree.go+++ b/kernel/apicontract/block_tree.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype BlockTreeInfo struct {diff --git a/kernel/apicontract/bookmark.go b/kernel/apicontract/bookmark.goindex bb604342ac..fe57e0c9ef 100644--- a/kernel/apicontract/bookmark.go+++ b/kernel/apicontract/bookmark.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype Bookmark struct {diff --git a/kernel/apicontract/broadcast.go b/kernel/apicontract/broadcast.goindex 9902644d32..23fe97d326 100644--- a/kernel/apicontract/broadcast.go+++ b/kernel/apicontract/broadcast.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype BroadcastMessageRequest struct {diff --git a/kernel/apicontract/broadcast_protocol.go b/kernel/apicontract/broadcast_protocol.goindex c834d16003..9ae4ce788e 100644--- a/kernel/apicontract/broadcast_protocol.go+++ b/kernel/apicontract/broadcast_protocol.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/broadcast_protocol_test.go b/kernel/apicontract/broadcast_protocol_test.goindex 2656fd16e7..ace1d62fc9 100644--- a/kernel/apicontract/broadcast_protocol_test.go+++ b/kernel/apicontract/broadcast_protocol_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/chatgpt.go b/kernel/apicontract/chatgpt.goindex e1e47c773c..36082b7c94 100644--- a/kernel/apicontract/chatgpt.go+++ b/kernel/apicontract/chatgpt.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype ChatGPTAccountRequest struct {diff --git a/kernel/apicontract/clipboard.go b/kernel/apicontract/clipboard.goindex a8da86d7b0..987e486a45 100644--- a/kernel/apicontract/clipboard.go+++ b/kernel/apicontract/clipboard.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// PreparePasteAssetsRequest 为加密笔记本中的粘贴创建独立附件副本,不修改源文件。diff --git a/kernel/apicontract/clipboard_html.go b/kernel/apicontract/clipboard_html.goindex a294cbf351..8f46eade07 100644--- a/kernel/apicontract/clipboard_html.go+++ b/kernel/apicontract/clipboard_html.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/clipboard_html_test.go b/kernel/apicontract/clipboard_html_test.goindex 8d831e7572..eddb91656e 100644--- a/kernel/apicontract/clipboard_html_test.go+++ b/kernel/apicontract/clipboard_html_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/clipboard_input.go b/kernel/apicontract/clipboard_input.goindex d2ab1d8342..ae099fe79b 100644--- a/kernel/apicontract/clipboard_input.go+++ b/kernel/apicontract/clipboard_input.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/clipboard_wps.go b/kernel/apicontract/clipboard_wps.goindex 20b0efce67..b25134c581 100644--- a/kernel/apicontract/clipboard_wps.go+++ b/kernel/apicontract/clipboard_wps.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype WPSPresentationRequest struct {diff --git a/kernel/apicontract/cloud.go b/kernel/apicontract/cloud.goindex 471e9f7004..42a4d29720 100644--- a/kernel/apicontract/cloud.go+++ b/kernel/apicontract/cloud.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype CloudReminderRequest struct {diff --git a/kernel/apicontract/cmd/apigen/main.go b/kernel/apicontract/cmd/apigen/main.goindex f5a8679ba4..5bad02916b 100644--- a/kernel/apicontract/cmd/apigen/main.go+++ b/kernel/apicontract/cmd/apigen/main.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package mainimport (diff --git a/kernel/apicontract/contract_test.go b/kernel/apicontract/contract_test.goindex 8a10f4367a..aab4476a4a 100644--- a/kernel/apicontract/contract_test.go+++ b/kernel/apicontract/contract_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/contracts.go b/kernel/apicontract/contracts.goindex 4a9b379a26..9d70630cdf 100644--- a/kernel/apicontract/contracts.go+++ b/kernel/apicontract/contracts.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+// 包 apicontract 定义 HTTP 接口的线协议,不依赖内核启动或持久化模型。package apicontractdiff --git a/kernel/apicontract/criterion.go b/kernel/apicontract/criterion.goindex 2fc8149075..8461b5ad29 100644--- a/kernel/apicontract/criterion.go+++ b/kernel/apicontract/criterion.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype Criterion struct {diff --git a/kernel/apicontract/daily_note.go b/kernel/apicontract/daily_note.goindex 6eb0151c31..7a629b841f 100644--- a/kernel/apicontract/daily_note.go+++ b/kernel/apicontract/daily_note.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// DailyNoteInfoRequest 查询指定笔记本的日记候选,不创建文档或修改已有日记属性。diff --git a/kernel/apicontract/daily_note_test.go b/kernel/apicontract/daily_note_test.goindex 8e7e483252..55f3b522f4 100644--- a/kernel/apicontract/daily_note_test.go+++ b/kernel/apicontract/daily_note_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/decode.go b/kernel/apicontract/decode.goindex a6662b3558..e369ce40a7 100644--- a/kernel/apicontract/decode.go+++ b/kernel/apicontract/decode.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/direct_json_test.go b/kernel/apicontract/direct_json_test.goindex c41ca2ac17..90222f4223 100644--- a/kernel/apicontract/direct_json_test.go+++ b/kernel/apicontract/direct_json_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/document_addressing.go b/kernel/apicontract/document_addressing.goindex 8c0d25131e..8a1e5936f1 100644--- a/kernel/apicontract/document_addressing.go+++ b/kernel/apicontract/document_addressing.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/document_legacy.go b/kernel/apicontract/document_legacy.goindex 729c95430c..6e701a7e6a 100644--- a/kernel/apicontract/document_legacy.go+++ b/kernel/apicontract/document_legacy.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/document_target.go b/kernel/apicontract/document_target.goindex b4d95a1f59..862853a438 100644--- a/kernel/apicontract/document_target.go+++ b/kernel/apicontract/document_target.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/documentation_test.go b/kernel/apicontract/documentation_test.goindex b6b724369a..675c3b0732 100644--- a/kernel/apicontract/documentation_test.go+++ b/kernel/apicontract/documentation_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/empty_response.go b/kernel/apicontract/empty_response.goindex e744ff6793..e407d8ee09 100644--- a/kernel/apicontract/empty_response.go+++ b/kernel/apicontract/empty_response.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// EmptyHTTPResponse 保留显式声明的无正文 HTTP 响应。diff --git a/kernel/apicontract/empty_response_test.go b/kernel/apicontract/empty_response_test.goindex 0583140f36..8fdc88288b 100644--- a/kernel/apicontract/empty_response_test.go+++ b/kernel/apicontract/empty_response_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/export.go b/kernel/apicontract/export.goindex 95c999d77f..59a14086b7 100644--- a/kernel/apicontract/export.go+++ b/kernel/apicontract/export.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/export_test.go b/kernel/apicontract/export_test.goindex d5360391a2..e63ba34c9b 100644--- a/kernel/apicontract/export_test.go+++ b/kernel/apicontract/export_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/extension.go b/kernel/apicontract/extension.goindex 350e897e5e..e8d2adb1aa 100644--- a/kernel/apicontract/extension.go+++ b/kernel/apicontract/extension.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/extension_test.go b/kernel/apicontract/extension_test.goindex 708dae2124..b60c32261e 100644--- a/kernel/apicontract/extension_test.go+++ b/kernel/apicontract/extension_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/file.go b/kernel/apicontract/file.goindex a22d6c7c2d..90bcd72267 100644--- a/kernel/apicontract/file.go+++ b/kernel/apicontract/file.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "mime/multipart"diff --git a/kernel/apicontract/file_input.go b/kernel/apicontract/file_input.goindex ce9fd35930..64dfef3e0d 100644--- a/kernel/apicontract/file_input.go+++ b/kernel/apicontract/file_input.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/filetree_input.go b/kernel/apicontract/filetree_input.goindex 8194b6e9d9..6d9da027d6 100644--- a/kernel/apicontract/filetree_input.go+++ b/kernel/apicontract/filetree_input.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/filetree_remaining.go b/kernel/apicontract/filetree_remaining.goindex d7777cb4bb..ac53c4dea1 100644--- a/kernel/apicontract/filetree_remaining.go+++ b/kernel/apicontract/filetree_remaining.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype FileTreeNotebookRequest struct {diff --git a/kernel/apicontract/filetree_test.go b/kernel/apicontract/filetree_test.goindex fefa59fc0d..d15d97046f 100644--- a/kernel/apicontract/filetree_test.go+++ b/kernel/apicontract/filetree_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/fixed_array_test.go b/kernel/apicontract/fixed_array_test.goindex d4f54b492b..9cb858927f 100644--- a/kernel/apicontract/fixed_array_test.go+++ b/kernel/apicontract/fixed_array_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/format.go b/kernel/apicontract/format.goindex 4189f6bafc..23dbc38c2d 100644--- a/kernel/apicontract/format.go+++ b/kernel/apicontract/format.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype TrimmedIDRequest struct {diff --git a/kernel/apicontract/graph.go b/kernel/apicontract/graph.goindex c97be76202..80c779639f 100644--- a/kernel/apicontract/graph.go+++ b/kernel/apicontract/graph.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype GraphTypeFilter struct {diff --git a/kernel/apicontract/graph_input.go b/kernel/apicontract/graph_input.goindex 1348761ed1..fb757b3f3b 100644--- a/kernel/apicontract/graph_input.go+++ b/kernel/apicontract/graph_input.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/graph_query.go b/kernel/apicontract/graph_query.goindex 448e83118f..8182f4b091 100644--- a/kernel/apicontract/graph_query.go+++ b/kernel/apicontract/graph_query.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/history.go b/kernel/apicontract/history.goindex 52424c2796..c5119cb85f 100644--- a/kernel/apicontract/history.go+++ b/kernel/apicontract/history.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype HistoryPathRequest struct {diff --git a/kernel/apicontract/history_diff.go b/kernel/apicontract/history_diff.goindex a61bdc2cac..484022a345 100644--- a/kernel/apicontract/history_diff.go+++ b/kernel/apicontract/history_diff.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/history_snapshots.go b/kernel/apicontract/history_snapshots.goindex 10e2e04869..02b24a939b 100644--- a/kernel/apicontract/history_snapshots.go+++ b/kernel/apicontract/history_snapshots.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// DocHistorySnapshotsRequest 批量查询同一文档当前页文件历史关联的本地标记快照。diff --git a/kernel/apicontract/history_test.go b/kernel/apicontract/history_test.goindex cd69a534d9..0b8c0b9605 100644--- a/kernel/apicontract/history_test.go+++ b/kernel/apicontract/history_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/http_content.go b/kernel/apicontract/http_content.goindex fcafafbfed..6ef3b04c1e 100644--- a/kernel/apicontract/http_content.go+++ b/kernel/apicontract/http_content.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/http_content_test.go b/kernel/apicontract/http_content_test.goindex 38c085c230..83eb1f6538 100644--- a/kernel/apicontract/http_content_test.go+++ b/kernel/apicontract/http_content_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/http_status_test.go b/kernel/apicontract/http_status_test.goindex 54ebc19c39..173ccbda8c 100644--- a/kernel/apicontract/http_status_test.go+++ b/kernel/apicontract/http_status_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "testing"diff --git a/kernel/apicontract/import.go b/kernel/apicontract/import.goindex e31ebfbd13..29d5127e3b 100644--- a/kernel/apicontract/import.go+++ b/kernel/apicontract/import.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/import_auto.go b/kernel/apicontract/import_auto.goindex 3dbbc9c480..79ad4d25a6 100644--- a/kernel/apicontract/import_auto.go+++ b/kernel/apicontract/import_auto.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "encoding/json"diff --git a/kernel/apicontract/import_notebook.go b/kernel/apicontract/import_notebook.goindex 2b489157d5..718cd3ba69 100644--- a/kernel/apicontract/import_notebook.go+++ b/kernel/apicontract/import_notebook.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "encoding/json"diff --git a/kernel/apicontract/import_obsidian.go b/kernel/apicontract/import_obsidian.goindex 49146631df..afafc57304 100644--- a/kernel/apicontract/import_obsidian.go+++ b/kernel/apicontract/import_obsidian.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype ObsidianAnalysisRequest struct {diff --git a/kernel/apicontract/import_test.go b/kernel/apicontract/import_test.goindex 76aca9f992..2ac49d9981 100644--- a/kernel/apicontract/import_test.go+++ b/kernel/apicontract/import_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/inbox.go b/kernel/apicontract/inbox.goindex f520e278f1..7b3b7dd38b 100644--- a/kernel/apicontract/inbox.go+++ b/kernel/apicontract/inbox.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype RemoveShorthandsRequest struct {diff --git a/kernel/apicontract/inline_style.go b/kernel/apicontract/inline_style.goindex 57621fea72..af57d6e0bb 100644--- a/kernel/apicontract/inline_style.go+++ b/kernel/apicontract/inline_style.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype InlineStyleTheme struct {diff --git a/kernel/apicontract/inline_style_input.go b/kernel/apicontract/inline_style_input.goindex ed19fb2d50..2c41a6c110 100644--- a/kernel/apicontract/inline_style_input.go+++ b/kernel/apicontract/inline_style_input.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/json_value.go b/kernel/apicontract/json_value.goindex 2a22bf98db..1c5f4175a4 100644--- a/kernel/apicontract/json_value.go+++ b/kernel/apicontract/json_value.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/list_mindmap.go b/kernel/apicontract/list_mindmap.goindex 517f9bda16..9db010cfd1 100644--- a/kernel/apicontract/list_mindmap.go+++ b/kernel/apicontract/list_mindmap.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// MigrateLegacyMindmapsRequest 指定可编辑文档及其笔记本。迁移在文档事务中执行,并遵守加密笔记本访问校验。diff --git a/kernel/apicontract/live_photo.go b/kernel/apicontract/live_photo.goindex 026cce16d5..ecfe7e79b1 100644--- a/kernel/apicontract/live_photo.go+++ b/kernel/apicontract/live_photo.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "mime/multipart"diff --git a/kernel/apicontract/mcp_oauth.go b/kernel/apicontract/mcp_oauth.goindex 564cf7b767..41321cd15a 100644--- a/kernel/apicontract/mcp_oauth.go+++ b/kernel/apicontract/mcp_oauth.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// MCPOAuthConfig 控制内置 MCP 服务端授权,默认关闭。公开地址必须为不含路径的 HTTPS 源。diff --git a/kernel/apicontract/multipart.go b/kernel/apicontract/multipart.goindex 3a2e033089..847b345097 100644--- a/kernel/apicontract/multipart.go+++ b/kernel/apicontract/multipart.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/multipart_files_test.go b/kernel/apicontract/multipart_files_test.goindex 5740e3beb1..c0e421264c 100644--- a/kernel/apicontract/multipart_files_test.go+++ b/kernel/apicontract/multipart_files_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/multipart_test.go b/kernel/apicontract/multipart_test.goindex 77f0b15aba..f2082515d7 100644--- a/kernel/apicontract/multipart_test.go+++ b/kernel/apicontract/multipart_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/network.go b/kernel/apicontract/network.goindex aa69c12da6..24e78bfead 100644--- a/kernel/apicontract/network.go+++ b/kernel/apicontract/network.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype NetworkEchoData struct {diff --git a/kernel/apicontract/network_echo.go b/kernel/apicontract/network_echo.goindex ca834bd99b..0e78106e4b 100644--- a/kernel/apicontract/network_echo.go+++ b/kernel/apicontract/network_echo.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/network_echo_schema.go b/kernel/apicontract/network_echo_schema.goindex 82ebdab3c4..32b4cb2705 100644--- a/kernel/apicontract/network_echo_schema.go+++ b/kernel/apicontract/network_echo_schema.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/network_input.go b/kernel/apicontract/network_input.goindex 722c08d2d4..aadef6e1b7 100644--- a/kernel/apicontract/network_input.go+++ b/kernel/apicontract/network_input.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/network_test.go b/kernel/apicontract/network_test.goindex 99e08a326b..d006e455d4 100644--- a/kernel/apicontract/network_test.go+++ b/kernel/apicontract/network_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/notebook.go b/kernel/apicontract/notebook.goindex 151ec3dc74..046c4922e0 100644--- a/kernel/apicontract/notebook.go+++ b/kernel/apicontract/notebook.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "mime/multipart"diff --git a/kernel/apicontract/notebook_archive.go b/kernel/apicontract/notebook_archive.goindex 1d7f2cf2e9..4547065d77 100644--- a/kernel/apicontract/notebook_archive.go+++ b/kernel/apicontract/notebook_archive.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "mime/multipart"diff --git a/kernel/apicontract/notebook_archive_test.go b/kernel/apicontract/notebook_archive_test.goindex 20497dc5a7..02b409d900 100644--- a/kernel/apicontract/notebook_archive_test.go+++ b/kernel/apicontract/notebook_archive_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/notebook_patch.go b/kernel/apicontract/notebook_patch.goindex 2411489324..f879ecb1c2 100644--- a/kernel/apicontract/notebook_patch.go+++ b/kernel/apicontract/notebook_patch.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "encoding/json"diff --git a/kernel/apicontract/notebook_system_lock.go b/kernel/apicontract/notebook_system_lock.goindex e5ca768381..e4fc6f85bb 100644--- a/kernel/apicontract/notebook_system_lock.go+++ b/kernel/apicontract/notebook_system_lock.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype EncryptedNotebookFollowSystemLockRequest struct {diff --git a/kernel/apicontract/notebook_system_lock_test.go b/kernel/apicontract/notebook_system_lock_test.goindex dd45d05f97..7a4db0139c 100644--- a/kernel/apicontract/notebook_system_lock_test.go+++ b/kernel/apicontract/notebook_system_lock_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/notebook_test.go b/kernel/apicontract/notebook_test.goindex 842e549ec4..02bf183615 100644--- a/kernel/apicontract/notebook_test.go+++ b/kernel/apicontract/notebook_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/notification.go b/kernel/apicontract/notification.goindex 9abf24a4ff..4fca672481 100644--- a/kernel/apicontract/notification.go+++ b/kernel/apicontract/notification.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype NotificationRequest struct {diff --git a/kernel/apicontract/ocr.go b/kernel/apicontract/ocr.goindex 2ce0934987..d97c46c89b 100644--- a/kernel/apicontract/ocr.go+++ b/kernel/apicontract/ocr.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "mime/multipart"diff --git a/kernel/apicontract/ocr_ai_test.go b/kernel/apicontract/ocr_ai_test.goindex a1f977a50a..6634d5c152 100644--- a/kernel/apicontract/ocr_ai_test.go+++ b/kernel/apicontract/ocr_ai_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/ocr_test.go b/kernel/apicontract/ocr_test.goindex b2cb9d2be6..8ff7b3237c 100644--- a/kernel/apicontract/ocr_test.go+++ b/kernel/apicontract/ocr_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/outline.go b/kernel/apicontract/outline.goindex ca9c9a6aca..127c6fdddb 100644--- a/kernel/apicontract/outline.go+++ b/kernel/apicontract/outline.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/outline_test.go b/kernel/apicontract/outline_test.goindex d42fd9d28a..1934bc66f4 100644--- a/kernel/apicontract/outline_test.go+++ b/kernel/apicontract/outline_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/pandoc.go b/kernel/apicontract/pandoc.goindex eda0d67d7e..eb256cdf8a 100644--- a/kernel/apicontract/pandoc.go+++ b/kernel/apicontract/pandoc.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype PandocRequest struct {diff --git a/kernel/apicontract/petal.go b/kernel/apicontract/petal.goindex ca8d0cb667..ce061ca67d 100644--- a/kernel/apicontract/petal.go+++ b/kernel/apicontract/petal.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype LoadPetalsRequest struct {diff --git a/kernel/apicontract/pinned_docs.go b/kernel/apicontract/pinned_docs.goindex e3a2acb8cc..3f2be4600e 100644--- a/kernel/apicontract/pinned_docs.go+++ b/kernel/apicontract/pinned_docs.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype PinnedDoc struct {diff --git a/kernel/apicontract/pinned_docs_test.go b/kernel/apicontract/pinned_docs_test.goindex bc01022744..fa832b7876 100644--- a/kernel/apicontract/pinned_docs_test.go+++ b/kernel/apicontract/pinned_docs_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/plugin.go b/kernel/apicontract/plugin.goindex 3a0f5d13ea..8725a28348 100644--- a/kernel/apicontract/plugin.go+++ b/kernel/apicontract/plugin.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/plugin_publish.go b/kernel/apicontract/plugin_publish.goindex c75a526485..09970175dd 100644--- a/kernel/apicontract/plugin_publish.go+++ b/kernel/apicontract/plugin_publish.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/plugin_publish_test.go b/kernel/apicontract/plugin_publish_test.goindex 7e0029a3b0..0a2dc79c49 100644--- a/kernel/apicontract/plugin_publish_test.go+++ b/kernel/apicontract/plugin_publish_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/plugin_rpc.go b/kernel/apicontract/plugin_rpc.goindex 75d57c593e..76452defcc 100644--- a/kernel/apicontract/plugin_rpc.go+++ b/kernel/apicontract/plugin_rpc.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/plugin_rpc_test.go b/kernel/apicontract/plugin_rpc_test.goindex ea99a1070b..874c9dd767 100644--- a/kernel/apicontract/plugin_rpc_test.go+++ b/kernel/apicontract/plugin_rpc_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/plugin_service_protocol.go b/kernel/apicontract/plugin_service_protocol.goindex cd6ee8929f..6bf27a1ad5 100644--- a/kernel/apicontract/plugin_service_protocol.go+++ b/kernel/apicontract/plugin_service_protocol.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/plugin_service_protocol_test.go b/kernel/apicontract/plugin_service_protocol_test.goindex 424af272c9..ef16764464 100644--- a/kernel/apicontract/plugin_service_protocol_test.go+++ b/kernel/apicontract/plugin_service_protocol_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/plugin_test.go b/kernel/apicontract/plugin_test.goindex ff13d4342f..e805dec10d 100644--- a/kernel/apicontract/plugin_test.go+++ b/kernel/apicontract/plugin_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/proxy_protocol.go b/kernel/apicontract/proxy_protocol.goindex 152d36766b..5b55cf6837 100644--- a/kernel/apicontract/proxy_protocol.go+++ b/kernel/apicontract/proxy_protocol.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/proxy_protocol_test.go b/kernel/apicontract/proxy_protocol_test.goindex f5d87ebdbb..2844abce9e 100644--- a/kernel/apicontract/proxy_protocol_test.go+++ b/kernel/apicontract/proxy_protocol_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/query.go b/kernel/apicontract/query.goindex 87b8b6b50b..6a83ffd033 100644--- a/kernel/apicontract/query.go+++ b/kernel/apicontract/query.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/query_test.go b/kernel/apicontract/query_test.goindex 749c4b7b69..3cddcf5c6c 100644--- a/kernel/apicontract/query_test.go+++ b/kernel/apicontract/query_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/ref.go b/kernel/apicontract/ref.goindex 6b49230204..f99ba80f12 100644--- a/kernel/apicontract/ref.go+++ b/kernel/apicontract/ref.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/ref_global.go b/kernel/apicontract/ref_global.goindex 8ee1a02f0b..b7c308a00b 100644--- a/kernel/apicontract/ref_global.go+++ b/kernel/apicontract/ref_global.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// 全局反链的分页快照仅固定条目次序,正文始终通过独立请求读取。diff --git a/kernel/apicontract/ref_global_test.go b/kernel/apicontract/ref_global_test.goindex deede6f254..0ba07ec0c7 100644--- a/kernel/apicontract/ref_global_test.go+++ b/kernel/apicontract/ref_global_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/ref_list.go b/kernel/apicontract/ref_list.goindex 3fab226579..85b9a9cb1d 100644--- a/kernel/apicontract/ref_list.go+++ b/kernel/apicontract/ref_list.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/ref_list_test.go b/kernel/apicontract/ref_list_test.goindex d9bdce291f..4f0448c015 100644--- a/kernel/apicontract/ref_list_test.go+++ b/kernel/apicontract/ref_list_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/ref_sort_test.go b/kernel/apicontract/ref_sort_test.goindex efda2dc357..d685fdf067 100644--- a/kernel/apicontract/ref_sort_test.go+++ b/kernel/apicontract/ref_sort_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/ref_test.go b/kernel/apicontract/ref_test.goindex 3e852bde1e..8fb4a9f7fc 100644--- a/kernel/apicontract/ref_test.go+++ b/kernel/apicontract/ref_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/repo.go b/kernel/apicontract/repo.goindex 2cce294340..349e8e0892 100644--- a/kernel/apicontract/repo.go+++ b/kernel/apicontract/repo.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/repo_test.go b/kernel/apicontract/repo_test.goindex dcb2a7ba24..831625b52d 100644--- a/kernel/apicontract/repo_test.go+++ b/kernel/apicontract/repo_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/response.go b/kernel/apicontract/response.goindex 06a70357a0..12cb314b8b 100644--- a/kernel/apicontract/response.go+++ b/kernel/apicontract/response.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/response_encoder_test.go b/kernel/apicontract/response_encoder_test.goindex c1cfabf5cf..9fd0137c90 100644--- a/kernel/apicontract/response_encoder_test.go+++ b/kernel/apicontract/response_encoder_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/riff.go b/kernel/apicontract/riff.goindex 271e077bfa..2004ba6e3c 100644--- a/kernel/apicontract/riff.go+++ b/kernel/apicontract/riff.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/riff_test.go b/kernel/apicontract/riff_test.goindex 24d02cf0a6..1e05772c1f 100644--- a/kernel/apicontract/riff_test.go+++ b/kernel/apicontract/riff_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/routes.go b/kernel/apicontract/routes.goindex 5dd8a15d8e..40a7ad71b8 100644--- a/kernel/apicontract/routes.go+++ b/kernel/apicontract/routes.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/schema.go b/kernel/apicontract/schema.goindex 8c001966d2..d63e1cefde 100644--- a/kernel/apicontract/schema.go+++ b/kernel/apicontract/schema.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/schema_numbers.go b/kernel/apicontract/schema_numbers.goindex c128ee475b..8b29659b9f 100644--- a/kernel/apicontract/schema_numbers.go+++ b/kernel/apicontract/schema_numbers.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/schema_numbers_test.go b/kernel/apicontract/schema_numbers_test.goindex 8288d0cee5..7c35a57daf 100644--- a/kernel/apicontract/schema_numbers_test.go+++ b/kernel/apicontract/schema_numbers_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/search.go b/kernel/apicontract/search.goindex 21235a452a..d10cd32f20 100644--- a/kernel/apicontract/search.go+++ b/kernel/apicontract/search.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype SearchPageRequest struct {diff --git a/kernel/apicontract/search_block.go b/kernel/apicontract/search_block.goindex 23bf3a30b1..408114d1e5 100644--- a/kernel/apicontract/search_block.go+++ b/kernel/apicontract/search_block.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype SearchBlock struct {diff --git a/kernel/apicontract/search_mindmap_test.go b/kernel/apicontract/search_mindmap_test.goindex 3b6dc5fd99..dbe1b26e3d 100644--- a/kernel/apicontract/search_mindmap_test.go+++ b/kernel/apicontract/search_mindmap_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/search_query.go b/kernel/apicontract/search_query.goindex 05e499bb69..ce82d7df86 100644--- a/kernel/apicontract/search_query.go+++ b/kernel/apicontract/search_query.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/search_ref.go b/kernel/apicontract/search_ref.goindex 57e041543f..fd3f5b7fa9 100644--- a/kernel/apicontract/search_ref.go+++ b/kernel/apicontract/search_ref.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/search_test.go b/kernel/apicontract/search_test.goindex 2a35571dca..37f319592e 100644--- a/kernel/apicontract/search_test.go+++ b/kernel/apicontract/search_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/setting.go b/kernel/apicontract/setting.goindex 7d777ec09c..3ac16fd15a 100644--- a/kernel/apicontract/setting.go+++ b/kernel/apicontract/setting.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype SettingSnpt struct {diff --git a/kernel/apicontract/setting_cloud.go b/kernel/apicontract/setting_cloud.goindex 14c051719c..d120f888d5 100644--- a/kernel/apicontract/setting_cloud.go+++ b/kernel/apicontract/setting_cloud.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/setting_cloud_user_test.go b/kernel/apicontract/setting_cloud_user_test.goindex c6f55d411b..a3fc169479 100644--- a/kernel/apicontract/setting_cloud_user_test.go+++ b/kernel/apicontract/setting_cloud_user_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/setting_config.go b/kernel/apicontract/setting_config.goindex bff3733845..9ee2dce1f5 100644--- a/kernel/apicontract/setting_config.go+++ b/kernel/apicontract/setting_config.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/setting_input.go b/kernel/apicontract/setting_input.goindex dba44af7b3..3839ff2417 100644--- a/kernel/apicontract/setting_input.go+++ b/kernel/apicontract/setting_input.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/setting_patch.go b/kernel/apicontract/setting_patch.goindex 8f307b6b71..48c94c2fef 100644--- a/kernel/apicontract/setting_patch.go+++ b/kernel/apicontract/setting_patch.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/setting_patch_test.go b/kernel/apicontract/setting_patch_test.goindex 50f5bdb8d2..daf72abe98 100644--- a/kernel/apicontract/setting_patch_test.go+++ b/kernel/apicontract/setting_patch_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/setting_read.go b/kernel/apicontract/setting_read.goindex 44eb04c2af..731a09f1a2 100644--- a/kernel/apicontract/setting_read.go+++ b/kernel/apicontract/setting_read.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// SettingGetSectionRequest 读取单个配置段。namespace 与 SetConf/SettingsPatch 的命名空间一致。diff --git a/kernel/apicontract/setting_test.go b/kernel/apicontract/setting_test.goindex 66a16ecdcd..5dacabb92c 100644--- a/kernel/apicontract/setting_test.go+++ b/kernel/apicontract/setting_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/setting_write.go b/kernel/apicontract/setting_write.goindex 6b2c959c0d..b0245f0cf5 100644--- a/kernel/apicontract/setting_write.go+++ b/kernel/apicontract/setting_write.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// SettingWriteMode 决定写配置端点的串行化与通知方式。diff --git a/kernel/apicontract/settings_reset.go b/kernel/apicontract/settings_reset.goindex 73776d2dbb..537a840963 100644--- a/kernel/apicontract/settings_reset.go+++ b/kernel/apicontract/settings_reset.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// ResetSettingsRequest 重置当前工作空间的普通偏好和内置布局。Exit 仅通知本地桌面前端在重载后正常退出,diff --git a/kernel/apicontract/snippet.go b/kernel/apicontract/snippet.goindex 9b109422f1..d17b242ab6 100644--- a/kernel/apicontract/snippet.go+++ b/kernel/apicontract/snippet.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype Snippet struct {diff --git a/kernel/apicontract/sse.go b/kernel/apicontract/sse.goindex 61e0ae975c..d341947198 100644--- a/kernel/apicontract/sse.go+++ b/kernel/apicontract/sse.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/sse_test.go b/kernel/apicontract/sse_test.goindex df48504328..f793b16301 100644--- a/kernel/apicontract/sse_test.go+++ b/kernel/apicontract/sse_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/storage.go b/kernel/apicontract/storage.goindex ae8170bc72..7f15e91c34 100644--- a/kernel/apicontract/storage.go+++ b/kernel/apicontract/storage.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/sync.go b/kernel/apicontract/sync.goindex 6a61951448..35fb7fc735 100644--- a/kernel/apicontract/sync.go+++ b/kernel/apicontract/sync.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/sync_test.go b/kernel/apicontract/sync_test.goindex 0a1f5a1c17..ded420f62f 100644--- a/kernel/apicontract/sync_test.go+++ b/kernel/apicontract/sync_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/system.go b/kernel/apicontract/system.goindex e01de2b0e0..89fb0330d0 100644--- a/kernel/apicontract/system.go+++ b/kernel/apicontract/system.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "mime/multipart"diff --git a/kernel/apicontract/system_conf.go b/kernel/apicontract/system_conf.goindex dfc0c7e846..d17886ba5d 100644--- a/kernel/apicontract/system_conf.go+++ b/kernel/apicontract/system_conf.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype SystemAppConf struct {diff --git a/kernel/apicontract/system_input.go b/kernel/apicontract/system_input.goindex 67dbb06976..60066d2805 100644--- a/kernel/apicontract/system_input.go+++ b/kernel/apicontract/system_input.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/system_schema.go b/kernel/apicontract/system_schema.goindex 1d94854301..b39d3e0f3d 100644--- a/kernel/apicontract/system_schema.go+++ b/kernel/apicontract/system_schema.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "reflect"diff --git a/kernel/apicontract/system_test.go b/kernel/apicontract/system_test.goindex e446ac6049..5b8f94d270 100644--- a/kernel/apicontract/system_test.go+++ b/kernel/apicontract/system_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/template.go b/kernel/apicontract/template.goindex 5cffccd1b5..355d831fc9 100644--- a/kernel/apicontract/template.go+++ b/kernel/apicontract/template.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/template_manage.go b/kernel/apicontract/template_manage.goindex 447314db36..7d2b0b0d47 100644--- a/kernel/apicontract/template_manage.go+++ b/kernel/apicontract/template_manage.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "encoding/json"diff --git a/kernel/apicontract/template_render.go b/kernel/apicontract/template_render.goindex 26abe502a7..3c3dd3e62f 100644--- a/kernel/apicontract/template_render.go+++ b/kernel/apicontract/template_render.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/template_test.go b/kernel/apicontract/template_test.goindex 2d72997290..3342b464a2 100644--- a/kernel/apicontract/template_test.go+++ b/kernel/apicontract/template_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/transaction_decode.go b/kernel/apicontract/transaction_decode.goindex f2cddb76de..36466d4386 100644--- a/kernel/apicontract/transaction_decode.go+++ b/kernel/apicontract/transaction_decode.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/transaction_schema.go b/kernel/apicontract/transaction_schema.goindex 8f4d9b4ce8..d6ec0ef8c2 100644--- a/kernel/apicontract/transaction_schema.go+++ b/kernel/apicontract/transaction_schema.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/transaction_test.go b/kernel/apicontract/transaction_test.goindex 6108365418..8c325c2c6d 100644--- a/kernel/apicontract/transaction_test.go+++ b/kernel/apicontract/transaction_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/transaction_types.go b/kernel/apicontract/transaction_types.goindex a9a2207119..dd2348efe8 100644--- a/kernel/apicontract/transaction_types.go+++ b/kernel/apicontract/transaction_types.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "encoding/json"diff --git a/kernel/apicontract/typescript.go b/kernel/apicontract/typescript.goindex 769577ed58..78d82f6c19 100644--- a/kernel/apicontract/typescript.go+++ b/kernel/apicontract/typescript.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/typescript_properties_test.go b/kernel/apicontract/typescript_properties_test.goindex a5d5cc4dff..d969122bad 100644--- a/kernel/apicontract/typescript_properties_test.go+++ b/kernel/apicontract/typescript_properties_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "testing"diff --git a/kernel/apicontract/ui_test.go b/kernel/apicontract/ui_test.goindex 9167eb3fcc..85835fa703 100644--- a/kernel/apicontract/ui_test.go+++ b/kernel/apicontract/ui_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/utility.go b/kernel/apicontract/utility.goindex 5087e9ad47..5a8a1b75ee 100644--- a/kernel/apicontract/utility.go+++ b/kernel/apicontract/utility.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontracttype CopyStdMarkdownRequest struct {diff --git a/kernel/apicontract/websocket.go b/kernel/apicontract/websocket.goindex a0be3b5790..977ed85fb3 100644--- a/kernel/apicontract/websocket.go+++ b/kernel/apicontract/websocket.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport (diff --git a/kernel/apicontract/websocket_test.go b/kernel/apicontract/websocket_test.goindex c9ee846824..b2e7ef10d5 100644--- a/kernel/apicontract/websocket_test.go+++ b/kernel/apicontract/websocket_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontractimport "testing"diff --git a/kernel/apicontract/workspace_storage.go b/kernel/apicontract/workspace_storage.goindex a11d0cb7cd..c8065131e5 100644--- a/kernel/apicontract/workspace_storage.go+++ b/kernel/apicontract/workspace_storage.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package apicontract// WorkspaceStorageData 统计当前内核工作空间已落盘的普通文件字节数,不包含目录分配空间或链接目标。diff --git a/kernel/av/automation.go b/kernel/av/automation.goindex 056c08c4ab..61acc34396 100644--- a/kernel/av/automation.go+++ b/kernel/av/automation.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/automation_template.go b/kernel/av/automation_template.goindex b43611d238..0f20658ab9 100644--- a/kernel/av/automation_template.go+++ b/kernel/av/automation_template.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/automation_template_test.go b/kernel/av/automation_template_test.goindex 4aa786832a..69a267251f 100644--- a/kernel/av/automation_template_test.go+++ b/kernel/av/automation_template_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/automation_test.go b/kernel/av/automation_test.goindex b6b5e3da8a..4def69141c 100644--- a/kernel/av/automation_test.go+++ b/kernel/av/automation_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/av.go b/kernel/av/av.goindex 33dffe010f..5c6835bd16 100644--- a/kernel/av/av.go+++ b/kernel/av/av.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later// Package av 包含了属性视图(Attribute View)相关的实现。package avdiff --git a/kernel/av/av_fix.go b/kernel/av/av_fix.goindex 5619ff10d5..5bdfd7f18d 100644--- a/kernel/av/av_fix.go+++ b/kernel/av/av_fix.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/av_fix_test.go b/kernel/av/av_fix_test.goindex 7cb1cf5022..943541aedf 100644--- a/kernel/av/av_fix_test.go+++ b/kernel/av/av_fix_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/av_search_test.go b/kernel/av/av_search_test.goindex 073ddf37da..386f05f9ed 100644--- a/kernel/av/av_search_test.go+++ b/kernel/av/av_search_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/cache_read_test.go b/kernel/av/cache_read_test.goindex 3e241be31f..4412c306ce 100644--- a/kernel/av/cache_read_test.go+++ b/kernel/av/cache_read_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/calc.go b/kernel/av/calc.goindex 4261406985..82c16813d0 100644--- a/kernel/av/calc.go+++ b/kernel/av/calc.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/calc_template.go b/kernel/av/calc_template.goindex d5082f1ff8..f1bfa051a9 100644--- a/kernel/av/calc_template.go+++ b/kernel/av/calc_template.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/calc_test.go b/kernel/av/calc_test.goindex 8ee3d91531..4d416b838a 100644--- a/kernel/av/calc_test.go+++ b/kernel/av/calc_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport "testing"diff --git a/kernel/av/capabilities.go b/kernel/av/capabilities.goindex 73f804a82e..1a3ab5ebee 100644--- a/kernel/av/capabilities.go+++ b/kernel/av/capabilities.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport "sort"diff --git a/kernel/av/capabilities_codegen.go b/kernel/av/capabilities_codegen.goindex e0825a288a..8702f0b0a5 100644--- a/kernel/av/capabilities_codegen.go+++ b/kernel/av/capabilities_codegen.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/capabilities_test.go b/kernel/av/capabilities_test.goindex b361bdd9c5..d0bb2c2095 100644--- a/kernel/av/capabilities_test.go+++ b/kernel/av/capabilities_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/capability_groups.go b/kernel/av/capability_groups.goindex 9fdecb457a..8a923ec6f0 100644--- a/kernel/av/capability_groups.go+++ b/kernel/av/capability_groups.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport "encoding/json"diff --git a/kernel/av/card_cover_position.go b/kernel/av/card_cover_position.goindex 6374340355..0967251eb8 100644--- a/kernel/av/card_cover_position.go+++ b/kernel/av/card_cover_position.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/card_cover_position_test.go b/kernel/av/card_cover_position_test.goindex 64acf9f244..4b9c274d5b 100644--- a/kernel/av/card_cover_position_test.go+++ b/kernel/av/card_cover_position_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/collection_index.go b/kernel/av/collection_index.goindex 7b335272f8..e8bc9b07ec 100644--- a/kernel/av/collection_index.go+++ b/kernel/av/collection_index.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/collection_index_test.go b/kernel/av/collection_index_test.goindex b242f1fdd0..2edeb36f0d 100644--- a/kernel/av/collection_index_test.go+++ b/kernel/av/collection_index_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/color.go b/kernel/av/color.goindex f6cd2aef7d..22a5f6bdb9 100644--- a/kernel/av/color.go+++ b/kernel/av/color.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/color_render_context_test.go b/kernel/av/color_render_context_test.goindex 31cadb8fea..a94822d4b8 100644--- a/kernel/av/color_render_context_test.go+++ b/kernel/av/color_render_context_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/color_test.go b/kernel/av/color_test.goindex 3c6860c877..d68a369cb5 100644--- a/kernel/av/color_test.go+++ b/kernel/av/color_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/conditional_color.go b/kernel/av/conditional_color.goindex 9e73af6f65..601e104a9d 100644--- a/kernel/av/conditional_color.go+++ b/kernel/av/conditional_color.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/av/conditional_color_test.go b/kernel/av/conditional_color_test.goindex 8f4e78783d..e038fc4fda 100644--- a/kernel/av/conditional_color_test.go+++ b/kernel/av/conditional_color_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/context_filter.go b/kernel/av/context_filter.goindex 9e722461f7..c745abe71b 100644--- a/kernel/av/context_filter.go+++ b/kernel/av/context_filter.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/context_filter_test.go b/kernel/av/context_filter_test.goindex c8c09910d0..5fe232c256 100644--- a/kernel/av/context_filter_test.go+++ b/kernel/av/context_filter_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/date_format_test.go b/kernel/av/date_format_test.goindex 5533654cb7..17012adaf3 100644--- a/kernel/av/date_format_test.go+++ b/kernel/av/date_format_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/encrypted_atomic_write_test.go b/kernel/av/encrypted_atomic_write_test.goindex f7e78e8eba..2f94f9c1fd 100644--- a/kernel/av/encrypted_atomic_write_test.go+++ b/kernel/av/encrypted_atomic_write_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/encrypted_hook.go b/kernel/av/encrypted_hook.goindex 33fc416e62..105fd98906 100644--- a/kernel/av/encrypted_hook.go+++ b/kernel/av/encrypted_hook.go@@ -1,6 +1,7 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//+// SPDX-License-Identifier: AGPL-3.0-or-later+// 本文件为加密笔记本的 AV 定义提供笔记本级存储与 DEK 加解密支持。// 与 filesys/crypto_hook.go 同模式:av 包不直接 import model(避免循环依赖),// 由 model 层在 init 时注入回调函数。diff --git a/kernel/av/filter.go b/kernel/av/filter.goindex c63e870706..09b330e484 100644--- a/kernel/av/filter.go+++ b/kernel/av/filter.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/filter_capabilities.go b/kernel/av/filter_capabilities.goindex ee2ad1fe44..2a877ff791 100644--- a/kernel/av/filter_capabilities.go+++ b/kernel/av/filter_capabilities.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport "slices"diff --git a/kernel/av/filter_capabilities_test.go b/kernel/av/filter_capabilities_test.goindex a05b5a16ed..39aa97df56 100644--- a/kernel/av/filter_capabilities_test.go+++ b/kernel/av/filter_capabilities_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/filter_test.go b/kernel/av/filter_test.goindex 39ae123e16..6ee1699c50 100644--- a/kernel/av/filter_test.go+++ b/kernel/av/filter_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/group.go b/kernel/av/group.goindex 8129c5df1a..4327f20136 100644--- a/kernel/av/group.go+++ b/kernel/av/group.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/index_read_failure_test.go b/kernel/av/index_read_failure_test.goindex 7b9e899dd3..fc8cd3e42a 100644--- a/kernel/av/index_read_failure_test.go+++ b/kernel/av/index_read_failure_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/layout.go b/kernel/av/layout.goindex 4378141b1b..73fca6e637 100644--- a/kernel/av/layout.go+++ b/kernel/av/layout.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/layout_calendar.go b/kernel/av/layout_calendar.goindex b2c3edc464..3973692266 100644--- a/kernel/av/layout_calendar.go+++ b/kernel/av/layout_calendar.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/av/layout_calendar_test.go b/kernel/av/layout_calendar_test.goindex 71d620c0f3..cf309d95a3 100644--- a/kernel/av/layout_calendar_test.go+++ b/kernel/av/layout_calendar_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/layout_card.go b/kernel/av/layout_card.goindex 971ef18d39..4badbd0eb0 100644--- a/kernel/av/layout_card.go+++ b/kernel/av/layout_card.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/layout_card_test.go b/kernel/av/layout_card_test.goindex 1eac16c0d0..561c207c71 100644--- a/kernel/av/layout_card_test.go+++ b/kernel/av/layout_card_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport "testing"diff --git a/kernel/av/layout_deprecated_test.go b/kernel/av/layout_deprecated_test.goindex 94e2533cd3..857c0ae970 100644--- a/kernel/av/layout_deprecated_test.go+++ b/kernel/av/layout_deprecated_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/layout_gallery.go b/kernel/av/layout_gallery.goindex 1fa784afaa..b1ab8c8577 100644--- a/kernel/av/layout_gallery.go+++ b/kernel/av/layout_gallery.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/layout_kanban.go b/kernel/av/layout_kanban.goindex 9d7dfe73ce..92ea3abed3 100644--- a/kernel/av/layout_kanban.go+++ b/kernel/av/layout_kanban.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/layout_legacy_map.go b/kernel/av/layout_legacy_map.goindex fd835f1ba0..d5a8c26429 100644--- a/kernel/av/layout_legacy_map.go+++ b/kernel/av/layout_legacy_map.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/av/layout_legacy_map_test.go b/kernel/av/layout_legacy_map_test.goindex e6543d2afe..7a5953390d 100644--- a/kernel/av/layout_legacy_map_test.go+++ b/kernel/av/layout_legacy_map_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/layout_list.go b/kernel/av/layout_list.goindex f72e2e32e0..41136aacc7 100644--- a/kernel/av/layout_list.go+++ b/kernel/av/layout_list.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/av/layout_table.go b/kernel/av/layout_table.goindex 81af5b61e7..045c44b918 100644--- a/kernel/av/layout_table.go+++ b/kernel/av/layout_table.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/layout_table_test.go b/kernel/av/layout_table_test.goindex 4bcd5fbceb..1f22cfe0a4 100644--- a/kernel/av/layout_table_test.go+++ b/kernel/av/layout_table_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/layout_test.go b/kernel/av/layout_test.goindex b6850b5c67..cc54909efd 100644--- a/kernel/av/layout_test.go+++ b/kernel/av/layout_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/live_photo_test.go b/kernel/av/live_photo_test.goindex ceaeb931c1..f4d363fdbd 100644--- a/kernel/av/live_photo_test.go+++ b/kernel/av/live_photo_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/location_spec_test.go b/kernel/av/location_spec_test.goindex cda586b255..6294dfa3e8 100644--- a/kernel/av/location_spec_test.go+++ b/kernel/av/location_spec_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/lunar_calendar.go b/kernel/av/lunar_calendar.goindex 90a0beb92f..441dc73570 100644--- a/kernel/av/lunar_calendar.go+++ b/kernel/av/lunar_calendar.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/lunar_calendar_test.go b/kernel/av/lunar_calendar_test.goindex 1a50fc5981..f08e8c7d4b 100644--- a/kernel/av/lunar_calendar_test.go+++ b/kernel/av/lunar_calendar_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/mirror.go b/kernel/av/mirror.goindex 95faedb2a0..ae564127ce 100644--- a/kernel/av/mirror.go+++ b/kernel/av/mirror.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/mirror_test.go b/kernel/av/mirror_test.goindex 26f1c32930..3334b207b6 100644--- a/kernel/av/mirror_test.go+++ b/kernel/av/mirror_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/new_item_template.go b/kernel/av/new_item_template.goindex 661146cbf4..79dae7e342 100644--- a/kernel/av/new_item_template.go+++ b/kernel/av/new_item_template.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/new_item_template_test.go b/kernel/av/new_item_template_test.goindex 5ccd8ec9b3..e8efdab18f 100644--- a/kernel/av/new_item_template_test.go+++ b/kernel/av/new_item_template_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/normalized_cache_test.go b/kernel/av/normalized_cache_test.goindex fc8612d3fa..4917870c75 100644--- a/kernel/av/normalized_cache_test.go+++ b/kernel/av/normalized_cache_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/number_calc.go b/kernel/av/number_calc.goindex 86882900d8..94235a3c2e 100644--- a/kernel/av/number_calc.go+++ b/kernel/av/number_calc.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/number_calc_test.go b/kernel/av/number_calc_test.goindex 0b5cea29b9..244b2eccdb 100644--- a/kernel/av/number_calc_test.go+++ b/kernel/av/number_calc_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/path_test.go b/kernel/av/path_test.goindex e6b40b1335..5c4f456dce 100644--- a/kernel/av/path_test.go+++ b/kernel/av/path_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/ref_hook.go b/kernel/av/ref_hook.goindex ee23d854bb..a154887de5 100644--- a/kernel/av/ref_hook.go+++ b/kernel/av/ref_hook.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/relation.go b/kernel/av/relation.goindex 61e9f2836a..33477108b9 100644--- a/kernel/av/relation.go+++ b/kernel/av/relation.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/relation_refresh_test.go b/kernel/av/relation_refresh_test.goindex a591c216f4..8083656a9b 100644--- a/kernel/av/relation_refresh_test.go+++ b/kernel/av/relation_refresh_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/relation_rollup.go b/kernel/av/relation_rollup.goindex 2e888fb40b..d103e47d30 100644--- a/kernel/av/relation_rollup.go+++ b/kernel/av/relation_rollup.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/relation_rollup_test.go b/kernel/av/relation_rollup_test.goindex 06efc19126..e66f3e7de2 100644--- a/kernel/av/relation_rollup_test.go+++ b/kernel/av/relation_rollup_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/relation_write_recorder_test.go b/kernel/av/relation_write_recorder_test.goindex 9550e275ad..6bef95f9ad 100644--- a/kernel/av/relation_write_recorder_test.go+++ b/kernel/av/relation_write_recorder_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/render_template.go b/kernel/av/render_template.goindex 48a651f1cf..1cee549f70 100644--- a/kernel/av/render_template.go+++ b/kernel/av/render_template.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/render_template_test.go b/kernel/av/render_template_test.goindex 51e015d1a6..91f4dec5de 100644--- a/kernel/av/render_template_test.go+++ b/kernel/av/render_template_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/rollup_checkbox_percent_test.go b/kernel/av/rollup_checkbox_percent_test.goindex 2133973351..0e9714fb92 100644--- a/kernel/av/rollup_checkbox_percent_test.go+++ b/kernel/av/rollup_checkbox_percent_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/rollup_nested_test.go b/kernel/av/rollup_nested_test.goindex b2929d6401..0739473d9c 100644--- a/kernel/av/rollup_nested_test.go+++ b/kernel/av/rollup_nested_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/sort.go b/kernel/av/sort.goindex ba1d57c6bb..a88fb38c0d 100644--- a/kernel/av/sort.go+++ b/kernel/av/sort.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/sort_test.go b/kernel/av/sort_test.goindex 5dd305231e..f879aa3d45 100644--- a/kernel/av/sort_test.go+++ b/kernel/av/sort_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/table_cell_rich.go b/kernel/av/table_cell_rich.goindex d93c217b82..6548aced39 100644--- a/kernel/av/table_cell_rich.go+++ b/kernel/av/table_cell_rich.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/table_cell_rich_test.go b/kernel/av/table_cell_rich_test.goindex 2700634374..a918a1e228 100644--- a/kernel/av/table_cell_rich_test.go+++ b/kernel/av/table_cell_rich_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/value.go b/kernel/av/value.goindex e2aaef8e1e..d7791300a9 100644--- a/kernel/av/value.go+++ b/kernel/av/value.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/value_location.go b/kernel/av/value_location.goindex ae759e658e..943c5d7ba4 100644--- a/kernel/av/value_location.go+++ b/kernel/av/value_location.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/value_location_test.go b/kernel/av/value_location_test.goindex a0a106eaf7..afb77d3dd4 100644--- a/kernel/av/value_location_test.go+++ b/kernel/av/value_location_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/value_number_test.go b/kernel/av/value_number_test.goindex 2860559f3a..0eb5208b58 100644--- a/kernel/av/value_number_test.go+++ b/kernel/av/value_number_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport "testing"diff --git a/kernel/av/value_source.go b/kernel/av/value_source.goindex baa68e2be2..073c1e098d 100644--- a/kernel/av/value_source.go+++ b/kernel/av/value_source.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/value_source_test.go b/kernel/av/value_source_test.goindex a42786111f..adc0628680 100644--- a/kernel/av/value_source_test.go+++ b/kernel/av/value_source_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/value_test.go b/kernel/av/value_test.goindex 55faa480c1..a5dcaedaaa 100644--- a/kernel/av/value_test.go+++ b/kernel/av/value_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/value_text_escape_test.go b/kernel/av/value_text_escape_test.goindex c2db500545..2a6a0bcab0 100644--- a/kernel/av/value_text_escape_test.go+++ b/kernel/av/value_text_escape_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/av/value_text_test.go b/kernel/av/value_text_test.goindex bdffb1fa5f..835792e41b 100644--- a/kernel/av/value_text_test.go+++ b/kernel/av/value_text_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/visible_views_test.go b/kernel/av/visible_views_test.goindex 25ee765223..36d6079a13 100644--- a/kernel/av/visible_views_test.go+++ b/kernel/av/visible_views_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage avdiff --git a/kernel/av/write_recorder.go b/kernel/av/write_recorder.goindex 13f8b2016f..4a7017013d 100644--- a/kernel/av/write_recorder.go+++ b/kernel/av/write_recorder.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport "sync"diff --git a/kernel/av/write_recorder_test.go b/kernel/av/write_recorder_test.goindex aa313290b5..b4108afe20 100644--- a/kernel/av/write_recorder_test.go+++ b/kernel/av/write_recorder_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package avimport (diff --git a/kernel/bazaar/appearance_install_test.go b/kernel/bazaar/appearance_install_test.goindex 7022de6e72..3fb425cd15 100644--- a/kernel/bazaar/appearance_install_test.go+++ b/kernel/bazaar/appearance_install_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package bazaarimport (diff --git a/kernel/bazaar/bazaar.go b/kernel/bazaar/bazaar.goindex 87086b7c32..4ef5c15585 100644--- a/kernel/bazaar/bazaar.go+++ b/kernel/bazaar/bazaar.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/index.go b/kernel/bazaar/index.goindex 07b8b0a6bf..e5c2cc74bb 100644--- a/kernel/bazaar/index.go+++ b/kernel/bazaar/index.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/index_test.go b/kernel/bazaar/index_test.goindex 0611777225..00b3c19fc9 100644--- a/kernel/bazaar/index_test.go+++ b/kernel/bazaar/index_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/install.go b/kernel/bazaar/install.goindex 3d4f8ae4b1..f29839a4e8 100644--- a/kernel/bazaar/install.go+++ b/kernel/bazaar/install.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/install_cancel_test.go b/kernel/bazaar/install_cancel_test.goindex e77df8e80f..6ceaf69905 100644--- a/kernel/bazaar/install_cancel_test.go+++ b/kernel/bazaar/install_cancel_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package bazaarimport (diff --git a/kernel/bazaar/install_download_cancel_test.go b/kernel/bazaar/install_download_cancel_test.goindex 569b3b324d..aa9b5ea584 100644--- a/kernel/bazaar/install_download_cancel_test.go+++ b/kernel/bazaar/install_download_cancel_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package bazaarimport (diff --git a/kernel/bazaar/install_paths.go b/kernel/bazaar/install_paths.goindex 38891cb7a1..ae039f09d1 100644--- a/kernel/bazaar/install_paths.go+++ b/kernel/bazaar/install_paths.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/install_paths_windows_test.go b/kernel/bazaar/install_paths_windows_test.goindex 46ec26cf0c..14e2d0a972 100644--- a/kernel/bazaar/install_paths_windows_test.go+++ b/kernel/bazaar/install_paths_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package bazaarimport (diff --git a/kernel/bazaar/install_read_unix_test.go b/kernel/bazaar/install_read_unix_test.goindex 35604c7f83..3d3d006cb7 100644--- a/kernel/bazaar/install_read_unix_test.go+++ b/kernel/bazaar/install_read_unix_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build !windowspackage bazaardiff --git a/kernel/bazaar/install_rename.go b/kernel/bazaar/install_rename.goindex a4573b93c3..71f11b1d33 100644--- a/kernel/bazaar/install_rename.go+++ b/kernel/bazaar/install_rename.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package bazaarimport (diff --git a/kernel/bazaar/install_rename_other.go b/kernel/bazaar/install_rename_other.goindex c4f57f1100..d4b0bf0731 100644--- a/kernel/bazaar/install_rename_other.go+++ b/kernel/bazaar/install_rename_other.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build !windowspackage bazaardiff --git a/kernel/bazaar/install_rename_test.go b/kernel/bazaar/install_rename_test.goindex 738697243f..8690c34787 100644--- a/kernel/bazaar/install_rename_test.go+++ b/kernel/bazaar/install_rename_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package bazaarimport (diff --git a/kernel/bazaar/install_rename_windows.go b/kernel/bazaar/install_rename_windows.goindex 285003c3e1..d7f87efb4b 100644--- a/kernel/bazaar/install_rename_windows.go+++ b/kernel/bazaar/install_rename_windows.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package bazaarimport (diff --git a/kernel/bazaar/install_rename_windows_test.go b/kernel/bazaar/install_rename_windows_test.goindex 92b7e6524f..7c6f6d896b 100644--- a/kernel/bazaar/install_rename_windows_test.go+++ b/kernel/bazaar/install_rename_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package bazaarimport (diff --git a/kernel/bazaar/install_revision.go b/kernel/bazaar/install_revision.goindex 6d41d5574d..187bdd7e2c 100644--- a/kernel/bazaar/install_revision.go+++ b/kernel/bazaar/install_revision.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/install_revision_test.go b/kernel/bazaar/install_revision_test.goindex a4dbbf1ffb..5f0781d771 100644--- a/kernel/bazaar/install_revision_test.go+++ b/kernel/bazaar/install_revision_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package bazaarimport (diff --git a/kernel/bazaar/install_staging_test.go b/kernel/bazaar/install_staging_test.goindex 7d30b99434..bbea2f5c4e 100644--- a/kernel/bazaar/install_staging_test.go+++ b/kernel/bazaar/install_staging_test.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/install_test.go b/kernel/bazaar/install_test.goindex f710aa616d..79c47a8469 100644--- a/kernel/bazaar/install_test.go+++ b/kernel/bazaar/install_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/installed.go b/kernel/bazaar/installed.goindex 7350d131f9..f3c973da74 100644--- a/kernel/bazaar/installed.go+++ b/kernel/bazaar/installed.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/installed_test.go b/kernel/bazaar/installed_test.goindex 7665bda627..e553893630 100644--- a/kernel/bazaar/installed_test.go+++ b/kernel/bazaar/installed_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/local.go b/kernel/bazaar/local.goindex 2cd1bd902c..b48a4f2240 100644--- a/kernel/bazaar/local.go+++ b/kernel/bazaar/local.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/local_test.go b/kernel/bazaar/local_test.goindex f92c647554..1e2a73995e 100644--- a/kernel/bazaar/local_test.go+++ b/kernel/bazaar/local_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/package.go b/kernel/bazaar/package.goindex c1b9f3e017..6a173415d9 100644--- a/kernel/bazaar/package.go+++ b/kernel/bazaar/package.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/package_test.go b/kernel/bazaar/package_test.goindex 50c4fa6aac..f431e0572b 100644--- a/kernel/bazaar/package_test.go+++ b/kernel/bazaar/package_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/plugin.go b/kernel/bazaar/plugin.goindex 941f514105..bd806c3cba 100644--- a/kernel/bazaar/plugin.go+++ b/kernel/bazaar/plugin.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/plugin_project.go b/kernel/bazaar/plugin_project.goindex f164bf4b29..2a914b8d70 100644--- a/kernel/bazaar/plugin_project.go+++ b/kernel/bazaar/plugin_project.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/plugin_project_delivery.go b/kernel/bazaar/plugin_project_delivery.goindex 44be0ec02d..db9bc6db13 100644--- a/kernel/bazaar/plugin_project_delivery.go+++ b/kernel/bazaar/plugin_project_delivery.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package bazaarimport (diff --git a/kernel/bazaar/plugin_project_test.go b/kernel/bazaar/plugin_project_test.goindex 01b568ca83..26beb8ec19 100644--- a/kernel/bazaar/plugin_project_test.go+++ b/kernel/bazaar/plugin_project_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package bazaarimport (diff --git a/kernel/bazaar/plugin_test.go b/kernel/bazaar/plugin_test.goindex 986e90f669..94654429b7 100644--- a/kernel/bazaar/plugin_test.go+++ b/kernel/bazaar/plugin_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/rating.go b/kernel/bazaar/rating.goindex b33cceba28..d3ff2af88f 100644--- a/kernel/bazaar/rating.go+++ b/kernel/bazaar/rating.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/rating_test.go b/kernel/bazaar/rating_test.goindex db0ab423f9..8bb93fcffa 100644--- a/kernel/bazaar/rating_test.go+++ b/kernel/bazaar/rating_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/readme.go b/kernel/bazaar/readme.goindex 244332ba1c..9eb83b9486 100644--- a/kernel/bazaar/readme.go+++ b/kernel/bazaar/readme.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/readme_test.go b/kernel/bazaar/readme_test.goindex 33b21e9693..a0bc79873f 100644--- a/kernel/bazaar/readme_test.go+++ b/kernel/bazaar/readme_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/stage.go b/kernel/bazaar/stage.goindex d00847e51b..9abd0904a6 100644--- a/kernel/bazaar/stage.go+++ b/kernel/bazaar/stage.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/stage_rating_test.go b/kernel/bazaar/stage_rating_test.goindex eea76ca95c..74738a4394 100644--- a/kernel/bazaar/stage_rating_test.go+++ b/kernel/bazaar/stage_rating_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/theme.go b/kernel/bazaar/theme.goindex 5d22c84345..8918350cf0 100644--- a/kernel/bazaar/theme.go+++ b/kernel/bazaar/theme.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/bazaar/theme_test.go b/kernel/bazaar/theme_test.goindex cfce1d8d2e..2ecbba4dc5 100644--- a/kernel/bazaar/theme_test.go+++ b/kernel/bazaar/theme_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage bazaardiff --git a/kernel/cache/asset.go b/kernel/cache/asset.goindex e86210e351..91d2070999 100644--- a/kernel/cache/asset.go+++ b/kernel/cache/asset.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cachediff --git a/kernel/cache/asset_test.go b/kernel/cache/asset_test.goindex 1840df4665..048525cf64 100644--- a/kernel/cache/asset_test.go+++ b/kernel/cache/asset_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package cacheimport (diff --git a/kernel/cache/av.go b/kernel/cache/av.goindex d5ff3cf0ff..f692e0b8ac 100644--- a/kernel/cache/av.go+++ b/kernel/cache/av.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cachediff --git a/kernel/cache/av_order.go b/kernel/cache/av_order.goindex 5e25467513..819ed0c08a 100644--- a/kernel/cache/av_order.go+++ b/kernel/cache/av_order.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package cacheimport (diff --git a/kernel/cache/av_order_test.go b/kernel/cache/av_order_test.goindex 871b4fe297..3fcaf6e253 100644--- a/kernel/cache/av_order_test.go+++ b/kernel/cache/av_order_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package cacheimport (diff --git a/kernel/cache/av_test.go b/kernel/cache/av_test.goindex a261430a15..0117ede461 100644--- a/kernel/cache/av_test.go+++ b/kernel/cache/av_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cachediff --git a/kernel/cache/budget.go b/kernel/cache/budget.goindex ee0927b323..0f5b601200 100644--- a/kernel/cache/budget.go+++ b/kernel/cache/budget.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package cacheconst (diff --git a/kernel/cache/ial.go b/kernel/cache/ial.goindex de41b2f0a5..318337e231 100644--- a/kernel/cache/ial.go+++ b/kernel/cache/ial.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cachediff --git a/kernel/cache/ial_test.go b/kernel/cache/ial_test.goindex 16ea212e75..57c45cefaa 100644--- a/kernel/cache/ial_test.go+++ b/kernel/cache/ial_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package cacheimport (diff --git a/kernel/cache/tree.go b/kernel/cache/tree.goindex 309cd9fc0f..88f28e2d8c 100644--- a/kernel/cache/tree.go+++ b/kernel/cache/tree.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cachediff --git a/kernel/cache/tree_test.go b/kernel/cache/tree_test.goindex d1618d7071..6a095941d6 100644--- a/kernel/cache/tree_test.go+++ b/kernel/cache/tree_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package cacheimport (diff --git a/kernel/chatgpt/bindings.go b/kernel/chatgpt/bindings.goindex 811af5da09..7a504eb3ce 100644--- a/kernel/chatgpt/bindings.go+++ b/kernel/chatgpt/bindings.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package chatgptimport (diff --git a/kernel/chatgpt/bindings_test.go b/kernel/chatgpt/bindings_test.goindex c90433b3c7..4c8425a741 100644--- a/kernel/chatgpt/bindings_test.go+++ b/kernel/chatgpt/bindings_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package chatgptimport (diff --git a/kernel/chatgpt/inference.go b/kernel/chatgpt/inference.goindex 8dcc8a451a..9c94f24e26 100644--- a/kernel/chatgpt/inference.go+++ b/kernel/chatgpt/inference.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package chatgptimport (diff --git a/kernel/chatgpt/oauth.go b/kernel/chatgpt/oauth.goindex 9c05ed73d5..b92c8b2664 100644--- a/kernel/chatgpt/oauth.go+++ b/kernel/chatgpt/oauth.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package chatgptimport (diff --git a/kernel/chatgpt/oauth_test.go b/kernel/chatgpt/oauth_test.goindex aac24f7952..768d5a806e 100644--- a/kernel/chatgpt/oauth_test.go+++ b/kernel/chatgpt/oauth_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package chatgptimport (diff --git a/kernel/chatgpt/store.go b/kernel/chatgpt/store.goindex 24f270d108..55458c32ec 100644--- a/kernel/chatgpt/store.go+++ b/kernel/chatgpt/store.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+// 包 chatgpt 管理 ChatGPT 套餐授权,凭证与工作空间数据分开保存。package chatgptdiff --git a/kernel/cli/cmd/asset.go b/kernel/cli/cmd/asset.goindex e407bca4e1..885df9c767 100644--- a/kernel/cli/cmd/asset.go+++ b/kernel/cli/cmd/asset.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/asset_test.go b/kernel/cli/cmd/asset_test.goindex de96348c65..d5037f6128 100644--- a/kernel/cli/cmd/asset_test.go+++ b/kernel/cli/cmd/asset_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/attr.go b/kernel/cli/cmd/attr.goindex 62b3d34284..336d36fd3b 100644--- a/kernel/cli/cmd/attr.go+++ b/kernel/cli/cmd/attr.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/block.go b/kernel/cli/cmd/block.goindex 334d085fc1..be7e4b936c 100644--- a/kernel/cli/cmd/block.go+++ b/kernel/cli/cmd/block.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/block_test.go b/kernel/cli/cmd/block_test.goindex 25c1e306c6..624cbb990a 100644--- a/kernel/cli/cmd/block_test.go+++ b/kernel/cli/cmd/block_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/bookmark.go b/kernel/cli/cmd/bookmark.goindex 1dd272e254..ff25a200b5 100644--- a/kernel/cli/cmd/bookmark.go+++ b/kernel/cli/cmd/bookmark.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/dailynote.go b/kernel/cli/cmd/dailynote.goindex 80efdbe108..22c2731e76 100644--- a/kernel/cli/cmd/dailynote.go+++ b/kernel/cli/cmd/dailynote.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/database.go b/kernel/cli/cmd/database.goindex 4dea09ad98..c81885ddf9 100644--- a/kernel/cli/cmd/database.go+++ b/kernel/cli/cmd/database.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/database_automation_test.go b/kernel/cli/cmd/database_automation_test.goindex 625e694b99..7f7582d209 100644--- a/kernel/cli/cmd/database_automation_test.go+++ b/kernel/cli/cmd/database_automation_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package cmdimport (diff --git a/kernel/cli/cmd/database_test.go b/kernel/cli/cmd/database_test.goindex 9836d0286d..25393ec42b 100644--- a/kernel/cli/cmd/database_test.go+++ b/kernel/cli/cmd/database_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/database_unused_test.go b/kernel/cli/cmd/database_unused_test.goindex db95a01d84..f2ff76adc7 100644--- a/kernel/cli/cmd/database_unused_test.go+++ b/kernel/cli/cmd/database_unused_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package cmdimport (diff --git a/kernel/cli/cmd/display_test.go b/kernel/cli/cmd/display_test.goindex 59e541ec82..720eeaf12c 100644--- a/kernel/cli/cmd/display_test.go+++ b/kernel/cli/cmd/display_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/document.go b/kernel/cli/cmd/document.goindex 0ec47de23d..f205b69c17 100644--- a/kernel/cli/cmd/document.go+++ b/kernel/cli/cmd/document.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/document_test.go b/kernel/cli/cmd/document_test.goindex 88bac25c1d..3581c8c2ba 100644--- a/kernel/cli/cmd/document_test.go+++ b/kernel/cli/cmd/document_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package cmdimport (diff --git a/kernel/cli/cmd/export.go b/kernel/cli/cmd/export.goindex a4dd479c11..0947220b5a 100644--- a/kernel/cli/cmd/export.go+++ b/kernel/cli/cmd/export.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/export_test.go b/kernel/cli/cmd/export_test.goindex 1b0405b263..ee6fc28656 100644--- a/kernel/cli/cmd/export_test.go+++ b/kernel/cli/cmd/export_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/file.go b/kernel/cli/cmd/file.goindex 301860b35d..c55d5f6214 100644--- a/kernel/cli/cmd/file.go+++ b/kernel/cli/cmd/file.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/file_limit_test.go b/kernel/cli/cmd/file_limit_test.goindex 2c57809a96..758ed8d42f 100644--- a/kernel/cli/cmd/file_limit_test.go+++ b/kernel/cli/cmd/file_limit_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package cmdimport (diff --git a/kernel/cli/cmd/history.go b/kernel/cli/cmd/history.goindex 3399c45859..f54ce2cdb4 100644--- a/kernel/cli/cmd/history.go+++ b/kernel/cli/cmd/history.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/home_test.go b/kernel/cli/cmd/home_test.goindex c6c3502905..864bf2636d 100644--- a/kernel/cli/cmd/home_test.go+++ b/kernel/cli/cmd/home_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/import.go b/kernel/cli/cmd/import.goindex a58773302d..6c3fda5653 100644--- a/kernel/cli/cmd/import.go+++ b/kernel/cli/cmd/import.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/inbox.go b/kernel/cli/cmd/inbox.goindex f960135cf0..18ba9921c1 100644--- a/kernel/cli/cmd/inbox.go+++ b/kernel/cli/cmd/inbox.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/notebook.go b/kernel/cli/cmd/notebook.goindex a225aedd51..527df1c291 100644--- a/kernel/cli/cmd/notebook.go+++ b/kernel/cli/cmd/notebook.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/notebook_test.go b/kernel/cli/cmd/notebook_test.goindex 5cf4e4b5dc..56b1f28b76 100644--- a/kernel/cli/cmd/notebook_test.go+++ b/kernel/cli/cmd/notebook_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/outline.go b/kernel/cli/cmd/outline.goindex 71873c34d1..7b51b534d7 100644--- a/kernel/cli/cmd/outline.go+++ b/kernel/cli/cmd/outline.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/ref.go b/kernel/cli/cmd/ref.goindex 64c53c930b..7dfd28bc2e 100644--- a/kernel/cli/cmd/ref.go+++ b/kernel/cli/cmd/ref.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/repo.go b/kernel/cli/cmd/repo.goindex b6da4f32b1..a4c6d94432 100644--- a/kernel/cli/cmd/repo.go+++ b/kernel/cli/cmd/repo.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/repo_failure_test.go b/kernel/cli/cmd/repo_failure_test.goindex 995563e188..1c2b36c964 100644--- a/kernel/cli/cmd/repo_failure_test.go+++ b/kernel/cli/cmd/repo_failure_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package cmdimport (diff --git a/kernel/cli/cmd/root.go b/kernel/cli/cmd/root.goindex d215429aca..40fcec32ee 100644--- a/kernel/cli/cmd/root.go+++ b/kernel/cli/cmd/root.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/root_test.go b/kernel/cli/cmd/root_test.goindex a8a8c0cbd2..9519efc123 100644--- a/kernel/cli/cmd/root_test.go+++ b/kernel/cli/cmd/root_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/search.go b/kernel/cli/cmd/search.goindex 639bee022d..90a6859a77 100644--- a/kernel/cli/cmd/search.go+++ b/kernel/cli/cmd/search.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/serve.go b/kernel/cli/cmd/serve.goindex 1e2f67b8b8..1f4ec762d0 100644--- a/kernel/cli/cmd/serve.go+++ b/kernel/cli/cmd/serve.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/sql.go b/kernel/cli/cmd/sql.goindex 72ac357b93..b18d0c50cd 100644--- a/kernel/cli/cmd/sql.go+++ b/kernel/cli/cmd/sql.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/sql_test.go b/kernel/cli/cmd/sql_test.goindex 8c6b5d7a25..b1c24d38d6 100644--- a/kernel/cli/cmd/sql_test.go+++ b/kernel/cli/cmd/sql_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package cmddiff --git a/kernel/cli/cmd/sync.go b/kernel/cli/cmd/sync.goindex 37b3573059..baf18f7631 100644--- a/kernel/cli/cmd/sync.go+++ b/kernel/cli/cmd/sync.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/system.go b/kernel/cli/cmd/system.goindex 913476fff0..5489223685 100644--- a/kernel/cli/cmd/system.go+++ b/kernel/cli/cmd/system.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/tag.go b/kernel/cli/cmd/tag.goindex e889d0355f..7243468fad 100644--- a/kernel/cli/cmd/tag.go+++ b/kernel/cli/cmd/tag.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/template.go b/kernel/cli/cmd/template.goindex 7403a811d3..15a60bf97a 100644--- a/kernel/cli/cmd/template.go+++ b/kernel/cli/cmd/template.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/template_test.go b/kernel/cli/cmd/template_test.goindex 74e2129c21..1624f6390e 100644--- a/kernel/cli/cmd/template_test.go+++ b/kernel/cli/cmd/template_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cli/cmd/workspace.go b/kernel/cli/cmd/workspace.goindex add9a8e74c..574351d819 100644--- a/kernel/cli/cmd/workspace.go+++ b/kernel/cli/cmd/workspace.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cmd/closews.go b/kernel/cmd/closews.goindex bb24e716f1..4f400847fc 100644--- a/kernel/cmd/closews.go+++ b/kernel/cmd/closews.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cmd/cmd.go b/kernel/cmd/cmd.goindex 940bc2aa5e..dc4787c4a1 100644--- a/kernel/cmd/cmd.go+++ b/kernel/cmd/cmd.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cmd/ping.go b/kernel/cmd/ping.goindex 3f045c12c0..b42bd15e03 100644--- a/kernel/cmd/ping.go+++ b/kernel/cmd/ping.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cmddiff --git a/kernel/cmd/ready.go b/kernel/cmd/ready.goindex 991cb9606f..35599b443a 100644--- a/kernel/cmd/ready.go+++ b/kernel/cmd/ready.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package cmd// ready 只更新当前连接,刷新和重连后的窗口必须重新报告界面就绪。diff --git a/kernel/cmd/ready_test.go b/kernel/cmd/ready_test.goindex 9da529ff38..670d72868e 100644--- a/kernel/cmd/ready_test.go+++ b/kernel/cmd/ready_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package cmdimport (diff --git a/kernel/conf/ai.go b/kernel/conf/ai.goindex 3d7b9f162f..2681a96470 100644--- a/kernel/conf/ai.go+++ b/kernel/conf/ai.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/ai_anthropic_test.go b/kernel/conf/ai_anthropic_test.goindex 9dc25cf67b..d97f685f09 100644--- a/kernel/conf/ai_anthropic_test.go+++ b/kernel/conf/ai_anthropic_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport "testing"diff --git a/kernel/conf/ai_capability_test.go b/kernel/conf/ai_capability_test.goindex d5978d9b9d..185304de09 100644--- a/kernel/conf/ai_capability_test.go+++ b/kernel/conf/ai_capability_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/ai_chatgpt_test.go b/kernel/conf/ai_chatgpt_test.goindex 49cd58bb32..9657de0f64 100644--- a/kernel/conf/ai_chatgpt_test.go+++ b/kernel/conf/ai_chatgpt_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/ai_decision_test.go b/kernel/conf/ai_decision_test.goindex cdd002ed2e..789e514556 100644--- a/kernel/conf/ai_decision_test.go+++ b/kernel/conf/ai_decision_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/ai_mcp_test.go b/kernel/conf/ai_mcp_test.goindex 196f28091f..3a17390c21 100644--- a/kernel/conf/ai_mcp_test.go+++ b/kernel/conf/ai_mcp_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/ai_multimodal_test.go b/kernel/conf/ai_multimodal_test.goindex 53f8a879d6..205ec9e37c 100644--- a/kernel/conf/ai_multimodal_test.go+++ b/kernel/conf/ai_multimodal_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/ai_provider_test.go b/kernel/conf/ai_provider_test.goindex 3851e82163..42f0d8665d 100644--- a/kernel/conf/ai_provider_test.go+++ b/kernel/conf/ai_provider_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/ai_skill_test.go b/kernel/conf/ai_skill_test.goindex f79013acc6..2c1b4aa619 100644--- a/kernel/conf/ai_skill_test.go+++ b/kernel/conf/ai_skill_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/ai_timeout_test.go b/kernel/conf/ai_timeout_test.goindex 30605cc132..3b0f5d6705 100644--- a/kernel/conf/ai_timeout_test.go+++ b/kernel/conf/ai_timeout_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/ai_web_test.go b/kernel/conf/ai_web_test.goindex ad98cf4a60..c2b9c4c61e 100644--- a/kernel/conf/ai_web_test.go+++ b/kernel/conf/ai_web_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/api.go b/kernel/conf/api.goindex cb748559e7..d9dc3bafd5 100644--- a/kernel/conf/api.go+++ b/kernel/conf/api.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/appearance.go b/kernel/conf/appearance.goindex 9dd2513211..60c0121f86 100644--- a/kernel/conf/appearance.go+++ b/kernel/conf/appearance.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/appearance_test.go b/kernel/conf/appearance_test.goindex 9307fb9a48..e9187f0d3e 100644--- a/kernel/conf/appearance_test.go+++ b/kernel/conf/appearance_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/bazaar.go b/kernel/conf/bazaar.goindex 75ac16ce51..860524386e 100644--- a/kernel/conf/bazaar.go+++ b/kernel/conf/bazaar.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/box.go b/kernel/conf/box.goindex b18d8c40ad..11ac6922dc 100644--- a/kernel/conf/box.go+++ b/kernel/conf/box.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/chart_height_menu.go b/kernel/conf/chart_height_menu.goindex 81a99d7c77..c3b9284270 100644--- a/kernel/conf/chart_height_menu.go+++ b/kernel/conf/chart_height_menu.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package conf// 将图表高度配置合并到公共高度入口,保留已有公共配置及插件顺序。diff --git a/kernel/conf/chart_height_menu_test.go b/kernel/conf/chart_height_menu_test.goindex 6cd6d16fd6..47caa27494 100644--- a/kernel/conf/chart_height_menu_test.go+++ b/kernel/conf/chart_height_menu_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/defaults_purity_test.go b/kernel/conf/defaults_purity_test.goindex 1dd4b199ed..57a90952ff 100644--- a/kernel/conf/defaults_purity_test.go+++ b/kernel/conf/defaults_purity_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/document_target.go b/kernel/conf/document_target.goindex 16b1a19492..fd048411c5 100644--- a/kernel/conf/document_target.go+++ b/kernel/conf/document_target.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/document_target_test.go b/kernel/conf/document_target_test.goindex 4dd7c29047..dfb915ff11 100644--- a/kernel/conf/document_target_test.go+++ b/kernel/conf/document_target_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/editor.go b/kernel/conf/editor.goindex b92f66c512..18f486e59a 100644--- a/kernel/conf/editor.go+++ b/kernel/conf/editor.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/editor_math_test.go b/kernel/conf/editor_math_test.goindex ec3e88ada6..1aebae014c 100644--- a/kernel/conf/editor_math_test.go+++ b/kernel/conf/editor_math_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/editor_test.go b/kernel/conf/editor_test.goindex 56a2b6d50f..032c1f015e 100644--- a/kernel/conf/editor_test.go+++ b/kernel/conf/editor_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/export.go b/kernel/conf/export.goindex 2b99e30d71..f3aace695c 100644--- a/kernel/conf/export.go+++ b/kernel/conf/export.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/filetree.go b/kernel/conf/filetree.goindex 29d7fec713..31a285b510 100644--- a/kernel/conf/filetree.go+++ b/kernel/conf/filetree.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/filetree_test.go b/kernel/conf/filetree_test.goindex 66d9ccd903..38ded4e432 100644--- a/kernel/conf/filetree_test.go+++ b/kernel/conf/filetree_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/flashcard.go b/kernel/conf/flashcard.goindex dcf706ea79..2ac1b3bd51 100644--- a/kernel/conf/flashcard.go+++ b/kernel/conf/flashcard.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/graph.go b/kernel/conf/graph.goindex 0984cc9c07..dfc0ec0880 100644--- a/kernel/conf/graph.go+++ b/kernel/conf/graph.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/graph_test.go b/kernel/conf/graph_test.goindex ea314f466d..ed598348b7 100644--- a/kernel/conf/graph_test.go+++ b/kernel/conf/graph_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/lang.go b/kernel/conf/lang.goindex 943307ee5b..cef25d56d3 100644--- a/kernel/conf/lang.go+++ b/kernel/conf/lang.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/layout.go b/kernel/conf/layout.goindex 25debb0006..871e8ffee3 100644--- a/kernel/conf/layout.go+++ b/kernel/conf/layout.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/notebook_crypto.go b/kernel/conf/notebook_crypto.goindex 6387c42dfa..f55ee85bbf 100644--- a/kernel/conf/notebook_crypto.go+++ b/kernel/conf/notebook_crypto.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/ocr.go b/kernel/conf/ocr.goindex 71c3a66b47..c345c201f7 100644--- a/kernel/conf/ocr.go+++ b/kernel/conf/ocr.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package conf// OCR 配置保存在设备配置中,模型文件和识别结果独立于提供商选择。diff --git a/kernel/conf/ocr_test.go b/kernel/conf/ocr_test.goindex 8c692583e7..f9b5563a9e 100644--- a/kernel/conf/ocr_test.go+++ b/kernel/conf/ocr_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport "testing"diff --git a/kernel/conf/oidc.go b/kernel/conf/oidc.goindex fbb3c55bb5..dd9661522a 100644--- a/kernel/conf/oidc.go+++ b/kernel/conf/oidc.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/oidc_test.go b/kernel/conf/oidc_test.goindex 3ffdee30e1..d53915cabb 100644--- a/kernel/conf/oidc_test.go+++ b/kernel/conf/oidc_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/preferences_test.go b/kernel/conf/preferences_test.goindex d800083a71..9741533124 100644--- a/kernel/conf/preferences_test.go+++ b/kernel/conf/preferences_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/publish.go b/kernel/conf/publish.goindex faf2fad920..69bc195986 100644--- a/kernel/conf/publish.go+++ b/kernel/conf/publish.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/repo.go b/kernel/conf/repo.goindex f5aa45a0a6..aa2842b679 100644--- a/kernel/conf/repo.go+++ b/kernel/conf/repo.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/search.go b/kernel/conf/search.goindex 7b57a179bb..00341005f8 100644--- a/kernel/conf/search.go+++ b/kernel/conf/search.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/search_custom_test.go b/kernel/conf/search_custom_test.goindex 9079ac2bfe..39742ca798 100644--- a/kernel/conf/search_custom_test.go+++ b/kernel/conf/search_custom_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/search_mindmap_test.go b/kernel/conf/search_mindmap_test.goindex 7c4cc99c24..3f5d09e66a 100644--- a/kernel/conf/search_mindmap_test.go+++ b/kernel/conf/search_mindmap_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/secrets.go b/kernel/conf/secrets.goindex 480856b9be..e9e610f44e 100644--- a/kernel/conf/secrets.go+++ b/kernel/conf/secrets.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/secrets_vars_test.go b/kernel/conf/secrets_vars_test.goindex 872fba8baf..24b300d8d5 100644--- a/kernel/conf/secrets_vars_test.go+++ b/kernel/conf/secrets_vars_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/settings_normalize.go b/kernel/conf/settings_normalize.goindex 5b371d03fe..eb8bb4401d 100644--- a/kernel/conf/settings_normalize.go+++ b/kernel/conf/settings_normalize.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/settings_normalize_test.go b/kernel/conf/settings_normalize_test.goindex 6b914998d8..7701bd14b8 100644--- a/kernel/conf/settings_normalize_test.go+++ b/kernel/conf/settings_normalize_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/settings_ranges_test.go b/kernel/conf/settings_ranges_test.goindex 1615da3d42..2fe97d368d 100644--- a/kernel/conf/settings_ranges_test.go+++ b/kernel/conf/settings_ranges_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/snippet.go b/kernel/conf/snippet.goindex d7f473b46a..5e70b1bb7d 100644--- a/kernel/conf/snippet.go+++ b/kernel/conf/snippet.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/stat.go b/kernel/conf/stat.goindex 85661dfb79..e3a371f8b4 100644--- a/kernel/conf/stat.go+++ b/kernel/conf/stat.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/sync.go b/kernel/conf/sync.goindex 2fdeb79c65..9742722ff7 100644--- a/kernel/conf/sync.go+++ b/kernel/conf/sync.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/sync_rules.go b/kernel/conf/sync_rules.goindex 1a39b72906..2287cf6c8f 100644--- a/kernel/conf/sync_rules.go+++ b/kernel/conf/sync_rules.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/sync_rules_test.go b/kernel/conf/sync_rules_test.goindex a858c3ae55..679538974d 100644--- a/kernel/conf/sync_rules_test.go+++ b/kernel/conf/sync_rules_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport "testing"diff --git a/kernel/conf/system.go b/kernel/conf/system.goindex c1f30b5438..83bc953486 100644--- a/kernel/conf/system.go+++ b/kernel/conf/system.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/system_test.go b/kernel/conf/system_test.goindex 6ca1f5d1db..b2cb66ef1e 100644--- a/kernel/conf/system_test.go+++ b/kernel/conf/system_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/tag.go b/kernel/conf/tag.goindex 5b7ab4d066..6262e21e26 100644--- a/kernel/conf/tag.go+++ b/kernel/conf/tag.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/task_status_menu.go b/kernel/conf/task_status_menu.goindex 1148654aad..5d07130aa4 100644--- a/kernel/conf/task_status_menu.go+++ b/kernel/conf/task_status_menu.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport "strings"diff --git a/kernel/conf/task_status_menu_test.go b/kernel/conf/task_status_menu_test.goindex 3a07295766..43e10cddfa 100644--- a/kernel/conf/task_status_menu_test.go+++ b/kernel/conf/task_status_menu_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package confimport (diff --git a/kernel/conf/user.go b/kernel/conf/user.goindex 4d9603a2fa..ba04617afd 100644--- a/kernel/conf/user.go+++ b/kernel/conf/user.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/conf/variables.go b/kernel/conf/variables.goindex 76242af3d9..73af0eb696 100644--- a/kernel/conf/variables.go+++ b/kernel/conf/variables.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage confdiff --git a/kernel/documentaddressing/capabilities.go b/kernel/documentaddressing/capabilities.goindex edf20cd489..893dc7e5ac 100644--- a/kernel/documentaddressing/capabilities.go+++ b/kernel/documentaddressing/capabilities.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package documentaddressingimport "fmt"diff --git a/kernel/documentaddressing/cleanup.go b/kernel/documentaddressing/cleanup.goindex 9492dc6c82..374540d5b3 100644--- a/kernel/documentaddressing/cleanup.go+++ b/kernel/documentaddressing/cleanup.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package documentaddressingimport (diff --git a/kernel/documentaddressing/cleanup_test.go b/kernel/documentaddressing/cleanup_test.goindex 9b4da7dab1..48b83a6f8e 100644--- a/kernel/documentaddressing/cleanup_test.go+++ b/kernel/documentaddressing/cleanup_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package documentaddressingimport (diff --git a/kernel/documentaddressing/cleanup_windows_test.go b/kernel/documentaddressing/cleanup_windows_test.goindex 434098460d..88697876e5 100644--- a/kernel/documentaddressing/cleanup_windows_test.go+++ b/kernel/documentaddressing/cleanup_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package documentaddressingimport (diff --git a/kernel/documentaddressing/mode.go b/kernel/documentaddressing/mode.goindex c5e255ff0e..3e02f83f9a 100644--- a/kernel/documentaddressing/mode.go+++ b/kernel/documentaddressing/mode.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+// Package documentaddressing validates document title sources and legacy path compatibility.package documentaddressingdiff --git a/kernel/documentaddressing/mode_test.go b/kernel/documentaddressing/mode_test.goindex 1678439b88..51b30c9ece 100644--- a/kernel/documentaddressing/mode_test.go+++ b/kernel/documentaddressing/mode_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package documentaddressingimport (diff --git a/kernel/documentaddressing/title.go b/kernel/documentaddressing/title.goindex 4586773a29..3a6971d0ec 100644--- a/kernel/documentaddressing/title.go+++ b/kernel/documentaddressing/title.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package documentaddressingimport (diff --git a/kernel/documentaddressing/title_test.go b/kernel/documentaddressing/title_test.goindex 9b0420bea5..7f7ecae7ad 100644--- a/kernel/documentaddressing/title_test.go+++ b/kernel/documentaddressing/title_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package documentaddressingimport (diff --git a/kernel/filesys/crypto_hook.go b/kernel/filesys/crypto_hook.goindex 1fb8f3eaf5..c4e3ce1da6 100644--- a/kernel/filesys/crypto_hook.go+++ b/kernel/filesys/crypto_hook.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage filesysdiff --git a/kernel/filesys/crypto_hook_test.go b/kernel/filesys/crypto_hook_test.goindex 1ac125a70d..945bc6f35a 100644--- a/kernel/filesys/crypto_hook_test.go+++ b/kernel/filesys/crypto_hook_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage filesysdiff --git a/kernel/filesys/doc_ial_test.go b/kernel/filesys/doc_ial_test.goindex 5e07c3e4a8..837c241b35 100644--- a/kernel/filesys/doc_ial_test.go+++ b/kernel/filesys/doc_ial_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/document_addressing.go b/kernel/filesys/document_addressing.goindex b47b9d5446..7d7f32d198 100644--- a/kernel/filesys/document_addressing.go+++ b/kernel/filesys/document_addressing.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/document_addressing_test.go b/kernel/filesys/document_addressing_test.goindex 37e5e36c2c..247300125d 100644--- a/kernel/filesys/document_addressing_test.go+++ b/kernel/filesys/document_addressing_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/document_metadata.go b/kernel/filesys/document_metadata.goindex 90d6dd5581..5fb7d8767b 100644--- a/kernel/filesys/document_metadata.go+++ b/kernel/filesys/document_metadata.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/filesys/hpath.go b/kernel/filesys/hpath.goindex 743eec5c62..1074fb79ae 100644--- a/kernel/filesys/hpath.go+++ b/kernel/filesys/hpath.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/hpath_test.go b/kernel/filesys/hpath_test.goindex aadb7b4800..e21ff12b18 100644--- a/kernel/filesys/hpath_test.go+++ b/kernel/filesys/hpath_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/stat.go b/kernel/filesys/stat.goindex 1d3955af57..76995d7a2b 100644--- a/kernel/filesys/stat.go+++ b/kernel/filesys/stat.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage filesysdiff --git a/kernel/filesys/structured_titles_test.go b/kernel/filesys/structured_titles_test.goindex 7bdbe33828..a8d8d15f2a 100644--- a/kernel/filesys/structured_titles_test.go+++ b/kernel/filesys/structured_titles_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/table_cell_rich_test.go b/kernel/filesys/table_cell_rich_test.goindex ebe90f5cb1..bc032e9758 100644--- a/kernel/filesys/table_cell_rich_test.go+++ b/kernel/filesys/table_cell_rich_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/table_row_height_test.go b/kernel/filesys/table_row_height_test.goindex bb8719c3f0..ce8b78a6fc 100644--- a/kernel/filesys/table_row_height_test.go+++ b/kernel/filesys/table_row_height_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/template.go b/kernel/filesys/template.goindex 229899f1d5..0c79f04e5d 100644--- a/kernel/filesys/template.go+++ b/kernel/filesys/template.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage filesysdiff --git a/kernel/filesys/tree.go b/kernel/filesys/tree.goindex 6a498f3e71..9f797f4034 100644--- a/kernel/filesys/tree.go+++ b/kernel/filesys/tree.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage filesysdiff --git a/kernel/filesys/tree_benchmark_test.go b/kernel/filesys/tree_benchmark_test.goindex 76d0e37b67..e31ec2ab17 100644--- a/kernel/filesys/tree_benchmark_test.go+++ b/kernel/filesys/tree_benchmark_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/tree_bom_test.go b/kernel/filesys/tree_bom_test.goindex df6f557354..9e7f9995d3 100644--- a/kernel/filesys/tree_bom_test.go+++ b/kernel/filesys/tree_bom_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/tree_cache_test.go b/kernel/filesys/tree_cache_test.goindex ab1227a0af..3cfb88dd89 100644--- a/kernel/filesys/tree_cache_test.go+++ b/kernel/filesys/tree_cache_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/tree_cached_source.go b/kernel/filesys/tree_cached_source.goindex 738fbd0c8b..94fb4a2337 100644--- a/kernel/filesys/tree_cached_source.go+++ b/kernel/filesys/tree_cached_source.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/tree_cached_source_test.go b/kernel/filesys/tree_cached_source_test.goindex 5d1a070486..ff5b4ba6ae 100644--- a/kernel/filesys/tree_cached_source_test.go+++ b/kernel/filesys/tree_cached_source_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/tree_compare_write.go b/kernel/filesys/tree_compare_write.goindex a3f02608aa..442ddf4d48 100644--- a/kernel/filesys/tree_compare_write.go+++ b/kernel/filesys/tree_compare_write.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/filesys/tree_compare_write_test.go b/kernel/filesys/tree_compare_write_test.goindex d7474ef8d0..620eb5bea1 100644--- a/kernel/filesys/tree_compare_write_test.go+++ b/kernel/filesys/tree_compare_write_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/tree_create_journal.go b/kernel/filesys/tree_create_journal.goindex 75aecbc38b..d7d47d1c5c 100644--- a/kernel/filesys/tree_create_journal.go+++ b/kernel/filesys/tree_create_journal.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/tree_crypto_test.go b/kernel/filesys/tree_crypto_test.goindex b421ec0a6a..849640ad9c 100644--- a/kernel/filesys/tree_crypto_test.go+++ b/kernel/filesys/tree_crypto_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage filesysdiff --git a/kernel/filesys/tree_fix_test.go b/kernel/filesys/tree_fix_test.goindex 02826c0a66..20f035e850 100644--- a/kernel/filesys/tree_fix_test.go+++ b/kernel/filesys/tree_fix_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage filesysdiff --git a/kernel/filesys/tree_mmap_test.go b/kernel/filesys/tree_mmap_test.goindex 69a46dfc55..0e49535722 100644--- a/kernel/filesys/tree_mmap_test.go+++ b/kernel/filesys/tree_mmap_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/tree_path_test.go b/kernel/filesys/tree_path_test.goindex fd3b620e8b..d36f051621 100644--- a/kernel/filesys/tree_path_test.go+++ b/kernel/filesys/tree_path_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/tree_snapshot.go b/kernel/filesys/tree_snapshot.goindex a80c11d42d..b5e6aca947 100644--- a/kernel/filesys/tree_snapshot.go+++ b/kernel/filesys/tree_snapshot.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/tree_snapshot_test.go b/kernel/filesys/tree_snapshot_test.goindex 40b2f87dbd..9808e4bf1a 100644--- a/kernel/filesys/tree_snapshot_test.go+++ b/kernel/filesys/tree_snapshot_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/filesys/tree_stale_path_test.go b/kernel/filesys/tree_stale_path_test.goindex 6f1147c1d9..1567c1af1c 100644--- a/kernel/filesys/tree_stale_path_test.go+++ b/kernel/filesys/tree_stale_path_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage filesysdiff --git a/kernel/filesys/tree_write_recorder.go b/kernel/filesys/tree_write_recorder.goindex dfc4242288..d091270e46 100644--- a/kernel/filesys/tree_write_recorder.go+++ b/kernel/filesys/tree_write_recorder.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package filesysimport (diff --git a/kernel/harmony/kernel.go b/kernel/harmony/kernel.goindex 5d687ef67b..cdd3228a50 100644--- a/kernel/harmony/kernel.go+++ b/kernel/harmony/kernel.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage maindiff --git a/kernel/harmony/sqlcipher_required.go b/kernel/harmony/sqlcipher_required.goindex f942e5f836..a81057bfd9 100644--- a/kernel/harmony/sqlcipher_required.go+++ b/kernel/harmony/sqlcipher_required.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build android && !sqlcipher && !libsqlcipherdiff --git a/kernel/heif/cache.go b/kernel/heif/cache.goindex b26897cb08..3ee57a1b43 100644--- a/kernel/heif/cache.go+++ b/kernel/heif/cache.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage heifdiff --git a/kernel/heif/cache_test.go b/kernel/heif/cache_test.goindex da2402c4e5..b6cd54ccd4 100644--- a/kernel/heif/cache_test.go+++ b/kernel/heif/cache_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage heifdiff --git a/kernel/heif/convert.go b/kernel/heif/convert.goindex 45c7d1c903..d9326d0e09 100644--- a/kernel/heif/convert.go+++ b/kernel/heif/convert.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage heifdiff --git a/kernel/internal/elevator/diagnostics_windows.go b/kernel/internal/elevator/diagnostics_windows.goindex 3acf33dea8..16d9d48984 100644--- a/kernel/internal/elevator/diagnostics_windows.go+++ b/kernel/internal/elevator/diagnostics_windows.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package elevatorimport (diff --git a/kernel/internal/elevator/diagnostics_windows_test.go b/kernel/internal/elevator/diagnostics_windows_test.goindex bf32a2a1de..5400e4da9f 100644--- a/kernel/internal/elevator/diagnostics_windows_test.go+++ b/kernel/internal/elevator/diagnostics_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package elevatorimport (diff --git a/kernel/internal/elevator/elevator_windows.go b/kernel/internal/elevator/elevator_windows.goindex cb800193eb..c7bcdf2caa 100644--- a/kernel/internal/elevator/elevator_windows.go+++ b/kernel/internal/elevator/elevator_windows.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+// 包 elevator 执行 Windows 提权工具,并等待其返回最终结果。package elevatordiff --git a/kernel/internal/elevator/elevator_windows_test.go b/kernel/internal/elevator/elevator_windows_test.goindex cde337766f..76eb368ed4 100644--- a/kernel/internal/elevator/elevator_windows_test.go+++ b/kernel/internal/elevator/elevator_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package elevatorimport (diff --git a/kernel/internal/testutil/junction_windows.go b/kernel/internal/testutil/junction_windows.goindex c35fab2f16..8ac86984f8 100644--- a/kernel/internal/testutil/junction_windows.go+++ b/kernel/internal/testutil/junction_windows.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package testutilimport (diff --git a/kernel/internal/testutil/live_photo.go b/kernel/internal/testutil/live_photo.goindex 86373c82dc..b27a5d8aec 100644--- a/kernel/internal/testutil/live_photo.go+++ b/kernel/internal/testutil/live_photo.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package testutilimport (diff --git a/kernel/internal/testutil/path.go b/kernel/internal/testutil/path.goindex a37db32e5b..f6c7de73c6 100644--- a/kernel/internal/testutil/path.go+++ b/kernel/internal/testutil/path.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage testutildiff --git a/kernel/internal/testutil/path_test.go b/kernel/internal/testutil/path_test.goindex a5f7dbe224..a0f3d7b7bb 100644--- a/kernel/internal/testutil/path_test.go+++ b/kernel/internal/testutil/path_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage testutildiff --git a/kernel/internal/testutil/short_path_other.go b/kernel/internal/testutil/short_path_other.goindex ba27ee75d1..b3a3d2ba42 100644--- a/kernel/internal/testutil/short_path_other.go+++ b/kernel/internal/testutil/short_path_other.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build !windowspackage testutildiff --git a/kernel/internal/testutil/short_path_windows.go b/kernel/internal/testutil/short_path_windows.goindex 3470d6d070..a0cc52d1f6 100644--- a/kernel/internal/testutil/short_path_windows.go+++ b/kernel/internal/testutil/short_path_windows.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package testutilimport (diff --git a/kernel/job/cron.go b/kernel/job/cron.goindex 5ffbf18357..98aff5a151 100644--- a/kernel/job/cron.go+++ b/kernel/job/cron.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage jobdiff --git a/kernel/livephoto/manager.go b/kernel/livephoto/manager.goindex 2111523f54..8d5d781cdf 100644--- a/kernel/livephoto/manager.go+++ b/kernel/livephoto/manager.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/livephoto/movie.go b/kernel/livephoto/movie.goindex 7eb3d615c7..1187997dfa 100644--- a/kernel/livephoto/movie.go+++ b/kernel/livephoto/movie.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/livephoto/movie_test.go b/kernel/livephoto/movie_test.goindex 4238bbd06f..f818a1666a 100644--- a/kernel/livephoto/movie_test.go+++ b/kernel/livephoto/movie_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package livephotoimport (diff --git a/kernel/livephoto/transcode.go b/kernel/livephoto/transcode.goindex 86ea5c2c64..03c6dba606 100644--- a/kernel/livephoto/transcode.go+++ b/kernel/livephoto/transcode.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/main.go b/kernel/main.goindex 15b0204218..edfbc12d9f 100644--- a/kernel/main.go+++ b/kernel/main.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build !mobilediff --git a/kernel/mcp/bazaar_test.go b/kernel/mcp/bazaar_test.goindex e7acfa5662..8590ec6579 100644--- a/kernel/mcp/bazaar_test.go+++ b/kernel/mcp/bazaar_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package mcpimport (diff --git a/kernel/mcp/client/ai_disabled_test.go b/kernel/mcp/client/ai_disabled_test.goindex 0996c5a3c8..14878ec15a 100644--- a/kernel/mcp/client/ai_disabled_test.go+++ b/kernel/mcp/client/ai_disabled_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package clientimport (diff --git a/kernel/mcp/client/convert.go b/kernel/mcp/client/convert.goindex c31c2c3bb3..9fd80861fe 100644--- a/kernel/mcp/client/convert.go+++ b/kernel/mcp/client/convert.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage clientdiff --git a/kernel/mcp/client/convert_test.go b/kernel/mcp/client/convert_test.goindex 3c2bd960ad..cd0c736faa 100644--- a/kernel/mcp/client/convert_test.go+++ b/kernel/mcp/client/convert_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage clientdiff --git a/kernel/mcp/client/http_protocol_test.go b/kernel/mcp/client/http_protocol_test.goindex 27c10140e2..b854a7f7b5 100644--- a/kernel/mcp/client/http_protocol_test.go+++ b/kernel/mcp/client/http_protocol_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage clientdiff --git a/kernel/mcp/client/mcp.go b/kernel/mcp/client/mcp.goindex 47284d582e..d33c6f75aa 100644--- a/kernel/mcp/client/mcp.go+++ b/kernel/mcp/client/mcp.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage clientdiff --git a/kernel/mcp/client/mcp_test.go b/kernel/mcp/client/mcp_test.goindex 707a3971ea..044dec9f65 100644--- a/kernel/mcp/client/mcp_test.go+++ b/kernel/mcp/client/mcp_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage clientdiff --git a/kernel/mcp/client/oauth.go b/kernel/mcp/client/oauth.goindex 6441e8e711..d147a0cdea 100644--- a/kernel/mcp/client/oauth.go+++ b/kernel/mcp/client/oauth.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage clientdiff --git a/kernel/mcp/client/oauth_store.go b/kernel/mcp/client/oauth_store.goindex c940fb9417..dd4c13ccca 100644--- a/kernel/mcp/client/oauth_store.go+++ b/kernel/mcp/client/oauth_store.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage clientdiff --git a/kernel/mcp/client/oauth_test.go b/kernel/mcp/client/oauth_test.goindex 319ac5f4d3..c1a0c04f68 100644--- a/kernel/mcp/client/oauth_test.go+++ b/kernel/mcp/client/oauth_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage clientdiff --git a/kernel/mcp/client/routing_test.go b/kernel/mcp/client/routing_test.goindex 386e42715e..eb67b60a88 100644--- a/kernel/mcp/client/routing_test.go+++ b/kernel/mcp/client/routing_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package clientimport (diff --git a/kernel/mcp/request_scope.go b/kernel/mcp/request_scope.goindex 3b09fb8761..1d08fb14cd 100644--- a/kernel/mcp/request_scope.go+++ b/kernel/mcp/request_scope.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage mcpdiff --git a/kernel/mcp/request_scope_test.go b/kernel/mcp/request_scope_test.goindex 07ae8e4656..da1981b8ef 100644--- a/kernel/mcp/request_scope_test.go+++ b/kernel/mcp/request_scope_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage mcpdiff --git a/kernel/mcp/server.go b/kernel/mcp/server.goindex 22a86c1d15..3360bbd722 100644--- a/kernel/mcp/server.go+++ b/kernel/mcp/server.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage mcpdiff --git a/kernel/mcp/server_test.go b/kernel/mcp/server_test.goindex a774b9acff..6581b95c4a 100644--- a/kernel/mcp/server_test.go+++ b/kernel/mcp/server_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage mcpdiff --git a/kernel/mcp/tools/asset.go b/kernel/mcp/tools/asset.goindex 4403662eef..dd6901f828 100644--- a/kernel/mcp/tools/asset.go+++ b/kernel/mcp/tools/asset.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/asset_test.go b/kernel/mcp/tools/asset_test.goindex 397b206291..bf1bf38af2 100644--- a/kernel/mcp/tools/asset_test.go+++ b/kernel/mcp/tools/asset_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/attr.go b/kernel/mcp/tools/attr.goindex 7ad3a7ce7c..3c7fc2199b 100644--- a/kernel/mcp/tools/attr.go+++ b/kernel/mcp/tools/attr.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/attr_test.go b/kernel/mcp/tools/attr_test.goindex 9a6b386a28..49dd18d09f 100644--- a/kernel/mcp/tools/attr_test.go+++ b/kernel/mcp/tools/attr_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/bazaar.go b/kernel/mcp/tools/bazaar.goindex 88e070f58d..78f6ffbbe5 100644--- a/kernel/mcp/tools/bazaar.go+++ b/kernel/mcp/tools/bazaar.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/bazaar_list.go b/kernel/mcp/tools/bazaar_list.goindex c055a9404d..8d4ad489fb 100644--- a/kernel/mcp/tools/bazaar_list.go+++ b/kernel/mcp/tools/bazaar_list.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/bazaar_project.go b/kernel/mcp/tools/bazaar_project.goindex 60f767f5a9..a5b6c6365d 100644--- a/kernel/mcp/tools/bazaar_project.go+++ b/kernel/mcp/tools/bazaar_project.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/bazaar_project_preview.go b/kernel/mcp/tools/bazaar_project_preview.goindex 53aa67eca0..ada2d7f00c 100644--- a/kernel/mcp/tools/bazaar_project_preview.go+++ b/kernel/mcp/tools/bazaar_project_preview.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/bazaar_project_test.go b/kernel/mcp/tools/bazaar_project_test.goindex 34e760d922..a4382c747c 100644--- a/kernel/mcp/tools/bazaar_project_test.go+++ b/kernel/mcp/tools/bazaar_project_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/bazaar_test.go b/kernel/mcp/tools/bazaar_test.goindex fe172be48c..6084520b57 100644--- a/kernel/mcp/tools/bazaar_test.go+++ b/kernel/mcp/tools/bazaar_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/block.go b/kernel/mcp/tools/block.goindex 3f29ba96fa..aec318c9c4 100644--- a/kernel/mcp/tools/block.go+++ b/kernel/mcp/tools/block.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/block_test.go b/kernel/mcp/tools/block_test.goindex b67d7d68fd..f5d438d932 100644--- a/kernel/mcp/tools/block_test.go+++ b/kernel/mcp/tools/block_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/bookmark.go b/kernel/mcp/tools/bookmark.goindex 817a5e026e..5897b7aaa2 100644--- a/kernel/mcp/tools/bookmark.go+++ b/kernel/mcp/tools/bookmark.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/box_lease.go b/kernel/mcp/tools/box_lease.goindex b96b65f914..5f0baf22f4 100644--- a/kernel/mcp/tools/box_lease.go+++ b/kernel/mcp/tools/box_lease.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/capability.go b/kernel/mcp/tools/capability.goindex 958bcb1289..cb05ed2aff 100644--- a/kernel/mcp/tools/capability.go+++ b/kernel/mcp/tools/capability.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/capability_test.go b/kernel/mcp/tools/capability_test.goindex 155684becf..28ecef555d 100644--- a/kernel/mcp/tools/capability_test.go+++ b/kernel/mcp/tools/capability_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/content_syntax.go b/kernel/mcp/tools/content_syntax.goindex ca2cac7716..9a2d76f54e 100644--- a/kernel/mcp/tools/content_syntax.go+++ b/kernel/mcp/tools/content_syntax.go@@ -1,5 +1,6 @@+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License v3.0.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/content_syntax_test.go b/kernel/mcp/tools/content_syntax_test.goindex 851ae203c8..a9e3ca56d9 100644--- a/kernel/mcp/tools/content_syntax_test.go+++ b/kernel/mcp/tools/content_syntax_test.go@@ -1,5 +1,6 @@+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License v3.0.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/dailynote.go b/kernel/mcp/tools/dailynote.goindex 9ca65f4d62..3ec0fdb9b7 100644--- a/kernel/mcp/tools/dailynote.go+++ b/kernel/mcp/tools/dailynote.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/database.go b/kernel/mcp/tools/database.goindex b4eb43c8cf..51430a14c1 100644--- a/kernel/mcp/tools/database.go+++ b/kernel/mcp/tools/database.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/database_automation_test.go b/kernel/mcp/tools/database_automation_test.goindex 1733842383..88927191eb 100644--- a/kernel/mcp/tools/database_automation_test.go+++ b/kernel/mcp/tools/database_automation_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/database_key.go b/kernel/mcp/tools/database_key.goindex 25551ef11d..291b006a1a 100644--- a/kernel/mcp/tools/database_key.go+++ b/kernel/mcp/tools/database_key.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/database_key_test.go b/kernel/mcp/tools/database_key_test.goindex 1421f1c7f5..576cb59f6b 100644--- a/kernel/mcp/tools/database_key_test.go+++ b/kernel/mcp/tools/database_key_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/database_test.go b/kernel/mcp/tools/database_test.goindex db42e98dad..dedf83a3a9 100644--- a/kernel/mcp/tools/database_test.go+++ b/kernel/mcp/tools/database_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/database_view.go b/kernel/mcp/tools/database_view.goindex 7565fb2fa8..b7c2b03c8b 100644--- a/kernel/mcp/tools/database_view.go+++ b/kernel/mcp/tools/database_view.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/database_view_test.go b/kernel/mcp/tools/database_view_test.goindex 70a5673cc2..840e2ff591 100644--- a/kernel/mcp/tools/database_view_test.go+++ b/kernel/mcp/tools/database_view_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/mcp/tools/decision.go b/kernel/mcp/tools/decision.goindex f87925491e..153080a904 100644--- a/kernel/mcp/tools/decision.go+++ b/kernel/mcp/tools/decision.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/decision_image.go b/kernel/mcp/tools/decision_image.goindex f1be7e1435..99187e83fc 100644--- a/kernel/mcp/tools/decision_image.go+++ b/kernel/mcp/tools/decision_image.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/decision_image_sqlcipher_test.go b/kernel/mcp/tools/decision_image_sqlcipher_test.goindex 1f033fd208..fc42f76134 100644--- a/kernel/mcp/tools/decision_image_sqlcipher_test.go+++ b/kernel/mcp/tools/decision_image_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build sqlcipherpackage toolsdiff --git a/kernel/mcp/tools/decision_image_test.go b/kernel/mcp/tools/decision_image_test.goindex 54fb63885a..bda5d778a9 100644--- a/kernel/mcp/tools/decision_image_test.go+++ b/kernel/mcp/tools/decision_image_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/decision_test.go b/kernel/mcp/tools/decision_test.goindex d4e191bfc0..2fe1b2954a 100644--- a/kernel/mcp/tools/decision_test.go+++ b/kernel/mcp/tools/decision_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/document.go b/kernel/mcp/tools/document.goindex 65a248e702..dbcbfbfd49 100644--- a/kernel/mcp/tools/document.go+++ b/kernel/mcp/tools/document.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/document_addressing_fts5_test.go b/kernel/mcp/tools/document_addressing_fts5_test.goindex 198c922f25..777d8e3237 100644--- a/kernel/mcp/tools/document_addressing_fts5_test.go+++ b/kernel/mcp/tools/document_addressing_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package toolsdiff --git a/kernel/mcp/tools/export.go b/kernel/mcp/tools/export.goindex caee6f9906..41a7056b5b 100644--- a/kernel/mcp/tools/export.go+++ b/kernel/mcp/tools/export.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/file.go b/kernel/mcp/tools/file.goindex a2a4e0dcc6..ed53c3d4ca 100644--- a/kernel/mcp/tools/file.go+++ b/kernel/mcp/tools/file.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/file_edit_test.go b/kernel/mcp/tools/file_edit_test.goindex 920244736d..e4fe74ef82 100644--- a/kernel/mcp/tools/file_edit_test.go+++ b/kernel/mcp/tools/file_edit_test.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/file_error_test.go b/kernel/mcp/tools/file_error_test.goindex cff56eaaa8..55089f1b49 100644--- a/kernel/mcp/tools/file_error_test.go+++ b/kernel/mcp/tools/file_error_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/file_limit_test.go b/kernel/mcp/tools/file_limit_test.goindex 23e8a9d696..28d21282e2 100644--- a/kernel/mcp/tools/file_limit_test.go+++ b/kernel/mcp/tools/file_limit_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/file_test.go b/kernel/mcp/tools/file_test.goindex a624f23f97..8c29e1edf1 100644--- a/kernel/mcp/tools/file_test.go+++ b/kernel/mcp/tools/file_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/history.go b/kernel/mcp/tools/history.goindex cf47484b63..e7da2866dd 100644--- a/kernel/mcp/tools/history.go+++ b/kernel/mcp/tools/history.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/http_request.go b/kernel/mcp/tools/http_request.goindex 8adf967db5..2158703f37 100644--- a/kernel/mcp/tools/http_request.go+++ b/kernel/mcp/tools/http_request.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/image.go b/kernel/mcp/tools/image.goindex 23b08a65ad..2523a5600e 100644--- a/kernel/mcp/tools/image.go+++ b/kernel/mcp/tools/image.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/image_test.go b/kernel/mcp/tools/image_test.goindex 2b6090fe22..d6ff7a88e2 100644--- a/kernel/mcp/tools/image_test.go+++ b/kernel/mcp/tools/image_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/import.go b/kernel/mcp/tools/import.goindex ddd9521481..f8a6db3a8c 100644--- a/kernel/mcp/tools/import.go+++ b/kernel/mcp/tools/import.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/inbox.go b/kernel/mcp/tools/inbox.goindex 935fb53901..98cb3770b5 100644--- a/kernel/mcp/tools/inbox.go+++ b/kernel/mcp/tools/inbox.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/inbox_test.go b/kernel/mcp/tools/inbox_test.goindex 6447ed5d6a..2d7549cafd 100644--- a/kernel/mcp/tools/inbox_test.go+++ b/kernel/mcp/tools/inbox_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/log.go b/kernel/mcp/tools/log.goindex 96b8e22b2f..0440a9f68f 100644--- a/kernel/mcp/tools/log.go+++ b/kernel/mcp/tools/log.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/log_test.go b/kernel/mcp/tools/log_test.goindex d592558c4a..63be5a05a2 100644--- a/kernel/mcp/tools/log_test.go+++ b/kernel/mcp/tools/log_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/mcp.go b/kernel/mcp/tools/mcp.goindex 645f2c4b86..40fa1b0d68 100644--- a/kernel/mcp/tools/mcp.go+++ b/kernel/mcp/tools/mcp.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/mcp_test.go b/kernel/mcp/tools/mcp_test.goindex a23b6879a0..5704200af6 100644--- a/kernel/mcp/tools/mcp_test.go+++ b/kernel/mcp/tools/mcp_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/notebook.go b/kernel/mcp/tools/notebook.goindex f274610186..54810b1d0d 100644--- a/kernel/mcp/tools/notebook.go+++ b/kernel/mcp/tools/notebook.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/outline.go b/kernel/mcp/tools/outline.goindex c3d3ff8314..7fb5fec555 100644--- a/kernel/mcp/tools/outline.go+++ b/kernel/mcp/tools/outline.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/question.go b/kernel/mcp/tools/question.goindex 107bc2eacf..b4cb1240c4 100644--- a/kernel/mcp/tools/question.go+++ b/kernel/mcp/tools/question.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/ref.go b/kernel/mcp/tools/ref.goindex ba8d24c222..d74d15e729 100644--- a/kernel/mcp/tools/ref.go+++ b/kernel/mcp/tools/ref.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/register.go b/kernel/mcp/tools/register.goindex 2ed40def8d..f28fad14ea 100644--- a/kernel/mcp/tools/register.go+++ b/kernel/mcp/tools/register.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/register_test.go b/kernel/mcp/tools/register_test.goindex 8a1b63cb38..5e0dc6d5ef 100644--- a/kernel/mcp/tools/register_test.go+++ b/kernel/mcp/tools/register_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/repo.go b/kernel/mcp/tools/repo.goindex 951a1c9286..01ee46ad05 100644--- a/kernel/mcp/tools/repo.go+++ b/kernel/mcp/tools/repo.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/repo_test.go b/kernel/mcp/tools/repo_test.goindex 88c66d35fe..d866310d09 100644--- a/kernel/mcp/tools/repo_test.go+++ b/kernel/mcp/tools/repo_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/search.go b/kernel/mcp/tools/search.goindex 1b158289c7..3d5771ec90 100644--- a/kernel/mcp/tools/search.go+++ b/kernel/mcp/tools/search.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/search_sql_fts5_test.go b/kernel/mcp/tools/search_sql_fts5_test.goindex b1f3e64194..3dbc6d5c99 100644--- a/kernel/mcp/tools/search_sql_fts5_test.go+++ b/kernel/mcp/tools/search_sql_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package toolsdiff --git a/kernel/mcp/tools/skill.go b/kernel/mcp/tools/skill.goindex d4d5413acf..003ea04f51 100644--- a/kernel/mcp/tools/skill.go+++ b/kernel/mcp/tools/skill.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/skill_test.go b/kernel/mcp/tools/skill_test.goindex 532d34d445..84f86e90b0 100644--- a/kernel/mcp/tools/skill_test.go+++ b/kernel/mcp/tools/skill_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/snippet.go b/kernel/mcp/tools/snippet.goindex ba9caa9fe2..e9b9b02f6a 100644--- a/kernel/mcp/tools/snippet.go+++ b/kernel/mcp/tools/snippet.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/snippet_test.go b/kernel/mcp/tools/snippet_test.goindex af94933f4b..b0039e8759 100644--- a/kernel/mcp/tools/snippet_test.go+++ b/kernel/mcp/tools/snippet_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/sql.go b/kernel/mcp/tools/sql.goindex d155b6f5b7..6ee1344e9d 100644--- a/kernel/mcp/tools/sql.go+++ b/kernel/mcp/tools/sql.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/sql_schema.go b/kernel/mcp/tools/sql_schema.goindex ad745b35fd..da1a73092f 100644--- a/kernel/mcp/tools/sql_schema.go+++ b/kernel/mcp/tools/sql_schema.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package tools// SQL 索引说明按需返回,不向每轮智能体系统提示词注入完整表结构。diff --git a/kernel/mcp/tools/sql_test.go b/kernel/mcp/tools/sql_test.goindex a65fe0e9c3..ddf20b84d9 100644--- a/kernel/mcp/tools/sql_test.go+++ b/kernel/mcp/tools/sql_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/string.go b/kernel/mcp/tools/string.goindex 5540da0489..af17eb8e1f 100644--- a/kernel/mcp/tools/string.go+++ b/kernel/mcp/tools/string.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/string_test.go b/kernel/mcp/tools/string_test.goindex 5238bad7b6..eddc862976 100644--- a/kernel/mcp/tools/string_test.go+++ b/kernel/mcp/tools/string_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/sync.go b/kernel/mcp/tools/sync.goindex a84dfd6684..f7b248f8e7 100644--- a/kernel/mcp/tools/sync.go+++ b/kernel/mcp/tools/sync.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/sync_test.go b/kernel/mcp/tools/sync_test.goindex e2f79e4ca8..54025e4b8c 100644--- a/kernel/mcp/tools/sync_test.go+++ b/kernel/mcp/tools/sync_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/system.go b/kernel/mcp/tools/system.goindex ea2fd53acd..9f25e864b9 100644--- a/kernel/mcp/tools/system.go+++ b/kernel/mcp/tools/system.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/tag.go b/kernel/mcp/tools/tag.goindex ac294e616c..d008cc9101 100644--- a/kernel/mcp/tools/tag.go+++ b/kernel/mcp/tools/tag.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/tag_test.go b/kernel/mcp/tools/tag_test.goindex f441b4e6d7..7d03bb5705 100644--- a/kernel/mcp/tools/tag_test.go+++ b/kernel/mcp/tools/tag_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/template.go b/kernel/mcp/tools/template.goindex 83425a354e..47f481b360 100644--- a/kernel/mcp/tools/template.go+++ b/kernel/mcp/tools/template.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/template_test.go b/kernel/mcp/tools/template_test.goindex bc07c4c78c..494c1c4d2d 100644--- a/kernel/mcp/tools/template_test.go+++ b/kernel/mcp/tools/template_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/todo.go b/kernel/mcp/tools/todo.goindex 7a5a8c3649..9259a171e4 100644--- a/kernel/mcp/tools/todo.go+++ b/kernel/mcp/tools/todo.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/todo_test.go b/kernel/mcp/tools/todo_test.goindex 83619a4802..00059f1031 100644--- a/kernel/mcp/tools/todo_test.go+++ b/kernel/mcp/tools/todo_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/types.go b/kernel/mcp/tools/types.goindex ba8eeed77e..d5e59cfe6e 100644--- a/kernel/mcp/tools/types.go+++ b/kernel/mcp/tools/types.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/types_test.go b/kernel/mcp/tools/types_test.goindex 98f628c976..ab38f5b2dd 100644--- a/kernel/mcp/tools/types_test.go+++ b/kernel/mcp/tools/types_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/unzip.go b/kernel/mcp/tools/unzip.goindex fde09f6e19..bee7add92b 100644--- a/kernel/mcp/tools/unzip.go+++ b/kernel/mcp/tools/unzip.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/unzip_test.go b/kernel/mcp/tools/unzip_test.goindex 9730d91339..a83f414454 100644--- a/kernel/mcp/tools/unzip_test.go+++ b/kernel/mcp/tools/unzip_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/validation.go b/kernel/mcp/tools/validation.goindex bcd700b5b7..f487b15c29 100644--- a/kernel/mcp/tools/validation.go+++ b/kernel/mcp/tools/validation.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/validation_test.go b/kernel/mcp/tools/validation_test.goindex e95a9a050d..7c5f8d68e8 100644--- a/kernel/mcp/tools/validation_test.go+++ b/kernel/mcp/tools/validation_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/web.go b/kernel/mcp/tools/web.goindex ddb48228de..7d7b7d3532 100644--- a/kernel/mcp/tools/web.go+++ b/kernel/mcp/tools/web.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/web_fetch.go b/kernel/mcp/tools/web_fetch.goindex f9f5e98507..6fd75a171c 100644--- a/kernel/mcp/tools/web_fetch.go+++ b/kernel/mcp/tools/web_fetch.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/web_search.go b/kernel/mcp/tools/web_search.goindex 0c997010f6..5f56b61995 100644--- a/kernel/mcp/tools/web_search.go+++ b/kernel/mcp/tools/web_search.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mcp/tools/web_test.go b/kernel/mcp/tools/web_test.goindex 331dc61158..39cefdff8c 100644--- a/kernel/mcp/tools/web_test.go+++ b/kernel/mcp/tools/web_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package toolsimport (diff --git a/kernel/mcp/tools/workspace.go b/kernel/mcp/tools/workspace.goindex f2aa3ba5ea..cd1dd29385 100644--- a/kernel/mcp/tools/workspace.go+++ b/kernel/mcp/tools/workspace.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage toolsdiff --git a/kernel/mobile/kernel.go b/kernel/mobile/kernel.goindex 02333038cf..b6e7b9422c 100644--- a/kernel/mobile/kernel.go+++ b/kernel/mobile/kernel.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage mobilediff --git a/kernel/mobile/sqlcipher_required.go b/kernel/mobile/sqlcipher_required.goindex 6690789c78..fbec0e4762 100644--- a/kernel/mobile/sqlcipher_required.go+++ b/kernel/mobile/sqlcipher_required.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build (android || ios) && !sqlcipher && !libsqlcipherdiff --git a/kernel/mobile/startup_test.go b/kernel/mobile/startup_test.goindex 72e51c7124..6c37ddb859 100644--- a/kernel/mobile/startup_test.go+++ b/kernel/mobile/startup_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package mobileimport (diff --git a/kernel/model/agent_instructions_test.go b/kernel/model/agent_instructions_test.goindex 9257e98f70..25e9d5e6bb 100644--- a/kernel/model/agent_instructions_test.go+++ b/kernel/model/agent_instructions_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/ai.go b/kernel/model/ai.goindex aeb6b737e6..03a6f9129d 100644--- a/kernel/model/ai.go+++ b/kernel/model/ai.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/ai_client.go b/kernel/model/ai_client.goindex ce1aa032ea..e70a1ebfef 100644--- a/kernel/model/ai_client.go+++ b/kernel/model/ai_client.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/ai_disabled_test.go b/kernel/model/ai_disabled_test.goindex b63d215826..d16c43009d 100644--- a/kernel/model/ai_disabled_test.go+++ b/kernel/model/ai_disabled_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/ai_editor.go b/kernel/model/ai_editor.goindex a8b627af77..1f9842a329 100644--- a/kernel/model/ai_editor.go+++ b/kernel/model/ai_editor.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/ai_editor_test.go b/kernel/model/ai_editor_test.goindex 6656e7d424..f035743822 100644--- a/kernel/model/ai_editor_test.go+++ b/kernel/model/ai_editor_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/ai_headers.go b/kernel/model/ai_headers.goindex a47f741045..19fac43936 100644--- a/kernel/model/ai_headers.go+++ b/kernel/model/ai_headers.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/ai_headers_test.go b/kernel/model/ai_headers_test.goindex 04fbe2ab2d..c91c351374 100644--- a/kernel/model/ai_headers_test.go+++ b/kernel/model/ai_headers_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/ai_prompt_test.go b/kernel/model/ai_prompt_test.goindex 59e2e0a961..508a9c7770 100644--- a/kernel/model/ai_prompt_test.go+++ b/kernel/model/ai_prompt_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/appearance.go b/kernel/model/appearance.goindex 8e675d1167..a33a13657d 100644--- a/kernel/model/appearance.go+++ b/kernel/model/appearance.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/appearance_export.go b/kernel/model/appearance_export.goindex 3a8f46cfe9..67aa47ee18 100644--- a/kernel/model/appearance_export.go+++ b/kernel/model/appearance_export.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/appearance_link_other.go b/kernel/model/appearance_link_other.goindex 7f7f877c3a..1a8fe415f9 100644--- a/kernel/model/appearance_link_other.go+++ b/kernel/model/appearance_link_other.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build !windowspackage modeldiff --git a/kernel/model/appearance_link_windows.go b/kernel/model/appearance_link_windows.goindex 4bd5338377..398cdc9852 100644--- a/kernel/model/appearance_link_windows.go+++ b/kernel/model/appearance_link_windows.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/appearance_link_windows_test.go b/kernel/model/appearance_link_windows_test.goindex 4000c176ba..6aa0ce3efb 100644--- a/kernel/model/appearance_link_windows_test.go+++ b/kernel/model/appearance_link_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/appearance_packages_test.go b/kernel/model/appearance_packages_test.goindex b0591d0161..3b106190ff 100644--- a/kernel/model/appearance_packages_test.go+++ b/kernel/model/appearance_packages_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/appearance_paths_migration.go b/kernel/model/appearance_paths_migration.goindex 2883247d83..d868fe8f5c 100644--- a/kernel/model/appearance_paths_migration.go+++ b/kernel/model/appearance_paths_migration.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/appearance_paths_migration_test.go b/kernel/model/appearance_paths_migration_test.goindex bd28989965..03f2e9546d 100644--- a/kernel/model/appearance_paths_migration_test.go+++ b/kernel/model/appearance_paths_migration_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/appearance_sync.go b/kernel/model/appearance_sync.goindex 977b6461e4..663247c13f 100644--- a/kernel/model/appearance_sync.go+++ b/kernel/model/appearance_sync.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/appearance_sync_test.go b/kernel/model/appearance_sync_test.goindex 116bd743c8..b7b9ba01e9 100644--- a/kernel/model/appearance_sync_test.go+++ b/kernel/model/appearance_sync_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/asset_content.go b/kernel/model/asset_content.goindex 5ef6c0acc2..8c28f2fd95 100644--- a/kernel/model/asset_content.go+++ b/kernel/model/asset_content.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/asset_content_batch_test.go b/kernel/model/asset_content_batch_test.goindex cccefd47b6..e5ddbda47d 100644--- a/kernel/model/asset_content_batch_test.go+++ b/kernel/model/asset_content_batch_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/asset_content_fts5_test.go b/kernel/model/asset_content_fts5_test.goindex aea3f31050..eeae8915ba 100644--- a/kernel/model/asset_content_fts5_test.go+++ b/kernel/model/asset_content_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/asset_content_test.go b/kernel/model/asset_content_test.goindex 3e248afc34..f8e54ff5f7 100644--- a/kernel/model/asset_content_test.go+++ b/kernel/model/asset_content_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/asset_download.go b/kernel/model/asset_download.goindex e8b03da4c9..98980826a8 100644--- a/kernel/model/asset_download.go+++ b/kernel/model/asset_download.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/asset_download_read.go b/kernel/model/asset_download_read.goindex fce9ae7878..38b0cb06f5 100644--- a/kernel/model/asset_download_read.go+++ b/kernel/model/asset_download_read.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/asset_download_read_test.go b/kernel/model/asset_download_read_test.goindex 95dcae95f0..5bfcb7823e 100644--- a/kernel/model/asset_download_read_test.go+++ b/kernel/model/asset_download_read_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/asset_download_recovery.go b/kernel/model/asset_download_recovery.goindex 0a2fe4b115..d4b061798d 100644--- a/kernel/model/asset_download_recovery.go+++ b/kernel/model/asset_download_recovery.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/asset_download_recovery_fts5_test.go b/kernel/model/asset_download_recovery_fts5_test.goindex 78167a895e..4215ae4eed 100644--- a/kernel/model/asset_download_recovery_fts5_test.go+++ b/kernel/model/asset_download_recovery_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/asset_download_regression_test.go b/kernel/model/asset_download_regression_test.goindex 82c19f4590..0241e9d56b 100644--- a/kernel/model/asset_download_regression_test.go+++ b/kernel/model/asset_download_regression_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/asset_download_source_test.go b/kernel/model/asset_download_source_test.goindex 7a080bced6..7fd2f39c18 100644--- a/kernel/model/asset_download_source_test.go+++ b/kernel/model/asset_download_source_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/asset_download_test.go b/kernel/model/asset_download_test.goindex 233ce1646b..5e91568447 100644--- a/kernel/model/asset_download_test.go+++ b/kernel/model/asset_download_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/asset_reference.go b/kernel/model/asset_reference.goindex b506bb1c11..2887578c06 100644--- a/kernel/model/asset_reference.go+++ b/kernel/model/asset_reference.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/asset_reference_test.go b/kernel/model/asset_reference_test.goindex 9e8819881d..da3dd9247d 100644--- a/kernel/model/asset_reference_test.go+++ b/kernel/model/asset_reference_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/asset_relink.go b/kernel/model/asset_relink.goindex a3e293457c..136384047b 100644--- a/kernel/model/asset_relink.go+++ b/kernel/model/asset_relink.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/asset_relink_batch.go b/kernel/model/asset_relink_batch.goindex 475f22bcb2..b0737b7f30 100644--- a/kernel/model/asset_relink_batch.go+++ b/kernel/model/asset_relink_batch.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/asset_relink_batch_test.go b/kernel/model/asset_relink_batch_test.goindex e6a823ba8d..26ffa822ae 100644--- a/kernel/model/asset_relink_batch_test.go+++ b/kernel/model/asset_relink_batch_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/asset_relink_integration_test.go b/kernel/model/asset_relink_integration_test.goindex 6ecd2326da..7ddb659e67 100644--- a/kernel/model/asset_relink_integration_test.go+++ b/kernel/model/asset_relink_integration_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/asset_relink_references.go b/kernel/model/asset_relink_references.goindex 37b5c20df3..72d6ca8e71 100644--- a/kernel/model/asset_relink_references.go+++ b/kernel/model/asset_relink_references.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/asset_relink_test.go b/kernel/model/asset_relink_test.goindex bc129497a8..56ab827fd1 100644--- a/kernel/model/asset_relink_test.go+++ b/kernel/model/asset_relink_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/asset_relink_unavailable_test.go b/kernel/model/asset_relink_unavailable_test.goindex 1eeb6631e0..2d68b482a9 100644--- a/kernel/model/asset_relink_unavailable_test.go+++ b/kernel/model/asset_relink_unavailable_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/asset_rename_test.go b/kernel/model/asset_rename_test.goindex 4c1e9301de..3bfd940811 100644--- a/kernel/model/asset_rename_test.go+++ b/kernel/model/asset_rename_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/asset_search.go b/kernel/model/asset_search.goindex 8607b36e8b..6e9b51acc2 100644--- a/kernel/model/asset_search.go+++ b/kernel/model/asset_search.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/asset_search_test.go b/kernel/model/asset_search_test.goindex 197e44980a..74e1558f42 100644--- a/kernel/model/asset_search_test.go+++ b/kernel/model/asset_search_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport "testing"diff --git a/kernel/model/assets.go b/kernel/model/assets.goindex e66d39b4ad..fbd77fb475 100644--- a/kernel/model/assets.go+++ b/kernel/model/assets.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/assets_cleanup.go b/kernel/model/assets_cleanup.goindex 36ce1809a6..0f08c77513 100644--- a/kernel/model/assets_cleanup.go+++ b/kernel/model/assets_cleanup.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/assets_cleanup_fts5_test.go b/kernel/model/assets_cleanup_fts5_test.goindex 6d775cd780..acc907676e 100644--- a/kernel/model/assets_cleanup_fts5_test.go+++ b/kernel/model/assets_cleanup_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/assets_cleanup_test.go b/kernel/model/assets_cleanup_test.goindex 42c1d18e84..4aa1600187 100644--- a/kernel/model/assets_cleanup_test.go+++ b/kernel/model/assets_cleanup_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/assets_missing_test.go b/kernel/model/assets_missing_test.goindex 5eee7938c4..3963bbf95d 100644--- a/kernel/model/assets_missing_test.go+++ b/kernel/model/assets_missing_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/assets_notification_test.go b/kernel/model/assets_notification_test.goindex edbacd53d7..982eadd0e6 100644--- a/kernel/model/assets_notification_test.go+++ b/kernel/model/assets_notification_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/assets_promote.go b/kernel/model/assets_promote.goindex 50284de5ac..8b9f0680a9 100644--- a/kernel/model/assets_promote.go+++ b/kernel/model/assets_promote.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/assets_promote_test.go b/kernel/model/assets_promote_test.goindex a280ba1eee..bb9d869d17 100644--- a/kernel/model/assets_promote_test.go+++ b/kernel/model/assets_promote_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/assets_remove_fts5_test.go b/kernel/model/assets_remove_fts5_test.goindex 170426a888..c4508ef993 100644--- a/kernel/model/assets_remove_fts5_test.go+++ b/kernel/model/assets_remove_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/assets_test.go b/kernel/model/assets_test.goindex d4d6f7ca69..b4d3547670 100644--- a/kernel/model/assets_test.go+++ b/kernel/model/assets_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/assets_watcher.go b/kernel/model/assets_watcher.goindex 8e0286c698..f000ae86a9 100644--- a/kernel/model/assets_watcher.go+++ b/kernel/model/assets_watcher.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build !darwindiff --git a/kernel/model/assets_watcher_darwin.go b/kernel/model/assets_watcher_darwin.goindex 9a356e0f92..feea7c2250 100644--- a/kernel/model/assets_watcher_darwin.go+++ b/kernel/model/assets_watcher_darwin.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build darwindiff --git a/kernel/model/assets_watcher_darwin_test.go b/kernel/model/assets_watcher_darwin_test.goindex 56c7961103..e1e6a1f115 100644--- a/kernel/model/assets_watcher_darwin_test.go+++ b/kernel/model/assets_watcher_darwin_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build darwinpackage modeldiff --git a/kernel/model/assets_watcher_events.go b/kernel/model/assets_watcher_events.goindex 8a8f89e5e9..779a744141 100644--- a/kernel/model/assets_watcher_events.go+++ b/kernel/model/assets_watcher_events.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/assets_watcher_fts5_test.go b/kernel/model/assets_watcher_fts5_test.goindex 8c5ef85779..48d574a7be 100644--- a/kernel/model/assets_watcher_fts5_test.go+++ b/kernel/model/assets_watcher_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && !darwinpackage modeldiff --git a/kernel/model/assets_watcher_recovery.go b/kernel/model/assets_watcher_recovery.goindex 8f8541196d..3f561f3021 100644--- a/kernel/model/assets_watcher_recovery.go+++ b/kernel/model/assets_watcher_recovery.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build !darwinpackage modeldiff --git a/kernel/model/assets_watcher_recovery_test.go b/kernel/model/assets_watcher_recovery_test.goindex 24ff0b544a..dc832e10f1 100644--- a/kernel/model/assets_watcher_recovery_test.go+++ b/kernel/model/assets_watcher_recovery_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build !darwinpackage modeldiff --git a/kernel/model/assets_watcher_test.go b/kernel/model/assets_watcher_test.goindex b7e1cb42ee..b85a3c157a 100644--- a/kernel/model/assets_watcher_test.go+++ b/kernel/model/assets_watcher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build !darwinpackage modeldiff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 78021ea941..bb5a1133d0 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_agent.go b/kernel/model/attribute_view_agent.goindex 91cf6598ed..47e7da41b6 100644--- a/kernel/model/attribute_view_agent.go+++ b/kernel/model/attribute_view_agent.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_agent_fts5_test.go b/kernel/model/attribute_view_agent_fts5_test.goindex 9964a20250..6ebb5b8e84 100644--- a/kernel/model/attribute_view_agent_fts5_test.go+++ b/kernel/model/attribute_view_agent_fts5_test.go@@ -1,9 +1,9 @@-//go:build fts5--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5+package modelimport (diff --git a/kernel/model/attribute_view_automation.go b/kernel/model/attribute_view_automation.goindex f3f279e0d0..2951b8238e 100644--- a/kernel/model/attribute_view_automation.go+++ b/kernel/model/attribute_view_automation.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_automation_fts5_test.go b/kernel/model/attribute_view_automation_fts5_test.goindex 21010298b2..cc2b7fb7b0 100644--- a/kernel/model/attribute_view_automation_fts5_test.go+++ b/kernel/model/attribute_view_automation_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_automation_notification.go b/kernel/model/attribute_view_automation_notification.goindex 2353f8782e..2838c26ef2 100644--- a/kernel/model/attribute_view_automation_notification.go+++ b/kernel/model/attribute_view_automation_notification.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_automation_notification_fts5_test.go b/kernel/model/attribute_view_automation_notification_fts5_test.goindex c0129363d9..8ab4e52d7e 100644--- a/kernel/model/attribute_view_automation_notification_fts5_test.go+++ b/kernel/model/attribute_view_automation_notification_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_automation_template.go b/kernel/model/attribute_view_automation_template.goindex c1d1766e8c..c102b0eda4 100644--- a/kernel/model/attribute_view_automation_template.go+++ b/kernel/model/attribute_view_automation_template.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_automation_template_fts5_test.go b/kernel/model/attribute_view_automation_template_fts5_test.goindex 2afc1e2ff7..ca3ec3f2f8 100644--- a/kernel/model/attribute_view_automation_template_fts5_test.go+++ b/kernel/model/attribute_view_automation_template_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_backlink_test.go b/kernel/model/attribute_view_backlink_test.goindex ea655e2895..ea543224f2 100644--- a/kernel/model/attribute_view_backlink_test.go+++ b/kernel/model/attribute_view_backlink_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_binding.go b/kernel/model/attribute_view_binding.goindex 8883ea1f1f..09bf037370 100644--- a/kernel/model/attribute_view_binding.go+++ b/kernel/model/attribute_view_binding.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_binding_test.go b/kernel/model/attribute_view_binding_test.goindex e9f4f3668b..c07ec32e2b 100644--- a/kernel/model/attribute_view_binding_test.go+++ b/kernel/model/attribute_view_binding_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_binding_undo.go b/kernel/model/attribute_view_binding_undo.goindex 0a358d3cf2..b702116967 100644--- a/kernel/model/attribute_view_binding_undo.go+++ b/kernel/model/attribute_view_binding_undo.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_binding_undo_fts5_test.go b/kernel/model/attribute_view_binding_undo_fts5_test.goindex 66889aadc4..58e32db1b3 100644--- a/kernel/model/attribute_view_binding_undo_fts5_test.go+++ b/kernel/model/attribute_view_binding_undo_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_binding_undo_sqlcipher_test.go b/kernel/model/attribute_view_binding_undo_sqlcipher_test.goindex 6e24925e53..ab524a4e9f 100644--- a/kernel/model/attribute_view_binding_undo_sqlcipher_test.go+++ b/kernel/model/attribute_view_binding_undo_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/attribute_view_block_history.go b/kernel/model/attribute_view_block_history.goindex 3f03c2a9bb..87a6dfe3f0 100644--- a/kernel/model/attribute_view_block_history.go+++ b/kernel/model/attribute_view_block_history.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_block_history_fts5_test.go b/kernel/model/attribute_view_block_history_fts5_test.goindex ecde524572..bce4331a52 100644--- a/kernel/model/attribute_view_block_history_fts5_test.go+++ b/kernel/model/attribute_view_block_history_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_block_undo.go b/kernel/model/attribute_view_block_undo.goindex f8713a9ff8..c90d00c9b6 100644--- a/kernel/model/attribute_view_block_undo.go+++ b/kernel/model/attribute_view_block_undo.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_block_undo_fts5_test.go b/kernel/model/attribute_view_block_undo_fts5_test.goindex 7730616006..2e4bef3814 100644--- a/kernel/model/attribute_view_block_undo_fts5_test.go+++ b/kernel/model/attribute_view_block_undo_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_block_undo_sqlcipher_test.go b/kernel/model/attribute_view_block_undo_sqlcipher_test.goindex ec6344d7d0..04c8447b04 100644--- a/kernel/model/attribute_view_block_undo_sqlcipher_test.go+++ b/kernel/model/attribute_view_block_undo_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/attribute_view_block_view_test.go b/kernel/model/attribute_view_block_view_test.goindex ce29670859..ef27ada8c0 100644--- a/kernel/model/attribute_view_block_view_test.go+++ b/kernel/model/attribute_view_block_view_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_box_test.go b/kernel/model/attribute_view_box_test.goindex c6f99cdf47..b8789297e6 100644--- a/kernel/model/attribute_view_box_test.go+++ b/kernel/model/attribute_view_box_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_calendar.go b/kernel/model/attribute_view_calendar.goindex fd3de6702b..9832e443ed 100644--- a/kernel/model/attribute_view_calendar.go+++ b/kernel/model/attribute_view_calendar.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/attribute_view_calendar_fts5_test.go b/kernel/model/attribute_view_calendar_fts5_test.goindex 352d8e149a..3b99b50316 100644--- a/kernel/model/attribute_view_calendar_fts5_test.go+++ b/kernel/model/attribute_view_calendar_fts5_test.go@@ -1,9 +1,9 @@-//go:build fts5--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5+package modelimport (diff --git a/kernel/model/attribute_view_calendar_test.go b/kernel/model/attribute_view_calendar_test.goindex 6196e698e9..a8b59aaa59 100644--- a/kernel/model/attribute_view_calendar_test.go+++ b/kernel/model/attribute_view_calendar_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_card_layout_test.go b/kernel/model/attribute_view_card_layout_test.goindex 9d805cceb0..3ea111496d 100644--- a/kernel/model/attribute_view_card_layout_test.go+++ b/kernel/model/attribute_view_card_layout_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_collection.go b/kernel/model/attribute_view_collection.goindex 2cfb24d1f0..0985063b8d 100644--- a/kernel/model/attribute_view_collection.go+++ b/kernel/model/attribute_view_collection.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_collection_attribute_fts5_test.go b/kernel/model/attribute_view_collection_attribute_fts5_test.goindex a8c81dd643..10e6a7f285 100644--- a/kernel/model/attribute_view_collection_attribute_fts5_test.go+++ b/kernel/model/attribute_view_collection_attribute_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_collection_depth_fts5_test.go b/kernel/model/attribute_view_collection_depth_fts5_test.goindex d2af2407f0..ef83d0fcd2 100644--- a/kernel/model/attribute_view_collection_depth_fts5_test.go+++ b/kernel/model/attribute_view_collection_depth_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_collection_document_fts5_test.go b/kernel/model/attribute_view_collection_document_fts5_test.goindex 33f1d09784..cb7e1285d0 100644--- a/kernel/model/attribute_view_collection_document_fts5_test.go+++ b/kernel/model/attribute_view_collection_document_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_collection_document_sqlcipher_test.go b/kernel/model/attribute_view_collection_document_sqlcipher_test.goindex 772cc0d4ba..32aa98e9f6 100644--- a/kernel/model/attribute_view_collection_document_sqlcipher_test.go+++ b/kernel/model/attribute_view_collection_document_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/attribute_view_collection_fts5_test.go b/kernel/model/attribute_view_collection_fts5_test.goindex 062823cb94..5c034cbf8d 100644--- a/kernel/model/attribute_view_collection_fts5_test.go+++ b/kernel/model/attribute_view_collection_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_collection_index_fts5_test.go b/kernel/model/attribute_view_collection_index_fts5_test.goindex c6048ff862..684ac27cfb 100644--- a/kernel/model/attribute_view_collection_index_fts5_test.go+++ b/kernel/model/attribute_view_collection_index_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_collection_notification_fts5_test.go b/kernel/model/attribute_view_collection_notification_fts5_test.goindex 70676ee215..9e7362d279 100644--- a/kernel/model/attribute_view_collection_notification_fts5_test.go+++ b/kernel/model/attribute_view_collection_notification_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_collection_origin_fts5_test.go b/kernel/model/attribute_view_collection_origin_fts5_test.goindex bd43f1f8fe..97a4209fac 100644--- a/kernel/model/attribute_view_collection_origin_fts5_test.go+++ b/kernel/model/attribute_view_collection_origin_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_collection_reference.go b/kernel/model/attribute_view_collection_reference.goindex ef4fc3a0bd..561531a6a2 100644--- a/kernel/model/attribute_view_collection_reference.go+++ b/kernel/model/attribute_view_collection_reference.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_collection_reference_fts5_test.go b/kernel/model/attribute_view_collection_reference_fts5_test.goindex 611bfc5786..dfffebb80f 100644--- a/kernel/model/attribute_view_collection_reference_fts5_test.go+++ b/kernel/model/attribute_view_collection_reference_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_collection_review.go b/kernel/model/attribute_view_collection_review.goindex 63a81f6bb2..2c7beb448d 100644--- a/kernel/model/attribute_view_collection_review.go+++ b/kernel/model/attribute_view_collection_review.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_collection_review_fts5_test.go b/kernel/model/attribute_view_collection_review_fts5_test.goindex 733fec8652..6a7b477810 100644--- a/kernel/model/attribute_view_collection_review_fts5_test.go+++ b/kernel/model/attribute_view_collection_review_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_collection_scope_fts5_test.go b/kernel/model/attribute_view_collection_scope_fts5_test.goindex 324b046ee1..c933892d6a 100644--- a/kernel/model/attribute_view_collection_scope_fts5_test.go+++ b/kernel/model/attribute_view_collection_scope_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_collection_sqlcipher_test.go b/kernel/model/attribute_view_collection_sqlcipher_test.goindex 4980aa6d56..e4efac0cfa 100644--- a/kernel/model/attribute_view_collection_sqlcipher_test.go+++ b/kernel/model/attribute_view_collection_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/attribute_view_collection_target_fts5_test.go b/kernel/model/attribute_view_collection_target_fts5_test.goindex ea5bcd54e6..8162cb11c7 100644--- a/kernel/model/attribute_view_collection_target_fts5_test.go+++ b/kernel/model/attribute_view_collection_target_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_conditional_color.go b/kernel/model/attribute_view_conditional_color.goindex 85a5e799d1..64025adbe4 100644--- a/kernel/model/attribute_view_conditional_color.go+++ b/kernel/model/attribute_view_conditional_color.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/attribute_view_conditional_color_fts5_test.go b/kernel/model/attribute_view_conditional_color_fts5_test.goindex a23b0f5cbc..bc16c88bc9 100644--- a/kernel/model/attribute_view_conditional_color_fts5_test.go+++ b/kernel/model/attribute_view_conditional_color_fts5_test.go@@ -1,9 +1,9 @@-//go:build fts5--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5+package modelimport (diff --git a/kernel/model/attribute_view_context_filter_template_test.go b/kernel/model/attribute_view_context_filter_template_test.goindex 2e132812dd..346f814abf 100644--- a/kernel/model/attribute_view_context_filter_template_test.go+++ b/kernel/model/attribute_view_context_filter_template_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_context_filter_test.go b/kernel/model/attribute_view_context_filter_test.goindex 6ce68386c7..bffeb551ee 100644--- a/kernel/model/attribute_view_context_filter_test.go+++ b/kernel/model/attribute_view_context_filter_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_create.go b/kernel/model/attribute_view_create.goindex 9c09c79825..c5c6291d9b 100644--- a/kernel/model/attribute_view_create.go+++ b/kernel/model/attribute_view_create.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_create_test.go b/kernel/model/attribute_view_create_test.goindex a69d9406ac..2005bcf0bd 100644--- a/kernel/model/attribute_view_create_test.go+++ b/kernel/model/attribute_view_create_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_custom_color_history_test.go b/kernel/model/attribute_view_custom_color_history_test.goindex ef10cacd83..b7e6b3bc24 100644--- a/kernel/model/attribute_view_custom_color_history_test.go+++ b/kernel/model/attribute_view_custom_color_history_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_default_test.go b/kernel/model/attribute_view_default_test.goindex a564eda9b1..f2d27aeae3 100644--- a/kernel/model/attribute_view_default_test.go+++ b/kernel/model/attribute_view_default_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_external_history_fts5_test.go b/kernel/model/attribute_view_external_history_fts5_test.goindex bbd4dd4ebf..e950c6c9dc 100644--- a/kernel/model/attribute_view_external_history_fts5_test.go+++ b/kernel/model/attribute_view_external_history_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_field_changes.go b/kernel/model/attribute_view_field_changes.goindex 021f7e5b74..5692c6ea8a 100644--- a/kernel/model/attribute_view_field_changes.go+++ b/kernel/model/attribute_view_field_changes.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_field_filter_test.go b/kernel/model/attribute_view_field_filter_test.goindex c0faa6779f..bb0b2c21ee 100644--- a/kernel/model/attribute_view_field_filter_test.go+++ b/kernel/model/attribute_view_field_filter_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_field_visibility_test.go b/kernel/model/attribute_view_field_visibility_test.goindex d7e0feb4eb..ccb6df4aeb 100644--- a/kernel/model/attribute_view_field_visibility_test.go+++ b/kernel/model/attribute_view_field_visibility_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_fields.go b/kernel/model/attribute_view_fields.goindex 87d322762e..592bf37025 100644--- a/kernel/model/attribute_view_fields.go+++ b/kernel/model/attribute_view_fields.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_fields_fts5_test.go b/kernel/model/attribute_view_fields_fts5_test.goindex 13dbe5012c..8f02e836ff 100644--- a/kernel/model/attribute_view_fields_fts5_test.go+++ b/kernel/model/attribute_view_fields_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_fix.go b/kernel/model/attribute_view_fix.goindex c96aa3f24c..d98a2f5182 100644--- a/kernel/model/attribute_view_fix.go+++ b/kernel/model/attribute_view_fix.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_group_test.go b/kernel/model/attribute_view_group_test.goindex ad99d71c0d..85902b5db9 100644--- a/kernel/model/attribute_view_group_test.go+++ b/kernel/model/attribute_view_group_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_group_undo.go b/kernel/model/attribute_view_group_undo.goindex 0ec3f8f859..4ceefb4190 100644--- a/kernel/model/attribute_view_group_undo.go+++ b/kernel/model/attribute_view_group_undo.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_group_undo_fts5_test.go b/kernel/model/attribute_view_group_undo_fts5_test.goindex d666498d43..c015d033c1 100644--- a/kernel/model/attribute_view_group_undo_fts5_test.go+++ b/kernel/model/attribute_view_group_undo_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_icon_fts5_test.go b/kernel/model/attribute_view_icon_fts5_test.goindex 7f3676ab0c..60d3354699 100644--- a/kernel/model/attribute_view_icon_fts5_test.go+++ b/kernel/model/attribute_view_icon_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_images_test.go b/kernel/model/attribute_view_images_test.goindex e8e5b70f40..5c0f88ec50 100644--- a/kernel/model/attribute_view_images_test.go+++ b/kernel/model/attribute_view_images_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_initialization.go b/kernel/model/attribute_view_initialization.goindex ab60b116cc..3da8b79233 100644--- a/kernel/model/attribute_view_initialization.go+++ b/kernel/model/attribute_view_initialization.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/attribute_view_initialization_test.go b/kernel/model/attribute_view_initialization_test.goindex c8c2942f5c..b59353245a 100644--- a/kernel/model/attribute_view_initialization_test.go+++ b/kernel/model/attribute_view_initialization_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/attribute_view_insert_test.go b/kernel/model/attribute_view_insert_test.goindex ec3fb10291..ca0cf63846 100644--- a/kernel/model/attribute_view_insert_test.go+++ b/kernel/model/attribute_view_insert_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_item_keys_test.go b/kernel/model/attribute_view_item_keys_test.goindex da0ef94441..f3da283ac3 100644--- a/kernel/model/attribute_view_item_keys_test.go+++ b/kernel/model/attribute_view_item_keys_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_items.go b/kernel/model/attribute_view_items.goindex 7ccbeb4723..f3a1fd5b38 100644--- a/kernel/model/attribute_view_items.go+++ b/kernel/model/attribute_view_items.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_items_fts5_test.go b/kernel/model/attribute_view_items_fts5_test.goindex 5bdc1346f9..139da80d7b 100644--- a/kernel/model/attribute_view_items_fts5_test.go+++ b/kernel/model/attribute_view_items_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_key_config.go b/kernel/model/attribute_view_key_config.goindex 343734b89b..136251973f 100644--- a/kernel/model/attribute_view_key_config.go+++ b/kernel/model/attribute_view_key_config.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_layout_spec_test.go b/kernel/model/attribute_view_layout_spec_test.goindex bb7c990543..1a12b3c6f3 100644--- a/kernel/model/attribute_view_layout_spec_test.go+++ b/kernel/model/attribute_view_layout_spec_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_legacy_map_test.go b/kernel/model/attribute_view_legacy_map_test.goindex 97925760d2..75354a2e0a 100644--- a/kernel/model/attribute_view_legacy_map_test.go+++ b/kernel/model/attribute_view_legacy_map_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_list.go b/kernel/model/attribute_view_list.goindex 967ef9b74f..3adcc19d82 100644--- a/kernel/model/attribute_view_list.go+++ b/kernel/model/attribute_view_list.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/attribute_view_list_fts5_test.go b/kernel/model/attribute_view_list_fts5_test.goindex 558f8992f0..93ba4a2dd1 100644--- a/kernel/model/attribute_view_list_fts5_test.go+++ b/kernel/model/attribute_view_list_fts5_test.go@@ -1,9 +1,9 @@-//go:build fts5--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5+package modelimport (diff --git a/kernel/model/attribute_view_list_test.go b/kernel/model/attribute_view_list_test.goindex 0537116671..ef949f26f8 100644--- a/kernel/model/attribute_view_list_test.go+++ b/kernel/model/attribute_view_list_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/attribute_view_location.go b/kernel/model/attribute_view_location.goindex 06976b76d2..87af638e81 100644--- a/kernel/model/attribute_view_location.go+++ b/kernel/model/attribute_view_location.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_location_export_test.go b/kernel/model/attribute_view_location_export_test.goindex f5a6cfa2ac..3f18baa6f8 100644--- a/kernel/model/attribute_view_location_export_test.go+++ b/kernel/model/attribute_view_location_export_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_location_import_test.go b/kernel/model/attribute_view_location_import_test.goindex f755db58ad..75fcd0d0cf 100644--- a/kernel/model/attribute_view_location_import_test.go+++ b/kernel/model/attribute_view_location_import_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_location_test.go b/kernel/model/attribute_view_location_test.goindex c7e6abebe2..b0e04e4f4e 100644--- a/kernel/model/attribute_view_location_test.go+++ b/kernel/model/attribute_view_location_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_lunar_test.go b/kernel/model/attribute_view_lunar_test.goindex c3c1758584..aba115fd4f 100644--- a/kernel/model/attribute_view_lunar_test.go+++ b/kernel/model/attribute_view_lunar_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_new_item.go b/kernel/model/attribute_view_new_item.goindex bdea34a4e8..6af660e21f 100644--- a/kernel/model/attribute_view_new_item.go+++ b/kernel/model/attribute_view_new_item.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_new_item_group_fts5_test.go b/kernel/model/attribute_view_new_item_group_fts5_test.goindex ca29b7d76c..3237b6a681 100644--- a/kernel/model/attribute_view_new_item_group_fts5_test.go+++ b/kernel/model/attribute_view_new_item_group_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_new_item_test.go b/kernel/model/attribute_view_new_item_test.goindex 0937664cd7..7f41c4ed27 100644--- a/kernel/model/attribute_view_new_item_test.go+++ b/kernel/model/attribute_view_new_item_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_option_undo.go b/kernel/model/attribute_view_option_undo.goindex 4034d132b3..c25b10670c 100644--- a/kernel/model/attribute_view_option_undo.go+++ b/kernel/model/attribute_view_option_undo.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_option_undo_fts5_test.go b/kernel/model/attribute_view_option_undo_fts5_test.goindex 4bb0846096..a63bceced1 100644--- a/kernel/model/attribute_view_option_undo_fts5_test.go+++ b/kernel/model/attribute_view_option_undo_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_options_test.go b/kernel/model/attribute_view_options_test.goindex 2f73ad2ed4..dea29a99c3 100644--- a/kernel/model/attribute_view_options_test.go+++ b/kernel/model/attribute_view_options_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_order_fingerprint.go b/kernel/model/attribute_view_order_fingerprint.goindex c6065534e4..73094f9b76 100644--- a/kernel/model/attribute_view_order_fingerprint.go+++ b/kernel/model/attribute_view_order_fingerprint.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_order_fingerprint_test.go b/kernel/model/attribute_view_order_fingerprint_test.goindex 9db696679d..3245227546 100644--- a/kernel/model/attribute_view_order_fingerprint_test.go+++ b/kernel/model/attribute_view_order_fingerprint_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_order_reuse.go b/kernel/model/attribute_view_order_reuse.goindex d6e7031a27..fd6a17cdd0 100644--- a/kernel/model/attribute_view_order_reuse.go+++ b/kernel/model/attribute_view_order_reuse.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_order_reuse_benchmark_test.go b/kernel/model/attribute_view_order_reuse_benchmark_test.goindex b19302a72e..e3df4f680b 100644--- a/kernel/model/attribute_view_order_reuse_benchmark_test.go+++ b/kernel/model/attribute_view_order_reuse_benchmark_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_order_reuse_test.go b/kernel/model/attribute_view_order_reuse_test.goindex 9f6ac8284a..efa5f1147a 100644--- a/kernel/model/attribute_view_order_reuse_test.go+++ b/kernel/model/attribute_view_order_reuse_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_output.go b/kernel/model/attribute_view_output.goindex 28e6295a41..ac6ed6d2d5 100644--- a/kernel/model/attribute_view_output.go+++ b/kernel/model/attribute_view_output.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_panel_visibility.go b/kernel/model/attribute_view_panel_visibility.goindex cf690dfb6e..32bff8d4f5 100644--- a/kernel/model/attribute_view_panel_visibility.go+++ b/kernel/model/attribute_view_panel_visibility.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_panel_visibility_fts5_test.go b/kernel/model/attribute_view_panel_visibility_fts5_test.goindex a0726cb686..2ad0ff5776 100644--- a/kernel/model/attribute_view_panel_visibility_fts5_test.go+++ b/kernel/model/attribute_view_panel_visibility_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_recovery_fts5_test.go b/kernel/model/attribute_view_recovery_fts5_test.goindex 0fdabb6144..a743ce5e74 100644--- a/kernel/model/attribute_view_recovery_fts5_test.go+++ b/kernel/model/attribute_view_recovery_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_ref_dynamic.go b/kernel/model/attribute_view_ref_dynamic.goindex 663d64944c..0d9f130278 100644--- a/kernel/model/attribute_view_ref_dynamic.go+++ b/kernel/model/attribute_view_ref_dynamic.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_ref_dynamic_test.go b/kernel/model/attribute_view_ref_dynamic_test.goindex d1c199a9b8..c16e29e3bb 100644--- a/kernel/model/attribute_view_ref_dynamic_test.go+++ b/kernel/model/attribute_view_ref_dynamic_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_ref_index.go b/kernel/model/attribute_view_ref_index.goindex 4f62219991..ead5fc87b2 100644--- a/kernel/model/attribute_view_ref_index.go+++ b/kernel/model/attribute_view_ref_index.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_ref_index_test.go b/kernel/model/attribute_view_ref_index_test.goindex 6d8e6bd163..a681e7502a 100644--- a/kernel/model/attribute_view_ref_index_test.go+++ b/kernel/model/attribute_view_ref_index_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_refresh_test.go b/kernel/model/attribute_view_refresh_test.goindex 3d8019c66a..4d05a328bf 100644--- a/kernel/model/attribute_view_refresh_test.go+++ b/kernel/model/attribute_view_refresh_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_relation_item.go b/kernel/model/attribute_view_relation_item.goindex d848ad20ac..80031cc1e7 100644--- a/kernel/model/attribute_view_relation_item.go+++ b/kernel/model/attribute_view_relation_item.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_relation_item_fts5_test.go b/kernel/model/attribute_view_relation_item_fts5_test.goindex 132b25ecc4..bc9cf80e20 100644--- a/kernel/model/attribute_view_relation_item_fts5_test.go+++ b/kernel/model/attribute_view_relation_item_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_relation_item_sqlcipher_test.go b/kernel/model/attribute_view_relation_item_sqlcipher_test.goindex b8629ef71c..d3dba0504d 100644--- a/kernel/model/attribute_view_relation_item_sqlcipher_test.go+++ b/kernel/model/attribute_view_relation_item_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/attribute_view_relation_rollup_test.go b/kernel/model/attribute_view_relation_rollup_test.goindex 5f33f6798e..fde4b8e8a3 100644--- a/kernel/model/attribute_view_relation_rollup_test.go+++ b/kernel/model/attribute_view_relation_rollup_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_relation_test.go b/kernel/model/attribute_view_relation_test.goindex 2b6ad39458..61b79e8626 100644--- a/kernel/model/attribute_view_relation_test.go+++ b/kernel/model/attribute_view_relation_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_relation_transaction_sqlcipher_test.go b/kernel/model/attribute_view_relation_transaction_sqlcipher_test.goindex be1ff21887..2f84c1770d 100644--- a/kernel/model/attribute_view_relation_transaction_sqlcipher_test.go+++ b/kernel/model/attribute_view_relation_transaction_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/attribute_view_relation_transaction_test.go b/kernel/model/attribute_view_relation_transaction_test.goindex 30120069c9..711f92424b 100644--- a/kernel/model/attribute_view_relation_transaction_test.go+++ b/kernel/model/attribute_view_relation_transaction_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_render.go b/kernel/model/attribute_view_render.goindex a012a586ae..cfa8816909 100644--- a/kernel/model/attribute_view_render.go+++ b/kernel/model/attribute_view_render.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_render_benchmark_test.go b/kernel/model/attribute_view_render_benchmark_test.goindex 7b30394863..7c1429afd7 100644--- a/kernel/model/attribute_view_render_benchmark_test.go+++ b/kernel/model/attribute_view_render_benchmark_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_render_target_test.go b/kernel/model/attribute_view_render_target_test.goindex 103ab0c412..cad9463e6b 100644--- a/kernel/model/attribute_view_render_target_test.go+++ b/kernel/model/attribute_view_render_target_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_render_test.go b/kernel/model/attribute_view_render_test.goindex 2a3c99d237..6f95a16fae 100644--- a/kernel/model/attribute_view_render_test.go+++ b/kernel/model/attribute_view_render_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_rich_history_test.go b/kernel/model/attribute_view_rich_history_test.goindex cf908c49d8..85e7ab77a5 100644--- a/kernel/model/attribute_view_rich_history_test.go+++ b/kernel/model/attribute_view_rich_history_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_row_sort.go b/kernel/model/attribute_view_row_sort.goindex 34e8e23097..c73c7eb807 100644--- a/kernel/model/attribute_view_row_sort.go+++ b/kernel/model/attribute_view_row_sort.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_row_sort_test.go b/kernel/model/attribute_view_row_sort_test.goindex e0bd6022ff..504dc9c25a 100644--- a/kernel/model/attribute_view_row_sort_test.go+++ b/kernel/model/attribute_view_row_sort_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_search_test.go b/kernel/model/attribute_view_search_test.goindex 284844d836..ef6db40534 100644--- a/kernel/model/attribute_view_search_test.go+++ b/kernel/model/attribute_view_search_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_security_test.go b/kernel/model/attribute_view_security_test.goindex 6da9c218a6..6ab59a9fcd 100644--- a/kernel/model/attribute_view_security_test.go+++ b/kernel/model/attribute_view_security_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_template_defer_test.go b/kernel/model/attribute_view_template_defer_test.goindex f80705a335..d926949eac 100644--- a/kernel/model/attribute_view_template_defer_test.go+++ b/kernel/model/attribute_view_template_defer_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_template_plan.go b/kernel/model/attribute_view_template_plan.goindex 6b9412a63a..3a31933a84 100644--- a/kernel/model/attribute_view_template_plan.go+++ b/kernel/model/attribute_view_template_plan.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_template_plan_benchmark_test.go b/kernel/model/attribute_view_template_plan_benchmark_test.goindex 5940bc2c76..1318b05feb 100644--- a/kernel/model/attribute_view_template_plan_benchmark_test.go+++ b/kernel/model/attribute_view_template_plan_benchmark_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_template_plan_test.go b/kernel/model/attribute_view_template_plan_test.goindex 92c10d1cfe..798c532c09 100644--- a/kernel/model/attribute_view_template_plan_test.go+++ b/kernel/model/attribute_view_template_plan_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/attribute_view_transaction.go b/kernel/model/attribute_view_transaction.goindex 16f5927f99..53d2541ffd 100644--- a/kernel/model/attribute_view_transaction.go+++ b/kernel/model/attribute_view_transaction.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_unused_test.go b/kernel/model/attribute_view_unused_test.goindex a77b622057..216815c1f0 100644--- a/kernel/model/attribute_view_unused_test.go+++ b/kernel/model/attribute_view_unused_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/attribute_view_validation_test.go b/kernel/model/attribute_view_validation_test.goindex 8d7461c100..c4c6c1e626 100644--- a/kernel/model/attribute_view_validation_test.go+++ b/kernel/model/attribute_view_validation_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_value_identity_test.go b/kernel/model/attribute_view_value_identity_test.goindex 20d50b50fa..ebc56f366b 100644--- a/kernel/model/attribute_view_value_identity_test.go+++ b/kernel/model/attribute_view_value_identity_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/attribute_view_visible_views_test.go b/kernel/model/attribute_view_visible_views_test.goindex 3ab55c83ef..cb89866f4d 100644--- a/kernel/model/attribute_view_visible_views_test.go+++ b/kernel/model/attribute_view_visible_views_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/auth.go b/kernel/model/auth.goindex 02d7bede97..a5d49f7121 100644--- a/kernel/model/auth.go+++ b/kernel/model/auth.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/auth_session.go b/kernel/model/auth_session.goindex cd6926e223..ab354c6d85 100644--- a/kernel/model/auth_session.go+++ b/kernel/model/auth_session.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/auth_test.go b/kernel/model/auth_test.goindex f778b3e340..5d7009e413 100644--- a/kernel/model/auth_test.go+++ b/kernel/model/auth_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/backlink.go b/kernel/model/backlink.goindex 8573dcfc3b..85a3e40723 100644--- a/kernel/model/backlink.go+++ b/kernel/model/backlink.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/backlink_attribute_view.go b/kernel/model/backlink_attribute_view.goindex 60fd7352b2..61aaabd74a 100644--- a/kernel/model/backlink_attribute_view.go+++ b/kernel/model/backlink_attribute_view.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/backlink_attribute_view_test.go b/kernel/model/backlink_attribute_view_test.goindex 88484d1893..776f16d853 100644--- a/kernel/model/backlink_attribute_view_test.go+++ b/kernel/model/backlink_attribute_view_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/backlink_database_filter.go b/kernel/model/backlink_database_filter.goindex 7da774f7bd..639b304e58 100644--- a/kernel/model/backlink_database_filter.go+++ b/kernel/model/backlink_database_filter.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/backlink_database_filter_fts5_test.go b/kernel/model/backlink_database_filter_fts5_test.goindex 5eb95a533e..cb965aefdb 100644--- a/kernel/model/backlink_database_filter_fts5_test.go+++ b/kernel/model/backlink_database_filter_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/backlink_database_filter_sqlcipher_test.go b/kernel/model/backlink_database_filter_sqlcipher_test.goindex 8f8b319a19..088bb73ca8 100644--- a/kernel/model/backlink_database_filter_sqlcipher_test.go+++ b/kernel/model/backlink_database_filter_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/backlink_database_filter_test.go b/kernel/model/backlink_database_filter_test.goindex 8c4e92b81b..928e3297db 100644--- a/kernel/model/backlink_database_filter_test.go+++ b/kernel/model/backlink_database_filter_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/backlink_global.go b/kernel/model/backlink_global.goindex 67934621aa..1da160409c 100644--- a/kernel/model/backlink_global.go+++ b/kernel/model/backlink_global.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/backlink_global_fts5_test.go b/kernel/model/backlink_global_fts5_test.goindex b0cc7acdcb..4bc9e6c818 100644--- a/kernel/model/backlink_global_fts5_test.go+++ b/kernel/model/backlink_global_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/backlink_mention_fts5_test.go b/kernel/model/backlink_mention_fts5_test.goindex 2e9016df14..806ecc9855 100644--- a/kernel/model/backlink_mention_fts5_test.go+++ b/kernel/model/backlink_mention_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/backlink_notification_fts5_test.go b/kernel/model/backlink_notification_fts5_test.goindex ed251bcf0d..5bec436d28 100644--- a/kernel/model/backlink_notification_fts5_test.go+++ b/kernel/model/backlink_notification_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/backlink_notification_test.go b/kernel/model/backlink_notification_test.goindex 812d767c21..ac2aecd182 100644--- a/kernel/model/backlink_notification_test.go+++ b/kernel/model/backlink_notification_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/backlink_options_fts5_test.go b/kernel/model/backlink_options_fts5_test.goindex 9a80de862e..e4f291b913 100644--- a/kernel/model/backlink_options_fts5_test.go+++ b/kernel/model/backlink_options_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/backlink_parent.go b/kernel/model/backlink_parent.goindex 79d0cde0ba..3445deee90 100644--- a/kernel/model/backlink_parent.go+++ b/kernel/model/backlink_parent.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/backlink_parent_test.go b/kernel/model/backlink_parent_test.goindex 6e7b95bd8b..3d281f4e25 100644--- a/kernel/model/backlink_parent_test.go+++ b/kernel/model/backlink_parent_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/backlink_ref_filter.go b/kernel/model/backlink_ref_filter.goindex 5104b416ef..c99838bd23 100644--- a/kernel/model/backlink_ref_filter.go+++ b/kernel/model/backlink_ref_filter.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/backlink_ref_filter_fts5_test.go b/kernel/model/backlink_ref_filter_fts5_test.goindex 6008d6d889..4a102e9cdf 100644--- a/kernel/model/backlink_ref_filter_fts5_test.go+++ b/kernel/model/backlink_ref_filter_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/backlink_ref_filter_test.go b/kernel/model/backlink_ref_filter_test.goindex 8b78d10dc2..9b960918e2 100644--- a/kernel/model/backlink_ref_filter_test.go+++ b/kernel/model/backlink_ref_filter_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/backlink_reference.go b/kernel/model/backlink_reference.goindex 0cca9f19c2..24dd3a10ee 100644--- a/kernel/model/backlink_reference.go+++ b/kernel/model/backlink_reference.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/backlink_reference_test.go b/kernel/model/backlink_reference_test.goindex 3c4cecb15d..f575d0df85 100644--- a/kernel/model/backlink_reference_test.go+++ b/kernel/model/backlink_reference_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/backlink_sort.go b/kernel/model/backlink_sort.goindex 6f5ce6899a..a58219a91a 100644--- a/kernel/model/backlink_sort.go+++ b/kernel/model/backlink_sort.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/backlink_sort_fts5_test.go b/kernel/model/backlink_sort_fts5_test.goindex 11f8a02739..84965a4588 100644--- a/kernel/model/backlink_sort_fts5_test.go+++ b/kernel/model/backlink_sort_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/backlink_sort_test.go b/kernel/model/backlink_sort_test.goindex 0106934628..60f1fbcc27 100644--- a/kernel/model/backlink_sort_test.go+++ b/kernel/model/backlink_sort_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/backlink_source_filter_test.go b/kernel/model/backlink_source_filter_test.goindex e95e1ad36e..74e117d4f8 100644--- a/kernel/model/backlink_source_filter_test.go+++ b/kernel/model/backlink_source_filter_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/backlink_test.go b/kernel/model/backlink_test.goindex 1a7be5d866..e5f6cf036f 100644--- a/kernel/model/backlink_test.go+++ b/kernel/model/backlink_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/batch_mutation.go b/kernel/model/batch_mutation.goindex 555bd72d6b..908e5582a9 100644--- a/kernel/model/batch_mutation.go+++ b/kernel/model/batch_mutation.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/batch_mutation_fts5_test.go b/kernel/model/batch_mutation_fts5_test.goindex 06dbfb7faa..ae5a5e4298 100644--- a/kernel/model/batch_mutation_fts5_test.go+++ b/kernel/model/batch_mutation_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/bazaar.go b/kernel/model/bazaar.goindex f88886c26b..4430805b96 100644--- a/kernel/model/bazaar.go+++ b/kernel/model/bazaar.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/bazaar_install.go b/kernel/model/bazaar_install.goindex a62ffd76cb..a2268bfe6d 100644--- a/kernel/model/bazaar_install.go+++ b/kernel/model/bazaar_install.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/bazaar_install_cancel_test.go b/kernel/model/bazaar_install_cancel_test.goindex 67e6856bac..f5d57a8226 100644--- a/kernel/model/bazaar_install_cancel_test.go+++ b/kernel/model/bazaar_install_cancel_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/bazaar_install_test.go b/kernel/model/bazaar_install_test.goindex 2aff6dae8b..33461145e4 100644--- a/kernel/model/bazaar_install_test.go+++ b/kernel/model/bazaar_install_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/bazaar_rating.go b/kernel/model/bazaar_rating.goindex 7edb2b09ac..a43d03ff90 100644--- a/kernel/model/bazaar_rating.go+++ b/kernel/model/bazaar_rating.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/bazaar_rating_test.go b/kernel/model/bazaar_rating_test.goindex 630817d1c0..baf6ed2bbe 100644--- a/kernel/model/bazaar_rating_test.go+++ b/kernel/model/bazaar_rating_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/bazaar_sync_test.go b/kernel/model/bazaar_sync_test.goindex 96eea68674..25f04a6f37 100644--- a/kernel/model/bazaar_sync_test.go+++ b/kernel/model/bazaar_sync_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/bazaar_test.go b/kernel/model/bazaar_test.goindex 891c060137..f4bf34adf6 100644--- a/kernel/model/bazaar_test.go+++ b/kernel/model/bazaar_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/bazaar_update_test.go b/kernel/model/bazaar_update_test.goindex e70576a6b6..9424edd6da 100644--- a/kernel/model/bazaar_update_test.go+++ b/kernel/model/bazaar_update_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/block.go b/kernel/model/block.goindex 44976fdf7f..494d138eeb 100644--- a/kernel/model/block.go+++ b/kernel/model/block.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/block_child_test.go b/kernel/model/block_child_test.goindex 622fb47642..c9818da7e8 100644--- a/kernel/model/block_child_test.go+++ b/kernel/model/block_child_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/block_container_test.go b/kernel/model/block_container_test.goindex 2ca80e3e9e..0fa8edb4a6 100644--- a/kernel/model/block_container_test.go+++ b/kernel/model/block_container_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport "testing"diff --git a/kernel/model/block_embed_test.go b/kernel/model/block_embed_test.goindex e87838f27c..d82c65f2df 100644--- a/kernel/model/block_embed_test.go+++ b/kernel/model/block_embed_test.go@@ -1,17 +1,6 @@-// Copyright (c) 2026, peterq.cn (b3log.org)-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/block_kramdown_test.go b/kernel/model/block_kramdown_test.goindex 7f589d3dec..ab1926219b 100644--- a/kernel/model/block_kramdown_test.go+++ b/kernel/model/block_kramdown_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/block_operation.go b/kernel/model/block_operation.goindex a33973c86b..f77ad0c6e4 100644--- a/kernel/model/block_operation.go+++ b/kernel/model/block_operation.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/block_operation_test.go b/kernel/model/block_operation_test.goindex 34d16c8b99..02db44b89f 100644--- a/kernel/model/block_operation_test.go+++ b/kernel/model/block_operation_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build fts5diff --git a/kernel/model/block_ref_check_test.go b/kernel/model/block_ref_check_test.goindex 93ed3d8cfd..4cdc772c6c 100644--- a/kernel/model/block_ref_check_test.go+++ b/kernel/model/block_ref_check_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/block_swap_test.go b/kernel/model/block_swap_test.goindex 6afbb654bb..dd0b25ab56 100644--- a/kernel/model/block_swap_test.go+++ b/kernel/model/block_swap_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/block_update.go b/kernel/model/block_update.goindex ad528f402a..40923bab0d 100644--- a/kernel/model/block_update.go+++ b/kernel/model/block_update.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/block_update_fts5_test.go b/kernel/model/block_update_fts5_test.goindex eab671c3c1..6b98734f0c 100644--- a/kernel/model/block_update_fts5_test.go+++ b/kernel/model/block_update_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/block_update_test.go b/kernel/model/block_update_test.goindex 7041052551..c527082621 100644--- a/kernel/model/block_update_test.go+++ b/kernel/model/block_update_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/blockial.go b/kernel/model/blockial.goindex b878b80e91..33fb817a12 100644--- a/kernel/model/blockial.go+++ b/kernel/model/blockial.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/blockial_batch_test.go b/kernel/model/blockial_batch_test.goindex c1b8a159f7..5d3afa168f 100644--- a/kernel/model/blockial_batch_test.go+++ b/kernel/model/blockial_batch_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/blockial_fold_test.go b/kernel/model/blockial_fold_test.goindex a09d4f90a9..23a6e1ced5 100644--- a/kernel/model/blockial_fold_test.go+++ b/kernel/model/blockial_fold_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/blockinfo.go b/kernel/model/blockinfo.goindex ec1faab6ee..e62182ed3c 100644--- a/kernel/model/blockinfo.go+++ b/kernel/model/blockinfo.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/blockinfo_test.go b/kernel/model/blockinfo_test.goindex 171665259d..afcf409379 100644--- a/kernel/model/blockinfo_test.go+++ b/kernel/model/blockinfo_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/bookmark.go b/kernel/model/bookmark.goindex 3ac465665d..faf42fcb33 100644--- a/kernel/model/bookmark.go+++ b/kernel/model/bookmark.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/bookmark_test.go b/kernel/model/bookmark_test.goindex 3fabe8e6b1..80a04b6857 100644--- a/kernel/model/bookmark_test.go+++ b/kernel/model/bookmark_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/boot_appearance.go b/kernel/model/boot_appearance.goindex b292be47a2..ec34384da5 100644--- a/kernel/model/boot_appearance.go+++ b/kernel/model/boot_appearance.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/boot_appearance_test.go b/kernel/model/boot_appearance_test.goindex 1d2965a5ed..b0e402bba9 100644--- a/kernel/model/boot_appearance_test.go+++ b/kernel/model/boot_appearance_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/boot_sync.go b/kernel/model/boot_sync.goindex fe340bfe86..816d5ead32 100644--- a/kernel/model/boot_sync.go+++ b/kernel/model/boot_sync.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/boot_sync_attribute_view_fts5_test.go b/kernel/model/boot_sync_attribute_view_fts5_test.goindex cbfdcd2c1c..f4ad57c6d1 100644--- a/kernel/model/boot_sync_attribute_view_fts5_test.go+++ b/kernel/model/boot_sync_attribute_view_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/boot_sync_test.go b/kernel/model/boot_sync_test.goindex d2715c2231..c6ef97783d 100644--- a/kernel/model/boot_sync_test.go+++ b/kernel/model/boot_sync_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/box.go b/kernel/model/box.goindex 8dd3b38bf3..722819510c 100644--- a/kernel/model/box.go+++ b/kernel/model/box.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/box_conf_crypto.go b/kernel/model/box_conf_crypto.goindex c9251c0d94..cde4914021 100644--- a/kernel/model/box_conf_crypto.go+++ b/kernel/model/box_conf_crypto.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/box_conf_crypto_test.go b/kernel/model/box_conf_crypto_test.goindex 117c25b581..cee3b9c75e 100644--- a/kernel/model/box_conf_crypto_test.go+++ b/kernel/model/box_conf_crypto_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/box_doc.go b/kernel/model/box_doc.goindex ff8f5d76ea..7b0d5e59a0 100644--- a/kernel/model/box_doc.go+++ b/kernel/model/box_doc.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/box_doc_test.go b/kernel/model/box_doc_test.goindex c894713308..f34b10d9fe 100644--- a/kernel/model/box_doc_test.go+++ b/kernel/model/box_doc_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/box_icon_test.go b/kernel/model/box_icon_test.goindex cb60981068..7fb32a450b 100644--- a/kernel/model/box_icon_test.go+++ b/kernel/model/box_icon_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/box_list_test.go b/kernel/model/box_list_test.goindex 2a5794c048..e6c061ae09 100644--- a/kernel/model/box_list_test.go+++ b/kernel/model/box_list_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/box_mindmap_test.go b/kernel/model/box_mindmap_test.goindex 16cdf8494d..8b109005f5 100644--- a/kernel/model/box_mindmap_test.go+++ b/kernel/model/box_mindmap_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/box_temp_test.go b/kernel/model/box_temp_test.goindex c4f48c14bc..483b313373 100644--- a/kernel/model/box_temp_test.go+++ b/kernel/model/box_temp_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/caldav.go b/kernel/model/caldav.goindex f4f86d0cef..6593648bd4 100644--- a/kernel/model/caldav.go+++ b/kernel/model/caldav.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/caldav_query_test.go b/kernel/model/caldav_query_test.goindex 136d7bee5e..10b7e3c230 100644--- a/kernel/model/caldav_query_test.go+++ b/kernel/model/caldav_query_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/callout_reference_fts5_test.go b/kernel/model/callout_reference_fts5_test.goindex 0bafbdbadb..fffc724d4e 100644--- a/kernel/model/callout_reference_fts5_test.go+++ b/kernel/model/callout_reference_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/callout_reference_sqlcipher_test.go b/kernel/model/callout_reference_sqlcipher_test.goindex 71b42aa4fb..1df94d1afa 100644--- a/kernel/model/callout_reference_sqlcipher_test.go+++ b/kernel/model/callout_reference_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/callout_reference_test.go b/kernel/model/callout_reference_test.goindex 27975ce9a5..0bb78bf491 100644--- a/kernel/model/callout_reference_test.go+++ b/kernel/model/callout_reference_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/carddav.go b/kernel/model/carddav.goindex aeccaf20c6..c44c6af526 100644--- a/kernel/model/carddav.go+++ b/kernel/model/carddav.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/chatgpt.go b/kernel/model/chatgpt.goindex ff9b3bb0bb..4f6adcc046 100644--- a/kernel/model/chatgpt.go+++ b/kernel/model/chatgpt.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/chatgpt_test.go b/kernel/model/chatgpt_test.goindex 0c7129fbb9..486280e0fe 100644--- a/kernel/model/chatgpt_test.go+++ b/kernel/model/chatgpt_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/clipboard.go b/kernel/model/clipboard.goindex b7fe56efc0..d02485bd5f 100644--- a/kernel/model/clipboard.go+++ b/kernel/model/clipboard.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/clipboard_paste.go b/kernel/model/clipboard_paste.goindex b64a1d33ba..c6bb53725a 100644--- a/kernel/model/clipboard_paste.go+++ b/kernel/model/clipboard_paste.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/clipboard_paste_test.go b/kernel/model/clipboard_paste_test.goindex 4981827cec..cd19363dbc 100644--- a/kernel/model/clipboard_paste_test.go+++ b/kernel/model/clipboard_paste_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/clipboard_test.go b/kernel/model/clipboard_test.goindex 1d49d81c0b..f401ad1506 100644--- a/kernel/model/clipboard_test.go+++ b/kernel/model/clipboard_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/cloud_account_auth.go b/kernel/model/cloud_account_auth.goindex 48ce468384..ea02649ae5 100644--- a/kernel/model/cloud_account_auth.go+++ b/kernel/model/cloud_account_auth.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/cloud_account_auth_test.go b/kernel/model/cloud_account_auth_test.goindex 6a1e2f2525..6459dc8b80 100644--- a/kernel/model/cloud_account_auth_test.go+++ b/kernel/model/cloud_account_auth_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/cloud_service.go b/kernel/model/cloud_service.goindex 8c1de09847..6c37151d5e 100644--- a/kernel/model/cloud_service.go+++ b/kernel/model/cloud_service.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/cloud_service_asset_source_test.go b/kernel/model/cloud_service_asset_source_test.goindex 32b30692e0..fcb563278f 100644--- a/kernel/model/cloud_service_asset_source_test.go+++ b/kernel/model/cloud_service_asset_source_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/cloud_service_login_test.go b/kernel/model/cloud_service_login_test.goindex d17bd75ef7..5226f23af5 100644--- a/kernel/model/cloud_service_login_test.go+++ b/kernel/model/cloud_service_login_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/cloud_user_cached_test.go b/kernel/model/cloud_user_cached_test.goindex ca3d0e0ef0..14b844f773 100644--- a/kernel/model/cloud_user_cached_test.go+++ b/kernel/model/cloud_user_cached_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex 33a2c350b4..43934a3b62 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/conf_archive_regression_test.go b/kernel/model/conf_archive_regression_test.goindex fd5185ffa2..d6d21c06b3 100644--- a/kernel/model/conf_archive_regression_test.go+++ b/kernel/model/conf_archive_regression_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/conf_consistency_test.go b/kernel/model/conf_consistency_test.goindex 126258b1be..ad4a7730a0 100644--- a/kernel/model/conf_consistency_test.go+++ b/kernel/model/conf_consistency_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/conf_defaults_test.go b/kernel/model/conf_defaults_test.goindex 3c1e9844d6..63978e1efb 100644--- a/kernel/model/conf_defaults_test.go+++ b/kernel/model/conf_defaults_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/conf_migration.go b/kernel/model/conf_migration.goindex 40a4b5f373..8b2ec9ca18 100644--- a/kernel/model/conf_migration.go+++ b/kernel/model/conf_migration.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/conf_migration_docx_test.go b/kernel/model/conf_migration_docx_test.goindex c22e3cc833..6651b228af 100644--- a/kernel/model/conf_migration_docx_test.go+++ b/kernel/model/conf_migration_docx_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/conf_normalize.go b/kernel/model/conf_normalize.goindex 013e5d7b67..4fd400b3c0 100644--- a/kernel/model/conf_normalize.go+++ b/kernel/model/conf_normalize.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/conf_notify.go b/kernel/model/conf_notify.goindex cf33c99fed..2dd1913565 100644--- a/kernel/model/conf_notify.go+++ b/kernel/model/conf_notify.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/conf_notify_test.go b/kernel/model/conf_notify_test.goindex c84743578b..7a49c612d5 100644--- a/kernel/model/conf_notify_test.go+++ b/kernel/model/conf_notify_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport "testing"diff --git a/kernel/model/conf_patch.go b/kernel/model/conf_patch.goindex 5208d4faab..9307c0b65f 100644--- a/kernel/model/conf_patch.go+++ b/kernel/model/conf_patch.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/conf_patch_test.go b/kernel/model/conf_patch_test.goindex 186b2dd416..0b615b2000 100644--- a/kernel/model/conf_patch_test.go+++ b/kernel/model/conf_patch_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/conf_regression_test.go b/kernel/model/conf_regression_test.goindex 55a0c30858..3b0d4e225c 100644--- a/kernel/model/conf_regression_test.go+++ b/kernel/model/conf_regression_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/conf_runtime.go b/kernel/model/conf_runtime.goindex 826c1e00db..f41d30607b 100644--- a/kernel/model/conf_runtime.go+++ b/kernel/model/conf_runtime.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/conf_save_test.go b/kernel/model/conf_save_test.goindex 004728219b..dceb963cc2 100644--- a/kernel/model/conf_save_test.go+++ b/kernel/model/conf_save_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/conf_secret_test.go b/kernel/model/conf_secret_test.goindex dacde30d88..b9ddfa59dc 100644--- a/kernel/model/conf_secret_test.go+++ b/kernel/model/conf_secret_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/conf_section.go b/kernel/model/conf_section.goindex 8e286c2f5c..c4967ae866 100644--- a/kernel/model/conf_section.go+++ b/kernel/model/conf_section.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/conf_server_addrs_test.go b/kernel/model/conf_server_addrs_test.goindex a417971b24..9f0ea3d67f 100644--- a/kernel/model/conf_server_addrs_test.go+++ b/kernel/model/conf_server_addrs_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/conf_snapshot.go b/kernel/model/conf_snapshot.goindex 4d4f065e4c..09a0d17caa 100644--- a/kernel/model/conf_snapshot.go+++ b/kernel/model/conf_snapshot.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/conf_spec.go b/kernel/model/conf_spec.goindex f5626891c2..224ae4293f 100644--- a/kernel/model/conf_spec.go+++ b/kernel/model/conf_spec.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/conf_specs.go b/kernel/model/conf_specs.goindex f2a8c63f8e..6cfc9849f1 100644--- a/kernel/model/conf_specs.go+++ b/kernel/model/conf_specs.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/conf_sync_review_test.go b/kernel/model/conf_sync_review_test.goindex b1dffc16ae..df6cf9a309 100644--- a/kernel/model/conf_sync_review_test.go+++ b/kernel/model/conf_sync_review_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/crypto.go b/kernel/model/crypto.goindex 28b5cef0c0..21e93c28d0 100644--- a/kernel/model/crypto.go+++ b/kernel/model/crypto.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/crypto_asset_legacy_test.go b/kernel/model/crypto_asset_legacy_test.goindex d5185d2f12..d6a64622ee 100644--- a/kernel/model/crypto_asset_legacy_test.go+++ b/kernel/model/crypto_asset_legacy_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/crypto_create_sqlcipher_test.go b/kernel/model/crypto_create_sqlcipher_test.goindex de80fa9e5f..664e871bf6 100644--- a/kernel/model/crypto_create_sqlcipher_test.go+++ b/kernel/model/crypto_create_sqlcipher_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build sqlcipher || libsqlcipherdiff --git a/kernel/model/crypto_history_keys.go b/kernel/model/crypto_history_keys.goindex a148326857..6607d22eb1 100644--- a/kernel/model/crypto_history_keys.go+++ b/kernel/model/crypto_history_keys.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/crypto_lifecycle.go b/kernel/model/crypto_lifecycle.goindex b4d2681f3a..0f638da6be 100644--- a/kernel/model/crypto_lifecycle.go+++ b/kernel/model/crypto_lifecycle.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/crypto_lifecycle_test.go b/kernel/model/crypto_lifecycle_test.goindex ecb710cfee..087ee057e5 100644--- a/kernel/model/crypto_lifecycle_test.go+++ b/kernel/model/crypto_lifecycle_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/crypto_regression_test.go b/kernel/model/crypto_regression_test.goindex 04dd1b6c29..c23bcefab6 100644--- a/kernel/model/crypto_regression_test.go+++ b/kernel/model/crypto_regression_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/crypto_system_lock.go b/kernel/model/crypto_system_lock.goindex 363e255a4e..b85c481642 100644--- a/kernel/model/crypto_system_lock.go+++ b/kernel/model/crypto_system_lock.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport "github.com/siyuan-note/siyuan/kernel/conf"diff --git a/kernel/model/crypto_test.go b/kernel/model/crypto_test.goindex 8b43717d6a..9e86933c15 100644--- a/kernel/model/crypto_test.go+++ b/kernel/model/crypto_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/custom_attributes.go b/kernel/model/custom_attributes.goindex e9ba66bf2b..6c3dd70821 100644--- a/kernel/model/custom_attributes.go+++ b/kernel/model/custom_attributes.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelconst (diff --git a/kernel/model/daily_note.go b/kernel/model/daily_note.goindex 5f622355e7..f2832f29ed 100644--- a/kernel/model/daily_note.go+++ b/kernel/model/daily_note.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/daily_note_fts5_test.go b/kernel/model/daily_note_fts5_test.goindex f2e53b99fb..3ecdde448b 100644--- a/kernel/model/daily_note_fts5_test.go+++ b/kernel/model/daily_note_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/database_fixture_fts5_test.go b/kernel/model/database_fixture_fts5_test.goindex 3501a23ff0..3565edecf8 100644--- a/kernel/model/database_fixture_fts5_test.go+++ b/kernel/model/database_fixture_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/dav.go b/kernel/model/dav.goindex b24cf7ba27..40b6c3a7aa 100644--- a/kernel/model/dav.go+++ b/kernel/model/dav.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/dav_conditions_test.go b/kernel/model/dav_conditions_test.goindex 8daeded4df..b3164d6f6a 100644--- a/kernel/model/dav_conditions_test.go+++ b/kernel/model/dav_conditions_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/dav_delete_test.go b/kernel/model/dav_delete_test.goindex 345dcaeaf8..aaae7ef5b8 100644--- a/kernel/model/dav_delete_test.go+++ b/kernel/model/dav_delete_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/dav_etag_test.go b/kernel/model/dav_etag_test.goindex 03ced64bcb..4ada4cd878 100644--- a/kernel/model/dav_etag_test.go+++ b/kernel/model/dav_etag_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/dav_persistence_test.go b/kernel/model/dav_persistence_test.goindex 18d50ce8ec..08d81d7073 100644--- a/kernel/model/dav_persistence_test.go+++ b/kernel/model/dav_persistence_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/dav_sync_test.go b/kernel/model/dav_sync_test.goindex bb65265013..983de832af 100644--- a/kernel/model/dav_sync_test.go+++ b/kernel/model/dav_sync_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/delete_stress_fts5_test.go b/kernel/model/delete_stress_fts5_test.goindex 80e575d21d..3da11a9c0f 100644--- a/kernel/model/delete_stress_fts5_test.go+++ b/kernel/model/delete_stress_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/desktop_ui_process.go b/kernel/model/desktop_ui_process.goindex ca8e5cb742..9ae403e629 100644--- a/kernel/model/desktop_ui_process.go+++ b/kernel/model/desktop_ui_process.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/desktop_ui_process_test.go b/kernel/model/desktop_ui_process_test.goindex 888dd47b13..4b6707fc43 100644--- a/kernel/model/desktop_ui_process_test.go+++ b/kernel/model/desktop_ui_process_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/doc_count.go b/kernel/model/doc_count.goindex 7050a95252..6ac5a34bfe 100644--- a/kernel/model/doc_count.go+++ b/kernel/model/doc_count.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_addressing.go b/kernel/model/document_addressing.goindex 1fb8d471d8..5fdfbe6f70 100644--- a/kernel/model/document_addressing.go+++ b/kernel/model/document_addressing.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_addressing_crypto_test.go b/kernel/model/document_addressing_crypto_test.goindex 428779b384..206c296e4e 100644--- a/kernel/model/document_addressing_crypto_test.go+++ b/kernel/model/document_addressing_crypto_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_addressing_file.go b/kernel/model/document_addressing_file.goindex 8a631db861..dcd92dd869 100644--- a/kernel/model/document_addressing_file.go+++ b/kernel/model/document_addressing_file.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_addressing_file_test.go b/kernel/model/document_addressing_file_test.goindex 784d246cb4..721630ae22 100644--- a/kernel/model/document_addressing_file_test.go+++ b/kernel/model/document_addressing_file_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_addressing_file_windows_test.go b/kernel/model/document_addressing_file_windows_test.goindex b54b442b9e..e650997946 100644--- a/kernel/model/document_addressing_file_windows_test.go+++ b/kernel/model/document_addressing_file_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_addressing_fts5_test.go b/kernel/model/document_addressing_fts5_test.goindex e31625bd61..50c01ff661 100644--- a/kernel/model/document_addressing_fts5_test.go+++ b/kernel/model/document_addressing_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/document_addressing_preflight_test.go b/kernel/model/document_addressing_preflight_test.goindex 06e2c897f7..f3683217d5 100644--- a/kernel/model/document_addressing_preflight_test.go+++ b/kernel/model/document_addressing_preflight_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_addressing_source.go b/kernel/model/document_addressing_source.goindex 7b749439e7..4172be0bfa 100644--- a/kernel/model/document_addressing_source.go+++ b/kernel/model/document_addressing_source.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_addressing_source_test.go b/kernel/model/document_addressing_source_test.goindex 666d445e68..f8d2811628 100644--- a/kernel/model/document_addressing_source_test.go+++ b/kernel/model/document_addressing_source_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_addressing_source_windows_test.go b/kernel/model/document_addressing_source_windows_test.goindex 1db0cc65a5..695bb04456 100644--- a/kernel/model/document_addressing_source_windows_test.go+++ b/kernel/model/document_addressing_source_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_addressing_test.go b/kernel/model/document_addressing_test.goindex 9dffbba113..49ee22ac7b 100644--- a/kernel/model/document_addressing_test.go+++ b/kernel/model/document_addressing_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_conversion.go b/kernel/model/document_conversion.goindex c51dfc0b47..2673e9a6e8 100644--- a/kernel/model/document_conversion.go+++ b/kernel/model/document_conversion.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_conversion_fts5_test.go b/kernel/model/document_conversion_fts5_test.goindex 6e34b92c4f..4982855c0d 100644--- a/kernel/model/document_conversion_fts5_test.go+++ b/kernel/model/document_conversion_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/document_conversion_sqlcipher_test.go b/kernel/model/document_conversion_sqlcipher_test.goindex 88b15c0bf5..daa4cda049 100644--- a/kernel/model/document_conversion_sqlcipher_test.go+++ b/kernel/model/document_conversion_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && sqlcipherpackage modeldiff --git a/kernel/model/document_create.go b/kernel/model/document_create.goindex 6448914eab..d406394673 100644--- a/kernel/model/document_create.go+++ b/kernel/model/document_create.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/document_create_test.go b/kernel/model/document_create_test.goindex 6a9a1bdef2..6035b6b75f 100644--- a/kernel/model/document_create_test.go+++ b/kernel/model/document_create_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/document_history_fts5_test.go b/kernel/model/document_history_fts5_test.goindex ad08647ad4..1fc2180784 100644--- a/kernel/model/document_history_fts5_test.go+++ b/kernel/model/document_history_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/document_legacy.go b/kernel/model/document_legacy.goindex 1e40d81fdb..6727dc78ef 100644--- a/kernel/model/document_legacy.go+++ b/kernel/model/document_legacy.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_legacy_cleanup_test.go b/kernel/model/document_legacy_cleanup_test.goindex b9936d71cd..48b20ee51c 100644--- a/kernel/model/document_legacy_cleanup_test.go+++ b/kernel/model/document_legacy_cleanup_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_legacy_create.go b/kernel/model/document_legacy_create.goindex 037326c34c..ba8c9959c1 100644--- a/kernel/model/document_legacy_create.go+++ b/kernel/model/document_legacy_create.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_legacy_test.go b/kernel/model/document_legacy_test.goindex a2baac1cce..1a9cf2e5d4 100644--- a/kernel/model/document_legacy_test.go+++ b/kernel/model/document_legacy_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/document_metadata.go b/kernel/model/document_metadata.goindex 73d6799bb2..e5ff50d770 100644--- a/kernel/model/document_metadata.go+++ b/kernel/model/document_metadata.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/document_metadata_test.go b/kernel/model/document_metadata_test.goindex d5c15195e5..4507634905 100644--- a/kernel/model/document_metadata_test.go+++ b/kernel/model/document_metadata_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/document_move.go b/kernel/model/document_move.goindex 145342df92..c72ee69d80 100644--- a/kernel/model/document_move.go+++ b/kernel/model/document_move.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_move_crypto_test.go b/kernel/model/document_move_crypto_test.goindex 58e15f3b36..2dd676c493 100644--- a/kernel/model/document_move_crypto_test.go+++ b/kernel/model/document_move_crypto_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/document_move_failure_test.go b/kernel/model/document_move_failure_test.goindex 73c108697d..5f52645aea 100644--- a/kernel/model/document_move_failure_test.go+++ b/kernel/model/document_move_failure_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/document_move_test.go b/kernel/model/document_move_test.goindex c1ac5cb4c0..040ff06a1f 100644--- a/kernel/model/document_move_test.go+++ b/kernel/model/document_move_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/document_path.go b/kernel/model/document_path.goindex ad0b5d7453..643c600dd0 100644--- a/kernel/model/document_path.go+++ b/kernel/model/document_path.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/document_path_test.go b/kernel/model/document_path_test.goindex 0145b6450f..afe6b77141 100644--- a/kernel/model/document_path_test.go+++ b/kernel/model/document_path_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_plan.go b/kernel/model/document_plan.goindex 114de78221..159a1500bd 100644--- a/kernel/model/document_plan.go+++ b/kernel/model/document_plan.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_plan_batch.go b/kernel/model/document_plan_batch.goindex dbeb9226dc..f823be019a 100644--- a/kernel/model/document_plan_batch.go+++ b/kernel/model/document_plan_batch.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package model// coalesceDocumentPlanAncestors 在同一次批量业务计划中合并缺失祖先,保留每篇最终文档的身份。diff --git a/kernel/model/document_plan_batch_test.go b/kernel/model/document_plan_batch_test.goindex 871bccda78..3c38022ba8 100644--- a/kernel/model/document_plan_batch_test.go+++ b/kernel/model/document_plan_batch_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_plan_test.go b/kernel/model/document_plan_test.goindex cf1f7cd8b3..d0ab9be31e 100644--- a/kernel/model/document_plan_test.go+++ b/kernel/model/document_plan_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/document_read_boundary.go b/kernel/model/document_read_boundary.goindex bfed668440..08cdd6c524 100644--- a/kernel/model/document_read_boundary.go+++ b/kernel/model/document_read_boundary.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_read_boundary_benchmark_test.go b/kernel/model/document_read_boundary_benchmark_test.goindex 5862624013..2e43cc9361 100644--- a/kernel/model/document_read_boundary_benchmark_test.go+++ b/kernel/model/document_read_boundary_benchmark_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_read_boundary_fts5_test.go b/kernel/model/document_read_boundary_fts5_test.goindex 9ccebccb3a..b699e3e867 100644--- a/kernel/model/document_read_boundary_fts5_test.go+++ b/kernel/model/document_read_boundary_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/document_read_boundary_sqlcipher_test.go b/kernel/model/document_read_boundary_sqlcipher_test.goindex df52692bd5..a5cec9ffd3 100644--- a/kernel/model/document_read_boundary_sqlcipher_test.go+++ b/kernel/model/document_read_boundary_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/document_read_boundary_test.go b/kernel/model/document_read_boundary_test.goindex 33c7763859..1acc3c1d93 100644--- a/kernel/model/document_read_boundary_test.go+++ b/kernel/model/document_read_boundary_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_source_journal.go b/kernel/model/document_source_journal.goindex 2cf41659d8..3300c65e58 100644--- a/kernel/model/document_source_journal.go+++ b/kernel/model/document_source_journal.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_source_journal_test.go b/kernel/model/document_source_journal_test.goindex 5fbaf28843..787c94829a 100644--- a/kernel/model/document_source_journal_test.go+++ b/kernel/model/document_source_journal_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/document_stat.go b/kernel/model/document_stat.goindex 2973001b2f..7a70497535 100644--- a/kernel/model/document_stat.go+++ b/kernel/model/document_stat.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/document_stat_test.go b/kernel/model/document_stat_test.goindex ae09499051..35d5310eb2 100644--- a/kernel/model/document_stat_test.go+++ b/kernel/model/document_stat_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/document_target.go b/kernel/model/document_target.goindex 6d7edecbe9..76677f69e0 100644--- a/kernel/model/document_target.go+++ b/kernel/model/document_target.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/duplicate_doc_hpath_test.go b/kernel/model/duplicate_doc_hpath_test.goindex 627d8eb2bb..fc57cf1dd6 100644--- a/kernel/model/duplicate_doc_hpath_test.go+++ b/kernel/model/duplicate_doc_hpath_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/duplicate_doc_tree.go b/kernel/model/duplicate_doc_tree.goindex 3e3f851ffa..8e269abb55 100644--- a/kernel/model/duplicate_doc_tree.go+++ b/kernel/model/duplicate_doc_tree.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/duplicate_doc_tree_test.go b/kernel/model/duplicate_doc_tree_test.goindex eb209da375..b8f9989fb6 100644--- a/kernel/model/duplicate_doc_tree_test.go+++ b/kernel/model/duplicate_doc_tree_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/elevator.go b/kernel/model/elevator.goindex 029dab3583..9bbb51732b 100644--- a/kernel/model/elevator.go+++ b/kernel/model/elevator.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build !windowsdiff --git a/kernel/model/elevator_windows.go b/kernel/model/elevator_windows.goindex 0497bfd32f..c917722443 100644--- a/kernel/model/elevator_windows.go+++ b/kernel/model/elevator_windows.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build windowsdiff --git a/kernel/model/embed_heading.go b/kernel/model/embed_heading.goindex 45eb768cdb..37cac486cb 100644--- a/kernel/model/embed_heading.go+++ b/kernel/model/embed_heading.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/embed_heading_export_test.go b/kernel/model/embed_heading_export_test.goindex 4324f54350..826528df58 100644--- a/kernel/model/embed_heading_export_test.go+++ b/kernel/model/embed_heading_export_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build fts5diff --git a/kernel/model/embed_heading_test.go b/kernel/model/embed_heading_test.goindex 620ab1c322..25653434fd 100644--- a/kernel/model/embed_heading_test.go+++ b/kernel/model/embed_heading_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/embedding.go b/kernel/model/embedding.goindex 7c0b9e6154..1fc3e52318 100644--- a/kernel/model/embedding.go+++ b/kernel/model/embedding.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/embedding_ignore_test.go b/kernel/model/embedding_ignore_test.goindex 517f589b4d..ab7b33727f 100644--- a/kernel/model/embedding_ignore_test.go+++ b/kernel/model/embedding_ignore_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/embedding_queue_test.go b/kernel/model/embedding_queue_test.goindex a8d72bb7c2..8c41b88320 100644--- a/kernel/model/embedding_queue_test.go+++ b/kernel/model/embedding_queue_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/embedding_space_fts5_test.go b/kernel/model/embedding_space_fts5_test.goindex 463a9f4897..09c47b9532 100644--- a/kernel/model/embedding_space_fts5_test.go+++ b/kernel/model/embedding_space_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/embedding_store.go b/kernel/model/embedding_store.goindex c5f2a05fbe..acfb16748e 100644--- a/kernel/model/embedding_store.go+++ b/kernel/model/embedding_store.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package model// 写入时在同一 SQL 中验证内容及更新时间,避免查询与写入之间发生编辑而产生过期索引。diff --git a/kernel/model/embedding_store_test.go b/kernel/model/embedding_store_test.goindex 51f15980ac..346cbff76a 100644--- a/kernel/model/embedding_store_test.go+++ b/kernel/model/embedding_store_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/emojis_watcher.go b/kernel/model/emojis_watcher.goindex bc41f7d9cd..3a7a9af79a 100644--- a/kernel/model/emojis_watcher.go+++ b/kernel/model/emojis_watcher.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build !darwindiff --git a/kernel/model/emojis_watcher_darwin.go b/kernel/model/emojis_watcher_darwin.goindex 3e021884ea..40c30db920 100644--- a/kernel/model/emojis_watcher_darwin.go+++ b/kernel/model/emojis_watcher_darwin.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build darwindiff --git a/kernel/model/encrypted_assets_cleanup.go b/kernel/model/encrypted_assets_cleanup.goindex 5904648a29..ca9a2d0e6c 100644--- a/kernel/model/encrypted_assets_cleanup.go+++ b/kernel/model/encrypted_assets_cleanup.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/encrypted_assets_cleanup_test.go b/kernel/model/encrypted_assets_cleanup_test.goindex 9fd1d8fc75..1d1632a0c1 100644--- a/kernel/model/encrypted_assets_cleanup_test.go+++ b/kernel/model/encrypted_assets_cleanup_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/encrypted_export.go b/kernel/model/encrypted_export.goindex d0f1d05e66..d38f064876 100644--- a/kernel/model/encrypted_export.go+++ b/kernel/model/encrypted_export.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/encrypted_export_test.go b/kernel/model/encrypted_export_test.goindex 95b3207b4c..abf2f9f376 100644--- a/kernel/model/encrypted_export_test.go+++ b/kernel/model/encrypted_export_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/encrypted_history_index_test.go b/kernel/model/encrypted_history_index_test.goindex 9973982144..7f343368d2 100644--- a/kernel/model/encrypted_history_index_test.go+++ b/kernel/model/encrypted_history_index_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/encrypted_index.go b/kernel/model/encrypted_index.goindex 10713e7449..60fce3cb4c 100644--- a/kernel/model/encrypted_index.go+++ b/kernel/model/encrypted_index.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/encrypted_ops.go b/kernel/model/encrypted_ops.goindex 7d0d4fd96d..927387aa3f 100644--- a/kernel/model/encrypted_ops.go+++ b/kernel/model/encrypted_ops.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/escape_contract_test.go b/kernel/model/escape_contract_test.goindex 3b61bafa51..02d6f84871 100644--- a/kernel/model/escape_contract_test.go+++ b/kernel/model/escape_contract_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/exit_retry_test.go b/kernel/model/exit_retry_test.goindex 8c3b402ea9..11b334ab80 100644--- a/kernel/model/exit_retry_test.go+++ b/kernel/model/exit_retry_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/exit_sync.go b/kernel/model/exit_sync.goindex 8d4cb7717c..577eb5c91d 100644--- a/kernel/model/exit_sync.go+++ b/kernel/model/exit_sync.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/exit_sync_fts5_test.go b/kernel/model/exit_sync_fts5_test.goindex 4a47e88376..89e6456af2 100644--- a/kernel/model/exit_sync_fts5_test.go+++ b/kernel/model/exit_sync_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/exit_sync_test.go b/kernel/model/exit_sync_test.goindex 74fcfb62ee..4126f60851 100644--- a/kernel/model/exit_sync_test.go+++ b/kernel/model/exit_sync_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export.go b/kernel/model/export.goindex 6842620e52..651f75bbf6 100644--- a/kernel/model/export.go+++ b/kernel/model/export.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/export_annotation_test.go b/kernel/model/export_annotation_test.goindex ad90c85ee9..f2171b452e 100644--- a/kernel/model/export_annotation_test.go+++ b/kernel/model/export_annotation_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export_asset_test.go b/kernel/model/export_asset_test.goindex 0b27b6280e..475220ae5a 100644--- a/kernel/model/export_asset_test.go+++ b/kernel/model/export_asset_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/export_attribute_view_publish_test.go b/kernel/model/export_attribute_view_publish_test.goindex bb906c3653..2600e37354 100644--- a/kernel/model/export_attribute_view_publish_test.go+++ b/kernel/model/export_attribute_view_publish_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as-// published by the Free Software Foundation, either version 3 of the-// License, or (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build fts5diff --git a/kernel/model/export_attribute_view_test.go b/kernel/model/export_attribute_view_test.goindex c7901cc6eb..23e7784ab9 100644--- a/kernel/model/export_attribute_view_test.go+++ b/kernel/model/export_attribute_view_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/export_document_paths.go b/kernel/model/export_document_paths.goindex c09fb1fc74..a588f87349 100644--- a/kernel/model/export_document_paths.go+++ b/kernel/model/export_document_paths.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/export_document_paths_fts5_test.go b/kernel/model/export_document_paths_fts5_test.goindex 189f653073..98146a364e 100644--- a/kernel/model/export_document_paths_fts5_test.go+++ b/kernel/model/export_document_paths_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/export_document_paths_test.go b/kernel/model/export_document_paths_test.goindex 736987201e..b1fe3feff1 100644--- a/kernel/model/export_document_paths_test.go+++ b/kernel/model/export_document_paths_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export_footnotes.go b/kernel/model/export_footnotes.goindex 77ce631b65..01b216f828 100644--- a/kernel/model/export_footnotes.go+++ b/kernel/model/export_footnotes.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/export_footnotes_fts5_test.go b/kernel/model/export_footnotes_fts5_test.goindex 9a0c702b80..0f7fdddc54 100644--- a/kernel/model/export_footnotes_fts5_test.go+++ b/kernel/model/export_footnotes_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/export_footnotes_test.go b/kernel/model/export_footnotes_test.goindex 9541bffdfd..4537205bfd 100644--- a/kernel/model/export_footnotes_test.go+++ b/kernel/model/export_footnotes_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export_js_embed.go b/kernel/model/export_js_embed.goindex 27c3fd1b8b..6776d0a9f0 100644--- a/kernel/model/export_js_embed.go+++ b/kernel/model/export_js_embed.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export_js_embed_test.go b/kernel/model/export_js_embed_test.goindex 256081834d..5c7959a6ac 100644--- a/kernel/model/export_js_embed_test.go+++ b/kernel/model/export_js_embed_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export_markdown_font_family.go b/kernel/model/export_markdown_font_family.goindex c11256f079..ec31041a31 100644--- a/kernel/model/export_markdown_font_family.go+++ b/kernel/model/export_markdown_font_family.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/export_markdown_font_family_test.go b/kernel/model/export_markdown_font_family_test.goindex ce9506968e..6f663d25a3 100644--- a/kernel/model/export_markdown_font_family_test.go+++ b/kernel/model/export_markdown_font_family_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/export_markdown_refs.go b/kernel/model/export_markdown_refs.goindex b9b2f47107..7f385311bd 100644--- a/kernel/model/export_markdown_refs.go+++ b/kernel/model/export_markdown_refs.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/export_markdown_refs_test.go b/kernel/model/export_markdown_refs_test.goindex 4db4478690..2cccc510f4 100644--- a/kernel/model/export_markdown_refs_test.go+++ b/kernel/model/export_markdown_refs_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/export_markdown_table_test.go b/kernel/model/export_markdown_table_test.goindex 7dab2625a3..7138c57144 100644--- a/kernel/model/export_markdown_table_test.go+++ b/kernel/model/export_markdown_table_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export_merge.go b/kernel/model/export_merge.goindex 6acec8136d..c3ac706c7b 100644--- a/kernel/model/export_merge.go+++ b/kernel/model/export_merge.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/export_merge_test.go b/kernel/model/export_merge_test.goindex 62c811b390..186f1fe1d0 100644--- a/kernel/model/export_merge_test.go+++ b/kernel/model/export_merge_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/export_notebooks_test.go b/kernel/model/export_notebooks_test.goindex ad5df9ca5e..c42acad585 100644--- a/kernel/model/export_notebooks_test.go+++ b/kernel/model/export_notebooks_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/export_options.go b/kernel/model/export_options.goindex 91a1b14e68..bf738fcb92 100644--- a/kernel/model/export_options.go+++ b/kernel/model/export_options.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/export_options_fts5_test.go b/kernel/model/export_options_fts5_test.goindex 71122cbef0..633ea3f763 100644--- a/kernel/model/export_options_fts5_test.go+++ b/kernel/model/export_options_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/export_options_test.go b/kernel/model/export_options_test.goindex 4f091aea65..d3a2885a88 100644--- a/kernel/model/export_options_test.go+++ b/kernel/model/export_options_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export_pdf_assets.go b/kernel/model/export_pdf_assets.goindex ebf2aae5fd..f4fedbd5ca 100644--- a/kernel/model/export_pdf_assets.go+++ b/kernel/model/export_pdf_assets.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export_pdf_assets_test.go b/kernel/model/export_pdf_assets_test.goindex 91ec2852ce..a4123781d2 100644--- a/kernel/model/export_pdf_assets_test.go+++ b/kernel/model/export_pdf_assets_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export_publish_test.go b/kernel/model/export_publish_test.goindex 5374a529d4..678d7b3e49 100644--- a/kernel/model/export_publish_test.go+++ b/kernel/model/export_publish_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build fts5diff --git a/kernel/model/export_related_test.go b/kernel/model/export_related_test.goindex ca15facc0f..2214f0e45c 100644--- a/kernel/model/export_related_test.go+++ b/kernel/model/export_related_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/export_relation_av_test.go b/kernel/model/export_relation_av_test.goindex 3e68b7f936..4a1b8b7842 100644--- a/kernel/model/export_relation_av_test.go+++ b/kernel/model/export_relation_av_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export_sy_temp_test.go b/kernel/model/export_sy_temp_test.goindex 36e15ea7f3..32f4ce65bb 100644--- a/kernel/model/export_sy_temp_test.go+++ b/kernel/model/export_sy_temp_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export_system_log.go b/kernel/model/export_system_log.goindex 641cdfe13a..8239411238 100644--- a/kernel/model/export_system_log.go+++ b/kernel/model/export_system_log.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export_system_log_test.go b/kernel/model/export_system_log_test.goindex 8c6d9d42e9..db343aab3f 100644--- a/kernel/model/export_system_log_test.go+++ b/kernel/model/export_system_log_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/export_task_markers_test.go b/kernel/model/export_task_markers_test.goindex d08cbcd3e9..972fca05be 100644--- a/kernel/model/export_task_markers_test.go+++ b/kernel/model/export_task_markers_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/file.go b/kernel/model/file.goindex d77a12fcec..3402217bfc 100644--- a/kernel/model/file.go+++ b/kernel/model/file.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/file_annotation_test.go b/kernel/model/file_annotation_test.goindex a3edd426f3..e55cdab074 100644--- a/kernel/model/file_annotation_test.go+++ b/kernel/model/file_annotation_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/file_corrupted_test.go b/kernel/model/file_corrupted_test.goindex 16a3cc058c..32f3680d6a 100644--- a/kernel/model/file_corrupted_test.go+++ b/kernel/model/file_corrupted_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/file_corrupted_windows_test.go b/kernel/model/file_corrupted_windows_test.goindex 41cf04a0fd..4e845efad4 100644--- a/kernel/model/file_corrupted_windows_test.go+++ b/kernel/model/file_corrupted_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/file_daily_note_fts5_test.go b/kernel/model/file_daily_note_fts5_test.goindex 1020876ad1..79ad1e9757 100644--- a/kernel/model/file_daily_note_fts5_test.go+++ b/kernel/model/file_daily_note_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/file_doc_sort_test.go b/kernel/model/file_doc_sort_test.goindex e9dd682438..d021bcc2de 100644--- a/kernel/model/file_doc_sort_test.go+++ b/kernel/model/file_doc_sort_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build fts5diff --git a/kernel/model/file_index_test.go b/kernel/model/file_index_test.goindex fbab497a9c..a54599405f 100644--- a/kernel/model/file_index_test.go+++ b/kernel/model/file_index_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build fts5diff --git a/kernel/model/file_move_sort_test.go b/kernel/model/file_move_sort_test.goindex 25109acaf6..5ac1a0eb5b 100644--- a/kernel/model/file_move_sort_test.go+++ b/kernel/model/file_move_sort_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/file_queue_cleanup_fts5_test.go b/kernel/model/file_queue_cleanup_fts5_test.goindex 20c6156e6a..a1cef8293c 100644--- a/kernel/model/file_queue_cleanup_fts5_test.go+++ b/kernel/model/file_queue_cleanup_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/file_remove_test.go b/kernel/model/file_remove_test.goindex a5a5c08983..36740ed750 100644--- a/kernel/model/file_remove_test.go+++ b/kernel/model/file_remove_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/file_sharing_windows_test.go b/kernel/model/file_sharing_windows_test.goindex 05eae99662..f104136765 100644--- a/kernel/model/file_sharing_windows_test.go+++ b/kernel/model/file_sharing_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/file_test.go b/kernel/model/file_test.goindex 531da16dc8..6f79d41736 100644--- a/kernel/model/file_test.go+++ b/kernel/model/file_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/file_tree_reorder.go b/kernel/model/file_tree_reorder.goindex 76bd0c65e4..e336240389 100644--- a/kernel/model/file_tree_reorder.go+++ b/kernel/model/file_tree_reorder.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/file_tree_reorder_test.go b/kernel/model/file_tree_reorder_test.goindex a7e67cb97b..079e8f5ede 100644--- a/kernel/model/file_tree_reorder_test.go+++ b/kernel/model/file_tree_reorder_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/filesys_init.go b/kernel/model/filesys_init.goindex 8fc07f66fb..e719254142 100644--- a/kernel/model/filesys_init.go+++ b/kernel/model/filesys_init.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.goindex 9e4a90c898..fa17bff72f 100644--- a/kernel/model/flashcard.go+++ b/kernel/model/flashcard.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/flashcard_reload_test.go b/kernel/model/flashcard_reload_test.goindex b32020a2d3..d2e5a9f7c5 100644--- a/kernel/model/flashcard_reload_test.go+++ b/kernel/model/flashcard_reload_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/flashcard_sort_test.go b/kernel/model/flashcard_sort_test.goindex 840b5932f9..01db162a3d 100644--- a/kernel/model/flashcard_sort_test.go+++ b/kernel/model/flashcard_sort_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/flashcard_transaction.go b/kernel/model/flashcard_transaction.goindex 04f72db37b..66f50d5328 100644--- a/kernel/model/flashcard_transaction.go+++ b/kernel/model/flashcard_transaction.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/flashcard_transaction_fts5_test.go b/kernel/model/flashcard_transaction_fts5_test.goindex 1e41101d96..0c40de1f32 100644--- a/kernel/model/flashcard_transaction_fts5_test.go+++ b/kernel/model/flashcard_transaction_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/flashcard_validation_test.go b/kernel/model/flashcard_validation_test.goindex f3f8d7ee24..c6af5f7abe 100644--- a/kernel/model/flashcard_validation_test.go+++ b/kernel/model/flashcard_validation_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/flushdns_other.go b/kernel/model/flushdns_other.goindex ac27d7f95a..db033fa564 100644--- a/kernel/model/flushdns_other.go+++ b/kernel/model/flushdns_other.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build !windowsdiff --git a/kernel/model/flushdns_windows.go b/kernel/model/flushdns_windows.goindex ad637ceef5..f0739ebc70 100644--- a/kernel/model/flushdns_windows.go+++ b/kernel/model/flushdns_windows.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build windowsdiff --git a/kernel/model/format.go b/kernel/model/format.goindex 2f5de474fc..aa526b7736 100644--- a/kernel/model/format.go+++ b/kernel/model/format.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/format_mindmap_test.go b/kernel/model/format_mindmap_test.goindex ce5be7cef5..472146169c 100644--- a/kernel/model/format_mindmap_test.go+++ b/kernel/model/format_mindmap_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/graph.go b/kernel/model/graph.goindex 656f1aaf96..9150157a9e 100644--- a/kernel/model/graph.go+++ b/kernel/model/graph.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/graph_test.go b/kernel/model/graph_test.goindex 435e2fceda..98c4d86706 100644--- a/kernel/model/graph_test.go+++ b/kernel/model/graph_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/heading.go b/kernel/model/heading.goindex 1c69a0fee8..37761dcf61 100644--- a/kernel/model/heading.go+++ b/kernel/model/heading.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/heading_batch.go b/kernel/model/heading_batch.goindex 6aee14b32f..636be9683a 100644--- a/kernel/model/heading_batch.go+++ b/kernel/model/heading_batch.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/heading_doc_test.go b/kernel/model/heading_doc_test.goindex 760fef00dd..4d9afd4b13 100644--- a/kernel/model/heading_doc_test.go+++ b/kernel/model/heading_doc_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/heading_fold_test.go b/kernel/model/heading_fold_test.goindex ca7392bbb0..b86dfae090 100644--- a/kernel/model/heading_fold_test.go+++ b/kernel/model/heading_fold_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/heading_level_test.go b/kernel/model/heading_level_test.goindex 586b164896..4d3faf17cb 100644--- a/kernel/model/heading_level_test.go+++ b/kernel/model/heading_level_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/heading_number.go b/kernel/model/heading_number.goindex fa31602f98..96a612e2b4 100644--- a/kernel/model/heading_number.go+++ b/kernel/model/heading_number.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/heading_number_test.go b/kernel/model/heading_number_test.goindex 90f6316884..e0a6882cdc 100644--- a/kernel/model/heading_number_test.go+++ b/kernel/model/heading_number_test.go@@ -1,5 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/history.go b/kernel/model/history.goindex 06290bf9f0..a6d3084a8c 100644--- a/kernel/model/history.go+++ b/kernel/model/history.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/history_attribute_view_fts5_test.go b/kernel/model/history_attribute_view_fts5_test.goindex 722ba9ab8e..e7a81845bd 100644--- a/kernel/model/history_attribute_view_fts5_test.go+++ b/kernel/model/history_attribute_view_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/history_diff.go b/kernel/model/history_diff.goindex 3db9a6b9f1..6479fb3c7c 100644--- a/kernel/model/history_diff.go+++ b/kernel/model/history_diff.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/history_diff_test.go b/kernel/model/history_diff_test.goindex 2c45370e48..979be9bc3a 100644--- a/kernel/model/history_diff_test.go+++ b/kernel/model/history_diff_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/history_document.go b/kernel/model/history_document.goindex eada846caf..6807ad6387 100644--- a/kernel/model/history_document.go+++ b/kernel/model/history_document.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/history_document_fts5_test.go b/kernel/model/history_document_fts5_test.goindex 98e67df8d4..2d68d58318 100644--- a/kernel/model/history_document_fts5_test.go+++ b/kernel/model/history_document_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && sqlcipherpackage modeldiff --git a/kernel/model/history_search_injection_test.go b/kernel/model/history_search_injection_test.goindex 76243b64ed..a1cb66d07f 100644--- a/kernel/model/history_search_injection_test.go+++ b/kernel/model/history_search_injection_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/history_snapshots.go b/kernel/model/history_snapshots.goindex 87671b8562..9f0f7d05cd 100644--- a/kernel/model/history_snapshots.go+++ b/kernel/model/history_snapshots.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/history_snapshots_test.go b/kernel/model/history_snapshots_test.goindex 744281e65b..88a0771d3b 100644--- a/kernel/model/history_snapshots_test.go+++ b/kernel/model/history_snapshots_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/history_test.go b/kernel/model/history_test.goindex 7e18a19db8..f594550e7a 100644--- a/kernel/model/history_test.go+++ b/kernel/model/history_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/hpath_refresh.go b/kernel/model/hpath_refresh.goindex 8605ae1fa1..bee000db38 100644--- a/kernel/model/hpath_refresh.go+++ b/kernel/model/hpath_refresh.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/hpath_refresh_lifecycle_test.go b/kernel/model/hpath_refresh_lifecycle_test.goindex 94155c05da..08f404ee33 100644--- a/kernel/model/hpath_refresh_lifecycle_test.go+++ b/kernel/model/hpath_refresh_lifecycle_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/hpath_refresh_sqlcipher_test.go b/kernel/model/hpath_refresh_sqlcipher_test.goindex 388bbb345f..3c8fc06e6a 100644--- a/kernel/model/hpath_refresh_sqlcipher_test.go+++ b/kernel/model/hpath_refresh_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/hpath_refresh_test.go b/kernel/model/hpath_refresh_test.goindex 61da98eed0..0acaa46591 100644--- a/kernel/model/hpath_refresh_test.go+++ b/kernel/model/hpath_refresh_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/html_asset_test.go b/kernel/model/html_asset_test.goindex 1f84c443bb..a1c3f68cf5 100644--- a/kernel/model/html_asset_test.go+++ b/kernel/model/html_asset_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/import.go b/kernel/model/import.goindex 579aa81d6d..f077959a10 100644--- a/kernel/model/import.go+++ b/kernel/model/import.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/import_attribute_view.go b/kernel/model/import_attribute_view.goindex 9508a95145..e198bba3dd 100644--- a/kernel/model/import_attribute_view.go+++ b/kernel/model/import_attribute_view.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/import_attribute_view_fts5_test.go b/kernel/model/import_attribute_view_fts5_test.goindex 01e4cc89e0..0c26ae80c8 100644--- a/kernel/model/import_attribute_view_fts5_test.go+++ b/kernel/model/import_attribute_view_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/import_attribute_view_test.go b/kernel/model/import_attribute_view_test.goindex d181988a2b..ad4e164a10 100644--- a/kernel/model/import_attribute_view_test.go+++ b/kernel/model/import_attribute_view_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/import_data.go b/kernel/model/import_data.goindex 63ed16ca5a..2423f80133 100644--- a/kernel/model/import_data.go+++ b/kernel/model/import_data.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/import_data_test.go b/kernel/model/import_data_test.goindex ff04fc57f9..4df39fcae0 100644--- a/kernel/model/import_data_test.go+++ b/kernel/model/import_data_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/import_data_transaction.go b/kernel/model/import_data_transaction.goindex 3603512fdc..fa09b5575a 100644--- a/kernel/model/import_data_transaction.go+++ b/kernel/model/import_data_transaction.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/import_document_target.go b/kernel/model/import_document_target.goindex 8a7fdcdef2..aebe981d83 100644--- a/kernel/model/import_document_target.go+++ b/kernel/model/import_document_target.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/import_document_target_fts5_test.go b/kernel/model/import_document_target_fts5_test.goindex 5cb8de22fe..1f4a0d9a6f 100644--- a/kernel/model/import_document_target_fts5_test.go+++ b/kernel/model/import_document_target_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/import_document_target_test.go b/kernel/model/import_document_target_test.goindex 98f76b0516..97dffc642b 100644--- a/kernel/model/import_document_target_test.go+++ b/kernel/model/import_document_target_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/import_emoji.go b/kernel/model/import_emoji.goindex 005cf489d7..3844973733 100644--- a/kernel/model/import_emoji.go+++ b/kernel/model/import_emoji.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/import_emoji_test.go b/kernel/model/import_emoji_test.goindex 10c0fbc46c..1ba9b2f07e 100644--- a/kernel/model/import_emoji_test.go+++ b/kernel/model/import_emoji_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/import_encrypted_flashcard_test.go b/kernel/model/import_encrypted_flashcard_test.goindex 8b13ac259e..70c3800e05 100644--- a/kernel/model/import_encrypted_flashcard_test.go+++ b/kernel/model/import_encrypted_flashcard_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/import_footnotes.go b/kernel/model/import_footnotes.goindex 6f8f82a2fc..bbfc714d0c 100644--- a/kernel/model/import_footnotes.go+++ b/kernel/model/import_footnotes.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/import_footnotes_test.go b/kernel/model/import_footnotes_test.goindex 3b1efc9ed2..0529befd4a 100644--- a/kernel/model/import_footnotes_test.go+++ b/kernel/model/import_footnotes_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/import_front_matter_test.go b/kernel/model/import_front_matter_test.goindex 808dd20bb5..7f8d5794b5 100644--- a/kernel/model/import_front_matter_test.go+++ b/kernel/model/import_front_matter_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/import_html_text_style.go b/kernel/model/import_html_text_style.goindex af9fb5eac3..c8018fbfce 100644--- a/kernel/model/import_html_text_style.go+++ b/kernel/model/import_html_text_style.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/import_html_text_style_test.go b/kernel/model/import_html_text_style_test.goindex ba0bb5ca6c..7781dd4c96 100644--- a/kernel/model/import_html_text_style_test.go+++ b/kernel/model/import_html_text_style_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/import_markdown.go b/kernel/model/import_markdown.goindex 73e7f8f9a4..2d6343c5e9 100644--- a/kernel/model/import_markdown.go+++ b/kernel/model/import_markdown.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/import_markdown_batch_fts5_test.go b/kernel/model/import_markdown_batch_fts5_test.goindex 18c0b71cce..2e6d68255e 100644--- a/kernel/model/import_markdown_batch_fts5_test.go+++ b/kernel/model/import_markdown_batch_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && sqlcipherpackage modeldiff --git a/kernel/model/import_markdown_benchmark_test.go b/kernel/model/import_markdown_benchmark_test.goindex ac1d6eed68..3be7c17efd 100644--- a/kernel/model/import_markdown_benchmark_test.go+++ b/kernel/model/import_markdown_benchmark_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/import_markdown_fts5_test.go b/kernel/model/import_markdown_fts5_test.goindex a878adec6f..db8e138011 100644--- a/kernel/model/import_markdown_fts5_test.go+++ b/kernel/model/import_markdown_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/import_markdown_spool_test.go b/kernel/model/import_markdown_spool_test.goindex 475e9a79d4..dd28f100c0 100644--- a/kernel/model/import_markdown_spool_test.go+++ b/kernel/model/import_markdown_spool_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/import_math.go b/kernel/model/import_math.goindex d35b79ba45..77819b1c75 100644--- a/kernel/model/import_math.go+++ b/kernel/model/import_math.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport "github.com/88250/lute"diff --git a/kernel/model/import_math_test.go b/kernel/model/import_math_test.goindex 10c04e100e..55f495d931 100644--- a/kernel/model/import_math_test.go+++ b/kernel/model/import_math_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/import_notebook_as_document_fts5_test.go b/kernel/model/import_notebook_as_document_fts5_test.goindex 8217c8f231..0e822f2da2 100644--- a/kernel/model/import_notebook_as_document_fts5_test.go+++ b/kernel/model/import_notebook_as_document_fts5_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build fts5diff --git a/kernel/model/import_obsidian.go b/kernel/model/import_obsidian.goindex 41c1def718..f6f572e08b 100644--- a/kernel/model/import_obsidian.go+++ b/kernel/model/import_obsidian.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/import_obsidian_test.go b/kernel/model/import_obsidian_test.goindex 944c5ff786..34eb50ac90 100644--- a/kernel/model/import_obsidian_test.go+++ b/kernel/model/import_obsidian_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/import_ref_degrade_test.go b/kernel/model/import_ref_degrade_test.goindex 3f8543bbf0..7fc01a5922 100644--- a/kernel/model/import_ref_degrade_test.go+++ b/kernel/model/import_ref_degrade_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/import_sy_copy_fts5_test.go b/kernel/model/import_sy_copy_fts5_test.goindex b0c6f93022..501fc5979f 100644--- a/kernel/model/import_sy_copy_fts5_test.go+++ b/kernel/model/import_sy_copy_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/import_table_structure_test.go b/kernel/model/import_table_structure_test.goindex 90595172d9..054afafb4e 100644--- a/kernel/model/import_table_structure_test.go+++ b/kernel/model/import_table_structure_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/import_test.go b/kernel/model/import_test.goindex 69770efe4d..e0b0b2f618 100644--- a/kernel/model/import_test.go+++ b/kernel/model/import_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/index.go b/kernel/model/index.goindex e9cff2bc77..453509aa7c 100644--- a/kernel/model/index.go+++ b/kernel/model/index.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/index_batch_fts5_test.go b/kernel/model/index_batch_fts5_test.goindex 3433926bbe..eea959aae5 100644--- a/kernel/model/index_batch_fts5_test.go+++ b/kernel/model/index_batch_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/index_fix.go b/kernel/model/index_fix.goindex fff28ae039..f12b1edff0 100644--- a/kernel/model/index_fix.go+++ b/kernel/model/index_fix.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/index_fix_concurrency_test.go b/kernel/model/index_fix_concurrency_test.goindex ce1e8c7e30..21f19d3ab1 100644--- a/kernel/model/index_fix_concurrency_test.go+++ b/kernel/model/index_fix_concurrency_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/index_fix_identity_fts5_test.go b/kernel/model/index_fix_identity_fts5_test.goindex bf0fc255ea..34591d5990 100644--- a/kernel/model/index_fix_identity_fts5_test.go+++ b/kernel/model/index_fix_identity_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/index_fix_identity_sqlcipher_test.go b/kernel/model/index_fix_identity_sqlcipher_test.goindex fd9f375311..a2128b166a 100644--- a/kernel/model/index_fix_identity_sqlcipher_test.go+++ b/kernel/model/index_fix_identity_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/index_fix_recreate_fts5_test.go b/kernel/model/index_fix_recreate_fts5_test.goindex ce7576685a..efc4ebc287 100644--- a/kernel/model/index_fix_recreate_fts5_test.go+++ b/kernel/model/index_fix_recreate_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/index_fix_recreate_sqlcipher_test.go b/kernel/model/index_fix_recreate_sqlcipher_test.goindex c7344e63f1..604053e7a8 100644--- a/kernel/model/index_fix_recreate_sqlcipher_test.go+++ b/kernel/model/index_fix_recreate_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/index_fix_test.go b/kernel/model/index_fix_test.goindex 77a05e7ec6..d68c084105 100644--- a/kernel/model/index_fix_test.go+++ b/kernel/model/index_fix_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/index_refs_fts5_test.go b/kernel/model/index_refs_fts5_test.goindex 3279881a9b..e4a298d83c 100644--- a/kernel/model/index_refs_fts5_test.go+++ b/kernel/model/index_refs_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/inline_style.go b/kernel/model/inline_style.goindex 5fcb0c216a..8602aa0238 100644--- a/kernel/model/inline_style.go+++ b/kernel/model/inline_style.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/inline_style_test.go b/kernel/model/inline_style_test.goindex d272eaf99c..ae7861a172 100644--- a/kernel/model/inline_style_test.go+++ b/kernel/model/inline_style_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/junction_workspace_windows_test.go b/kernel/model/junction_workspace_windows_test.goindex d1ec4a5249..6a74e978a8 100644--- a/kernel/model/junction_workspace_windows_test.go+++ b/kernel/model/junction_workspace_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/keyword_filter_test.go b/kernel/model/keyword_filter_test.goindex 7f1afd62bd..791ed54d73 100644--- a/kernel/model/keyword_filter_test.go+++ b/kernel/model/keyword_filter_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/lan_sync.go b/kernel/model/lan_sync.goindex 56270a1fab..32dfa7ff8e 100644--- a/kernel/model/lan_sync.go+++ b/kernel/model/lan_sync.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/lan_sync_test.go b/kernel/model/lan_sync_test.goindex f6ba95a723..de948e8448 100644--- a/kernel/model/lan_sync_test.go+++ b/kernel/model/lan_sync_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/legacy_resources.go b/kernel/model/legacy_resources.goindex 81ac337e4a..d3c3d98196 100644--- a/kernel/model/legacy_resources.go+++ b/kernel/model/legacy_resources.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/legacy_resources_test.go b/kernel/model/legacy_resources_test.goindex f4d1cb2350..50aac5c0b1 100644--- a/kernel/model/legacy_resources_test.go+++ b/kernel/model/legacy_resources_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/list_mindmap_migration.go b/kernel/model/list_mindmap_migration.goindex 8358f7c23d..281ef7cdda 100644--- a/kernel/model/list_mindmap_migration.go+++ b/kernel/model/list_mindmap_migration.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/list_mindmap_migration_crypto_test.go b/kernel/model/list_mindmap_migration_crypto_test.goindex bde637dcec..bc5f93dd8d 100644--- a/kernel/model/list_mindmap_migration_crypto_test.go+++ b/kernel/model/list_mindmap_migration_crypto_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/list_mindmap_migration_fts5_test.go b/kernel/model/list_mindmap_migration_fts5_test.goindex 8ab3e0f770..f88dc74313 100644--- a/kernel/model/list_mindmap_migration_fts5_test.go+++ b/kernel/model/list_mindmap_migration_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/list_mindmap_migration_test.go b/kernel/model/list_mindmap_migration_test.goindex 61b2132ebd..bafe54332a 100644--- a/kernel/model/list_mindmap_migration_test.go+++ b/kernel/model/list_mindmap_migration_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/listitem.go b/kernel/model/listitem.goindex e83dfde103..863f91ba8e 100644--- a/kernel/model/listitem.go+++ b/kernel/model/listitem.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/listitem_test.go b/kernel/model/listitem_test.goindex ea62cbd144..ab3752904c 100644--- a/kernel/model/listitem_test.go+++ b/kernel/model/listitem_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/live_photo.go b/kernel/model/live_photo.goindex c5971abf23..45aa4d13a5 100644--- a/kernel/model/live_photo.go+++ b/kernel/model/live_photo.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/live_photo_assets_test.go b/kernel/model/live_photo_assets_test.goindex a24e7b35a5..6caa17fbf5 100644--- a/kernel/model/live_photo_assets_test.go+++ b/kernel/model/live_photo_assets_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/live_photo_preview_test.go b/kernel/model/live_photo_preview_test.goindex ad1befab5e..7382b7b675 100644--- a/kernel/model/live_photo_preview_test.go+++ b/kernel/model/live_photo_preview_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/mcp_oauth.go b/kernel/model/mcp_oauth.goindex 4d029fad29..5a20c549c6 100644--- a/kernel/model/mcp_oauth.go+++ b/kernel/model/mcp_oauth.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/mcpoauth/service.go b/kernel/model/mcpoauth/service.goindex 275bf76af2..a35825ab01 100644--- a/kernel/model/mcpoauth/service.go+++ b/kernel/model/mcpoauth/service.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+// Package mcpoauth 实现仅用于内置 MCP 的授权码、刷新和撤销,持久化文件只保存凭证摘要。package mcpoauthdiff --git a/kernel/model/mcpoauth/service_test.go b/kernel/model/mcpoauth/service_test.goindex 4f749432d5..63e54ea1eb 100644--- a/kernel/model/mcpoauth/service_test.go+++ b/kernel/model/mcpoauth/service_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package mcpoauthimport (diff --git a/kernel/model/md2html.go b/kernel/model/md2html.goindex bcf760f327..36b01fb3d7 100644--- a/kernel/model/md2html.go+++ b/kernel/model/md2html.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/mount.go b/kernel/model/mount.goindex cc2928bcc4..593e2891dd 100644--- a/kernel/model/mount.go+++ b/kernel/model/mount.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/mount_test.go b/kernel/model/mount_test.goindex c7fa496401..86e43509e9 100644--- a/kernel/model/mount_test.go+++ b/kernel/model/mount_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/mount_user_guide_test.go b/kernel/model/mount_user_guide_test.goindex 13186ee2ec..0b070e0ff2 100644--- a/kernel/model/mount_user_guide_test.go+++ b/kernel/model/mount_user_guide_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/notebook_archive.go b/kernel/model/notebook_archive.goindex 000cf13aae..ea1a50b650 100644--- a/kernel/model/notebook_archive.go+++ b/kernel/model/notebook_archive.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/notebook_archive_file.go b/kernel/model/notebook_archive_file.goindex b82aa07c90..5630cdb3d6 100644--- a/kernel/model/notebook_archive_file.go+++ b/kernel/model/notebook_archive_file.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/notebook_archive_import.go b/kernel/model/notebook_archive_import.goindex f03f983d1d..2235e50e0f 100644--- a/kernel/model/notebook_archive_import.go+++ b/kernel/model/notebook_archive_import.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/notebook_archive_test.go b/kernel/model/notebook_archive_test.goindex 0562de1ca1..d35cd6209e 100644--- a/kernel/model/notebook_archive_test.go+++ b/kernel/model/notebook_archive_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/notebook_bundle.go b/kernel/model/notebook_bundle.goindex 33f5aa564d..409047a0d8 100644--- a/kernel/model/notebook_bundle.go+++ b/kernel/model/notebook_bundle.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/notebook_bundle_fts5_test.go b/kernel/model/notebook_bundle_fts5_test.goindex c9958ddb70..602b4bb937 100644--- a/kernel/model/notebook_bundle_fts5_test.go+++ b/kernel/model/notebook_bundle_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/ocr.go b/kernel/model/ocr.goindex 0c3bf96566..845481a997 100644--- a/kernel/model/ocr.go+++ b/kernel/model/ocr.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/ocr_ai.go b/kernel/model/ocr_ai.goindex 0306000518..f6693edda5 100644--- a/kernel/model/ocr_ai.go+++ b/kernel/model/ocr_ai.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/ocr_ai_index_test.go b/kernel/model/ocr_ai_index_test.goindex 04b93a33c2..e829d517ac 100644--- a/kernel/model/ocr_ai_index_test.go+++ b/kernel/model/ocr_ai_index_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/ocr_conf_test.go b/kernel/model/ocr_conf_test.goindex 0e80f21c3b..b193640766 100644--- a/kernel/model/ocr_conf_test.go+++ b/kernel/model/ocr_conf_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/ocr_import.go b/kernel/model/ocr_import.goindex a9aa87a863..68f22f6817 100644--- a/kernel/model/ocr_import.go+++ b/kernel/model/ocr_import.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/ocr_index_test.go b/kernel/model/ocr_index_test.goindex 57f897dfd6..7052665dab 100644--- a/kernel/model/ocr_index_test.go+++ b/kernel/model/ocr_index_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/ocr_request.go b/kernel/model/ocr_request.goindex 318c2077a2..9539f034c7 100644--- a/kernel/model/ocr_request.go+++ b/kernel/model/ocr_request.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/ocr_status.go b/kernel/model/ocr_status.goindex bcd35d2d92..8f4ec870f4 100644--- a/kernel/model/ocr_status.go+++ b/kernel/model/ocr_status.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/ocr_status_test.go b/kernel/model/ocr_status_test.goindex 9448e022ff..011a00c02a 100644--- a/kernel/model/ocr_status_test.go+++ b/kernel/model/ocr_status_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/oidc.go b/kernel/model/oidc.goindex caee5ad61a..e4cc87895e 100644--- a/kernel/model/oidc.go+++ b/kernel/model/oidc.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/oidc_provider/provider.go b/kernel/model/oidc_provider/provider.goindex b812b51b6e..fa9ba70fab 100644--- a/kernel/model/oidc_provider/provider.go+++ b/kernel/model/oidc_provider/provider.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage oidc_providerdiff --git a/kernel/model/oidc_provider/provider_test.go b/kernel/model/oidc_provider/provider_test.goindex 56322fe55a..95f32322a2 100644--- a/kernel/model/oidc_provider/provider_test.go+++ b/kernel/model/oidc_provider/provider_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage oidc_providerdiff --git a/kernel/model/oidc_test.go b/kernel/model/oidc_test.goindex 12bc9c1664..ad29f339ac 100644--- a/kernel/model/oidc_test.go+++ b/kernel/model/oidc_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/onboarding.go b/kernel/model/onboarding.goindex ac37fc366c..c4db469577 100644--- a/kernel/model/onboarding.go+++ b/kernel/model/onboarding.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/onboarding_test.go b/kernel/model/onboarding_test.goindex 74f11e3850..4cc3a226e6 100644--- a/kernel/model/onboarding_test.go+++ b/kernel/model/onboarding_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/outline.go b/kernel/model/outline.goindex 533e798df9..94d7eec95f 100644--- a/kernel/model/outline.go+++ b/kernel/model/outline.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/outline_style_escape_test.go b/kernel/model/outline_style_escape_test.goindex 2461472d82..d5cacb92b9 100644--- a/kernel/model/outline_style_escape_test.go+++ b/kernel/model/outline_style_escape_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/pandoc_config.go b/kernel/model/pandoc_config.goindex bcf09113fe..34933d1181 100644--- a/kernel/model/pandoc_config.go+++ b/kernel/model/pandoc_config.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/pandoc_config_test.go b/kernel/model/pandoc_config_test.goindex 8228a08bd2..8183dbf382 100644--- a/kernel/model/pandoc_config_test.go+++ b/kernel/model/pandoc_config_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/pandoc_docx_filter.go b/kernel/model/pandoc_docx_filter.goindex be169ffb6b..684bc94b8d 100644--- a/kernel/model/pandoc_docx_filter.go+++ b/kernel/model/pandoc_docx_filter.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/pandoc_docx_filter_test.go b/kernel/model/pandoc_docx_filter_test.goindex 7e6b06e94f..ed8427f632 100644--- a/kernel/model/pandoc_docx_filter_test.go+++ b/kernel/model/pandoc_docx_filter_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/path.go b/kernel/model/path.goindex 4df1714c12..71cdae6323 100644--- a/kernel/model/path.go+++ b/kernel/model/path.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/pdf.go b/kernel/model/pdf.goindex a56707bfdf..ca4a5d32ce 100644--- a/kernel/model/pdf.go+++ b/kernel/model/pdf.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/pinned_docs.go b/kernel/model/pinned_docs.goindex 6d4546e5c0..ebfdcce8b6 100644--- a/kernel/model/pinned_docs.go+++ b/kernel/model/pinned_docs.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/pinned_docs_test.go b/kernel/model/pinned_docs_test.goindex 824c240ed8..a247fc94dd 100644--- a/kernel/model/pinned_docs_test.go+++ b/kernel/model/pinned_docs_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/plugin.go b/kernel/model/plugin.goindex 7eea9e5c8d..71edf269f8 100644--- a/kernel/model/plugin.go+++ b/kernel/model/plugin.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/plugin_publish.go b/kernel/model/plugin_publish.goindex 900454b7be..6a0f26e474 100644--- a/kernel/model/plugin_publish.go+++ b/kernel/model/plugin_publish.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/plugin_publish_test.go b/kernel/model/plugin_publish_test.goindex ab7d39d447..a981636009 100644--- a/kernel/model/plugin_publish_test.go+++ b/kernel/model/plugin_publish_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/plugin_rpc_admission.go b/kernel/model/plugin_rpc_admission.goindex 684c708720..1332203db5 100644--- a/kernel/model/plugin_rpc_admission.go+++ b/kernel/model/plugin_rpc_admission.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/plugin_rpc_admission_test.go b/kernel/model/plugin_rpc_admission_test.goindex 15896f30ec..4bd28574ae 100644--- a/kernel/model/plugin_rpc_admission_test.go+++ b/kernel/model/plugin_rpc_admission_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/plugin_settings_test.go b/kernel/model/plugin_settings_test.goindex 219961462a..87f370b200 100644--- a/kernel/model/plugin_settings_test.go+++ b/kernel/model/plugin_settings_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/plugin_storage.go b/kernel/model/plugin_storage.goindex dc7dc8739b..57f9896934 100644--- a/kernel/model/plugin_storage.go+++ b/kernel/model/plugin_storage.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/plugin_storage_test.go b/kernel/model/plugin_storage_test.goindex 35e8549d4a..dee2730ef4 100644--- a/kernel/model/plugin_storage_test.go+++ b/kernel/model/plugin_storage_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/plugin_test.go b/kernel/model/plugin_test.goindex bc392a3c4f..859fd4bc4b 100644--- a/kernel/model/plugin_test.go+++ b/kernel/model/plugin_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/process.go b/kernel/model/process.goindex 709ad296da..d0a86fdd3b 100644--- a/kernel/model/process.go+++ b/kernel/model/process.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/publish_access.go b/kernel/model/publish_access.goindex a5462ae689..0c6d8d0f58 100644--- a/kernel/model/publish_access.go+++ b/kernel/model/publish_access.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/publish_access_assets_fts5_test.go b/kernel/model/publish_access_assets_fts5_test.goindex dc974bd2d7..1757f8c133 100644--- a/kernel/model/publish_access_assets_fts5_test.go+++ b/kernel/model/publish_access_assets_fts5_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build fts5diff --git a/kernel/model/publish_access_sqlcipher_test.go b/kernel/model/publish_access_sqlcipher_test.goindex 8cce8c0ea8..0c1490de5d 100644--- a/kernel/model/publish_access_sqlcipher_test.go+++ b/kernel/model/publish_access_sqlcipher_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build sqlcipher || libsqlcipherdiff --git a/kernel/model/publish_access_test.go b/kernel/model/publish_access_test.goindex 3107008799..acace6e41d 100644--- a/kernel/model/publish_access_test.go+++ b/kernel/model/publish_access_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/publish_package_file_test.go b/kernel/model/publish_package_file_test.goindex 7120c4b00b..c95d032f99 100644--- a/kernel/model/publish_package_file_test.go+++ b/kernel/model/publish_package_file_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/publish_resource_access.go b/kernel/model/publish_resource_access.goindex 68842e5b9b..e6ce74f643 100644--- a/kernel/model/publish_resource_access.go+++ b/kernel/model/publish_resource_access.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/publish_resource_access_test.go b/kernel/model/publish_resource_access_test.goindex 167aadbf31..c96f5fef6c 100644--- a/kernel/model/publish_resource_access_test.go+++ b/kernel/model/publish_resource_access_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/push_queue.go b/kernel/model/push_queue.goindex f5a06e4626..2aac785b2c 100644--- a/kernel/model/push_queue.go+++ b/kernel/model/push_queue.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/push_queue_test.go b/kernel/model/push_queue_test.goindex 8435bde232..a5d8466181 100644--- a/kernel/model/push_queue_test.go+++ b/kernel/model/push_queue_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/push_reload.go b/kernel/model/push_reload.goindex fd59e712ff..e32eca8268 100644--- a/kernel/model/push_reload.go+++ b/kernel/model/push_reload.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/push_reload_test.go b/kernel/model/push_reload_test.goindex 4112a7e18e..0fbda89f7a 100644--- a/kernel/model/push_reload_test.go+++ b/kernel/model/push_reload_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/raw_path_guard.go b/kernel/model/raw_path_guard.goindex 4c7696cd16..8b4149a8dd 100644--- a/kernel/model/raw_path_guard.go+++ b/kernel/model/raw_path_guard.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/ref_text_retry.go b/kernel/model/ref_text_retry.goindex 37f69b7ff1..d66b1ecf34 100644--- a/kernel/model/ref_text_retry.go+++ b/kernel/model/ref_text_retry.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/ref_text_retry_fts5_test.go b/kernel/model/ref_text_retry_fts5_test.goindex 673eae37e0..ec049d7754 100644--- a/kernel/model/ref_text_retry_fts5_test.go+++ b/kernel/model/ref_text_retry_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/ref_text_retry_sqlcipher_test.go b/kernel/model/ref_text_retry_sqlcipher_test.goindex 9b6a66a39a..c7806d58bd 100644--- a/kernel/model/ref_text_retry_sqlcipher_test.go+++ b/kernel/model/ref_text_retry_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/ref_text_retry_test.go b/kernel/model/ref_text_retry_test.goindex a98b29f166..cb1254398a 100644--- a/kernel/model/ref_text_retry_test.go+++ b/kernel/model/ref_text_retry_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/ref_title.go b/kernel/model/ref_title.goindex eadebb1e09..cb04859112 100644--- a/kernel/model/ref_title.go+++ b/kernel/model/ref_title.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/render.go b/kernel/model/render.goindex c599e71ff7..01241a6420 100644--- a/kernel/model/render.go+++ b/kernel/model/render.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/render_fold_test.go b/kernel/model/render_fold_test.goindex 19a6f6c019..e85fbe951f 100644--- a/kernel/model/render_fold_test.go+++ b/kernel/model/render_fold_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/repository.go b/kernel/model/repository.goindex e31d6db841..45f8d19c95 100644--- a/kernel/model/repository.go+++ b/kernel/model/repository.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/repository_checkout_fts5_test.go b/kernel/model/repository_checkout_fts5_test.goindex 395437bf45..6a22c782f2 100644--- a/kernel/model/repository_checkout_fts5_test.go+++ b/kernel/model/repository_checkout_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/repository_checkout_test.go b/kernel/model/repository_checkout_test.goindex 4b7d426bb8..7e9aa8e690 100644--- a/kernel/model/repository_checkout_test.go+++ b/kernel/model/repository_checkout_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/repository_cloud_cache.go b/kernel/model/repository_cloud_cache.goindex 90a0b4d4b6..1c87b04bbb 100644--- a/kernel/model/repository_cloud_cache.go+++ b/kernel/model/repository_cloud_cache.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport "github.com/siyuan-note/dejavu"diff --git a/kernel/model/repository_cloud_cache_test.go b/kernel/model/repository_cloud_cache_test.goindex 3e80aada44..ec085cfe8a 100644--- a/kernel/model/repository_cloud_cache_test.go+++ b/kernel/model/repository_cloud_cache_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/repository_crypto.go b/kernel/model/repository_crypto.goindex c5659ad072..bde0f7b884 100644--- a/kernel/model/repository_crypto.go+++ b/kernel/model/repository_crypto.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/repository_crypto_fts5_test.go b/kernel/model/repository_crypto_fts5_test.goindex 8af665df03..3a8f5b216e 100644--- a/kernel/model/repository_crypto_fts5_test.go+++ b/kernel/model/repository_crypto_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/repository_crypto_test.go b/kernel/model/repository_crypto_test.goindex 1ee915826c..9846179dfc 100644--- a/kernel/model/repository_crypto_test.go+++ b/kernel/model/repository_crypto_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/repository_error_test.go b/kernel/model/repository_error_test.goindex 14afe271f4..86db4c7f5e 100644--- a/kernel/model/repository_error_test.go+++ b/kernel/model/repository_error_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/repository_range.go b/kernel/model/repository_range.goindex 9f8da02c05..1bd4c5aa69 100644--- a/kernel/model/repository_range.go+++ b/kernel/model/repository_range.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/repository_range_test.go b/kernel/model/repository_range_test.goindex 2a6906d902..8c7d5286cf 100644--- a/kernel/model/repository_range_test.go+++ b/kernel/model/repository_range_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/repository_rollback_fts5_test.go b/kernel/model/repository_rollback_fts5_test.goindex 1d34155c04..5b5755615d 100644--- a/kernel/model/repository_rollback_fts5_test.go+++ b/kernel/model/repository_rollback_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/repository_snapshot_tags_test.go b/kernel/model/repository_snapshot_tags_test.goindex e3b15f54af..260c1019b6 100644--- a/kernel/model/repository_snapshot_tags_test.go+++ b/kernel/model/repository_snapshot_tags_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/repository_snapshot_test.go b/kernel/model/repository_snapshot_test.goindex 31aa1f223c..4c2e511c43 100644--- a/kernel/model/repository_snapshot_test.go+++ b/kernel/model/repository_snapshot_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/repository_sync_test.go b/kernel/model/repository_sync_test.goindex cf27e4b46f..b3c0996b04 100644--- a/kernel/model/repository_sync_test.go+++ b/kernel/model/repository_sync_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/repository_types_count_test.go b/kernel/model/repository_types_count_test.goindex 580c79f656..6ad796a3a2 100644--- a/kernel/model/repository_types_count_test.go+++ b/kernel/model/repository_types_count_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/rerank.go b/kernel/model/rerank.goindex f90808cd92..01a3d35c60 100644--- a/kernel/model/rerank.go+++ b/kernel/model/rerank.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/reset_tree_test.go b/kernel/model/reset_tree_test.goindex 7c27935486..3e71e70dcf 100644--- a/kernel/model/reset_tree_test.go+++ b/kernel/model/reset_tree_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/role.go b/kernel/model/role.goindex 568fa1c5b6..08582f0083 100644--- a/kernel/model/role.go+++ b/kernel/model/role.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/search.go b/kernel/model/search.goindex 4352a52e46..a592cd19bc 100644--- a/kernel/model/search.go+++ b/kernel/model/search.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/search_attribute_view.go b/kernel/model/search_attribute_view.goindex a0ae887d7f..10f36b29f3 100644--- a/kernel/model/search_attribute_view.go+++ b/kernel/model/search_attribute_view.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/search_attribute_view_test.go b/kernel/model/search_attribute_view_test.goindex dacf973ade..b45d7d1d1f 100644--- a/kernel/model/search_attribute_view_test.go+++ b/kernel/model/search_attribute_view_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/search_cancellation_fts5_test.go b/kernel/model/search_cancellation_fts5_test.goindex 4aa2d58d9b..479d11c820 100644--- a/kernel/model/search_cancellation_fts5_test.go+++ b/kernel/model/search_cancellation_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/search_case_replace_fts5_test.go b/kernel/model/search_case_replace_fts5_test.goindex 03fad7385c..387d8bdb66 100644--- a/kernel/model/search_case_replace_fts5_test.go+++ b/kernel/model/search_case_replace_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/search_collection_fts5_test.go b/kernel/model/search_collection_fts5_test.goindex fcb9964af6..7dd972463d 100644--- a/kernel/model/search_collection_fts5_test.go+++ b/kernel/model/search_collection_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/search_concurrent_replace_sqlcipher_test.go b/kernel/model/search_concurrent_replace_sqlcipher_test.goindex e9cf09fcf8..db7bddf50b 100644--- a/kernel/model/search_concurrent_replace_sqlcipher_test.go+++ b/kernel/model/search_concurrent_replace_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/search_custom_fts5_test.go b/kernel/model/search_custom_fts5_test.goindex af9a6ebe24..2cc0a7cc10 100644--- a/kernel/model/search_custom_fts5_test.go+++ b/kernel/model/search_custom_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/search_custom_test.go b/kernel/model/search_custom_test.goindex 5a8549fcae..357dcb501a 100644--- a/kernel/model/search_custom_test.go+++ b/kernel/model/search_custom_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/search_document_test.go b/kernel/model/search_document_test.goindex f7b416f3c6..dcc0d98b72 100644--- a/kernel/model/search_document_test.go+++ b/kernel/model/search_document_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/search_escape_test.go b/kernel/model/search_escape_test.goindex 51117f895b..387dd06301 100644--- a/kernel/model/search_escape_test.go+++ b/kernel/model/search_escape_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/search_highlight_test.go b/kernel/model/search_highlight_test.goindex 5ac9b68e1c..087795ae73 100644--- a/kernel/model/search_highlight_test.go+++ b/kernel/model/search_highlight_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/search_hpath_fts_test.go b/kernel/model/search_hpath_fts_test.goindex 39314af74c..bf932077d5 100644--- a/kernel/model/search_hpath_fts_test.go+++ b/kernel/model/search_hpath_fts_test.go@@ -1,20 +1,8 @@-//go:build fts5--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later++//go:build fts5package modeldiff --git a/kernel/model/search_id_fts5_test.go b/kernel/model/search_id_fts5_test.goindex c9dbe5fc8a..47f0ce07ed 100644--- a/kernel/model/search_id_fts5_test.go+++ b/kernel/model/search_id_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/search_id_test.go b/kernel/model/search_id_test.goindex 78677e3a23..d51264389f 100644--- a/kernel/model/search_id_test.go+++ b/kernel/model/search_id_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport "testing"diff --git a/kernel/model/search_literal_replace_test.go b/kernel/model/search_literal_replace_test.goindex 8f334b2187..65887004c9 100644--- a/kernel/model/search_literal_replace_test.go+++ b/kernel/model/search_literal_replace_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/search_mindmap_fts5_test.go b/kernel/model/search_mindmap_fts5_test.goindex 68e6da2c88..997a978073 100644--- a/kernel/model/search_mindmap_fts5_test.go+++ b/kernel/model/search_mindmap_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/search_mindmap_test.go b/kernel/model/search_mindmap_test.goindex dc351e87a1..ff4869ea5c 100644--- a/kernel/model/search_mindmap_test.go+++ b/kernel/model/search_mindmap_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/search_processing_context_benchmark_test.go b/kernel/model/search_processing_context_benchmark_test.goindex 92b5ea2506..9efeb8f311 100644--- a/kernel/model/search_processing_context_benchmark_test.go+++ b/kernel/model/search_processing_context_benchmark_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/search_processing_context_test.go b/kernel/model/search_processing_context_test.goindex 8fb2bc25be..d3f8970a39 100644--- a/kernel/model/search_processing_context_test.go+++ b/kernel/model/search_processing_context_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/search_ref_fts5_test.go b/kernel/model/search_ref_fts5_test.goindex 5b7feb1085..2972492eeb 100644--- a/kernel/model/search_ref_fts5_test.go+++ b/kernel/model/search_ref_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/search_replace_test.go b/kernel/model/search_replace_test.goindex 04e38d3647..461f40aa95 100644--- a/kernel/model/search_replace_test.go+++ b/kernel/model/search_replace_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/search_snippet_test.go b/kernel/model/search_snippet_test.goindex 0d10383fda..ad8e72b658 100644--- a/kernel/model/search_snippet_test.go+++ b/kernel/model/search_snippet_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/search_sql_comments_test.go b/kernel/model/search_sql_comments_test.goindex 736b15cab8..454bfbb27e 100644--- a/kernel/model/search_sql_comments_test.go+++ b/kernel/model/search_sql_comments_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/search_subtypes.go b/kernel/model/search_subtypes.goindex 1403bb1b4d..d3c6db86c0 100644--- a/kernel/model/search_subtypes.go+++ b/kernel/model/search_subtypes.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/search_subtypes_test.go b/kernel/model/search_subtypes_test.goindex a3b6f2da9c..029fc7544c 100644--- a/kernel/model/search_subtypes_test.go+++ b/kernel/model/search_subtypes_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/search_test.go b/kernel/model/search_test.goindex 752263580e..777ef32155 100644--- a/kernel/model/search_test.go+++ b/kernel/model/search_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/session.go b/kernel/model/session.goindex d7e7e77774..0227f242b5 100644--- a/kernel/model/session.go+++ b/kernel/model/session.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/session_concurrency_test.go b/kernel/model/session_concurrency_test.goindex f0a98eb17c..fb55b691ab 100644--- a/kernel/model/session_concurrency_test.go+++ b/kernel/model/session_concurrency_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/session_test.go b/kernel/model/session_test.goindex abad29416d..a4ef9c5895 100644--- a/kernel/model/session_test.go+++ b/kernel/model/session_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/settings_reset.go b/kernel/model/settings_reset.goindex 687273170b..e708fa365e 100644--- a/kernel/model/settings_reset.go+++ b/kernel/model/settings_reset.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/settings_reset_test.go b/kernel/model/settings_reset_test.goindex a879ccd031..f84c5f5ec1 100644--- a/kernel/model/settings_reset_test.go+++ b/kernel/model/settings_reset_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/shortcuts.go b/kernel/model/shortcuts.goindex e2e7581304..87cc8fd056 100644--- a/kernel/model/shortcuts.go+++ b/kernel/model/shortcuts.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/shortcuts_creation.go b/kernel/model/shortcuts_creation.goindex 6fa103f935..57bf8086c0 100644--- a/kernel/model/shortcuts_creation.go+++ b/kernel/model/shortcuts_creation.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/shortcuts_creation_test.go b/kernel/model/shortcuts_creation_test.goindex 4201c103a0..2bea6cd2ff 100644--- a/kernel/model/shortcuts_creation_test.go+++ b/kernel/model/shortcuts_creation_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/shortcuts_fts5_test.go b/kernel/model/shortcuts_fts5_test.goindex d97b515d13..f9cee7a2ea 100644--- a/kernel/model/shortcuts_fts5_test.go+++ b/kernel/model/shortcuts_fts5_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build fts5diff --git a/kernel/model/shortcuts_markdown_fts5_test.go b/kernel/model/shortcuts_markdown_fts5_test.goindex 158f95e068..7a8a594529 100644--- a/kernel/model/shortcuts_markdown_fts5_test.go+++ b/kernel/model/shortcuts_markdown_fts5_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build fts5diff --git a/kernel/model/shortcuts_test.go b/kernel/model/shortcuts_test.goindex 739f5d243b..619a838fa8 100644--- a/kernel/model/shortcuts_test.go+++ b/kernel/model/shortcuts_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/shorthand_markdown.go b/kernel/model/shorthand_markdown.goindex eedeaa80a1..6c1f88b814 100644--- a/kernel/model/shorthand_markdown.go+++ b/kernel/model/shorthand_markdown.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/shorthand_markdown_test.go b/kernel/model/shorthand_markdown_test.goindex 1f103a02b5..c2e50100c2 100644--- a/kernel/model/shorthand_markdown_test.go+++ b/kernel/model/shorthand_markdown_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/slash_frequent.go b/kernel/model/slash_frequent.goindex 7c3160405e..2100cb0b73 100644--- a/kernel/model/slash_frequent.go+++ b/kernel/model/slash_frequent.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport "github.com/siyuan-note/siyuan/kernel/conf"diff --git a/kernel/model/slash_frequent_test.go b/kernel/model/slash_frequent_test.goindex 5dc35c924b..071125e305 100644--- a/kernel/model/slash_frequent_test.go+++ b/kernel/model/slash_frequent_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/snippet.go b/kernel/model/snippet.goindex b065201f61..b173c8838f 100644--- a/kernel/model/snippet.go+++ b/kernel/model/snippet.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/snippet_agent.go b/kernel/model/snippet_agent.goindex 3da9c11646..2bf8fc6f15 100644--- a/kernel/model/snippet_agent.go+++ b/kernel/model/snippet_agent.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/snippet_agent_test.go b/kernel/model/snippet_agent_test.goindex bd1864b807..8e9c6c631c 100644--- a/kernel/model/snippet_agent_test.go+++ b/kernel/model/snippet_agent_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sort_conf.go b/kernel/model/sort_conf.goindex 0346a1ab2f..4ade13c5f1 100644--- a/kernel/model/sort_conf.go+++ b/kernel/model/sort_conf.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sort_conf_append.go b/kernel/model/sort_conf_append.goindex 89b5459645..435eee203b 100644--- a/kernel/model/sort_conf_append.go+++ b/kernel/model/sort_conf_append.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sort_conf_append_test.go b/kernel/model/sort_conf_append_test.goindex b64560ba24..17af329e28 100644--- a/kernel/model/sort_conf_append_test.go+++ b/kernel/model/sort_conf_append_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sort_conf_test.go b/kernel/model/sort_conf_test.goindex ae9814aa0f..bd1e9b1639 100644--- a/kernel/model/sort_conf_test.go+++ b/kernel/model/sort_conf_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/storage.go b/kernel/model/storage.goindex 1844eb4b69..40e30f4ae8 100644--- a/kernel/model/storage.go+++ b/kernel/model/storage.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/storage_test.go b/kernel/model/storage_test.goindex 456e8fd599..d4e39760bb 100644--- a/kernel/model/storage_test.go+++ b/kernel/model/storage_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/structured_titles_crypto_test.go b/kernel/model/structured_titles_crypto_test.goindex d105bd66e9..d584aa9bc0 100644--- a/kernel/model/structured_titles_crypto_test.go+++ b/kernel/model/structured_titles_crypto_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/structured_titles_test.go b/kernel/model/structured_titles_test.goindex 625dbb6b17..598fabe365 100644--- a/kernel/model/structured_titles_test.go+++ b/kernel/model/structured_titles_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/structured_titles_upgrade_test.go b/kernel/model/structured_titles_upgrade_test.goindex 82b7bee8d7..84b8209a7f 100644--- a/kernel/model/structured_titles_upgrade_test.go+++ b/kernel/model/structured_titles_upgrade_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/sync.go b/kernel/model/sync.goindex 667c43de58..8441fc60fd 100644--- a/kernel/model/sync.go+++ b/kernel/model/sync.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/sync_auto_pause.go b/kernel/model/sync_auto_pause.goindex 55f3b51e0a..efadd1cdc9 100644--- a/kernel/model/sync_auto_pause.go+++ b/kernel/model/sync_auto_pause.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_auto_pause_test.go b/kernel/model/sync_auto_pause_test.goindex 8d926b32e2..94d73a24db 100644--- a/kernel/model/sync_auto_pause_test.go+++ b/kernel/model/sync_auto_pause_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_checkout.go b/kernel/model/sync_checkout.goindex 24b967a131..06887a521a 100644--- a/kernel/model/sync_checkout.go+++ b/kernel/model/sync_checkout.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_checkout_fts5_test.go b/kernel/model/sync_checkout_fts5_test.goindex 7938a94c49..d49069b675 100644--- a/kernel/model/sync_checkout_fts5_test.go+++ b/kernel/model/sync_checkout_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/sync_checkout_state.go b/kernel/model/sync_checkout_state.goindex dc4f6e6707..4fccd6e60e 100644--- a/kernel/model/sync_checkout_state.go+++ b/kernel/model/sync_checkout_state.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_checkout_state_test.go b/kernel/model/sync_checkout_state_test.goindex 287b896511..66f0da25ed 100644--- a/kernel/model/sync_checkout_state_test.go+++ b/kernel/model/sync_checkout_state_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_checkout_test.go b/kernel/model/sync_checkout_test.goindex c9c79e6e41..e63779c587 100644--- a/kernel/model/sync_checkout_test.go+++ b/kernel/model/sync_checkout_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_config_clear.go b/kernel/model/sync_config_clear.goindex 82c58ebdf5..a839d65039 100644--- a/kernel/model/sync_config_clear.go+++ b/kernel/model/sync_config_clear.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_config_clear_test.go b/kernel/model/sync_config_clear_test.goindex 1f17ac5933..26318228c3 100644--- a/kernel/model/sync_config_clear_test.go+++ b/kernel/model/sync_config_clear_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_config_test.go b/kernel/model/sync_config_test.goindex dee87e5d53..928a6edecd 100644--- a/kernel/model/sync_config_test.go+++ b/kernel/model/sync_config_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/sync_dedup.go b/kernel/model/sync_dedup.goindex 53199fd339..7476a9f5ff 100644--- a/kernel/model/sync_dedup.go+++ b/kernel/model/sync_dedup.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/sync_dedup_test.go b/kernel/model/sync_dedup_test.goindex a461697b50..1471072a29 100644--- a/kernel/model/sync_dedup_test.go+++ b/kernel/model/sync_dedup_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/sync_directory_test.go b/kernel/model/sync_directory_test.goindex 81d4b68c72..415d69b6db 100644--- a/kernel/model/sync_directory_test.go+++ b/kernel/model/sync_directory_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_dns_test.go b/kernel/model/sync_dns_test.goindex 74189d0400..60a6fbd338 100644--- a/kernel/model/sync_dns_test.go+++ b/kernel/model/sync_dns_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_error.go b/kernel/model/sync_error.goindex 805ff78f36..8e867de660 100644--- a/kernel/model/sync_error.go+++ b/kernel/model/sync_error.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_error_test.go b/kernel/model/sync_error_test.goindex 95e8524c75..9d1e001d00 100644--- a/kernel/model/sync_error_test.go+++ b/kernel/model/sync_error_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_ignore.go b/kernel/model/sync_ignore.goindex a5a72b8125..19797ce848 100644--- a/kernel/model/sync_ignore.go+++ b/kernel/model/sync_ignore.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_ignore_test.go b/kernel/model/sync_ignore_test.goindex 09f44eb458..9a315c31c6 100644--- a/kernel/model/sync_ignore_test.go+++ b/kernel/model/sync_ignore_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_ignore_windows_test.go b/kernel/model/sync_ignore_windows_test.goindex 89050b0d77..4ab83bdb36 100644--- a/kernel/model/sync_ignore_windows_test.go+++ b/kernel/model/sync_ignore_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_index_list.go b/kernel/model/sync_index_list.goindex 0f0e875a55..dbea46a7c7 100644--- a/kernel/model/sync_index_list.go+++ b/kernel/model/sync_index_list.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_index_list_test.go b/kernel/model/sync_index_list_test.goindex 51dafe8d03..04926257b8 100644--- a/kernel/model/sync_index_list_test.go+++ b/kernel/model/sync_index_list_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_mutation_test.go b/kernel/model/sync_mutation_test.goindex 0cc2eb600f..b3e5ce6b62 100644--- a/kernel/model/sync_mutation_test.go+++ b/kernel/model/sync_mutation_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_path.go b/kernel/model/sync_path.goindex 9a20ba853a..26c2f6f0f2 100644--- a/kernel/model/sync_path.go+++ b/kernel/model/sync_path.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/sync_path_test.go b/kernel/model/sync_path_test.goindex 0116dfb9c3..16f87cc7ab 100644--- a/kernel/model/sync_path_test.go+++ b/kernel/model/sync_path_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/sync_pending.go b/kernel/model/sync_pending.goindex a3fb01b44b..01c9c098fe 100644--- a/kernel/model/sync_pending.go+++ b/kernel/model/sync_pending.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_pending_test.go b/kernel/model/sync_pending_test.goindex 4345508262..f20c0c8c48 100644--- a/kernel/model/sync_pending_test.go+++ b/kernel/model/sync_pending_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_perception.go b/kernel/model/sync_perception.goindex 6cc12e445f..8287b70320 100644--- a/kernel/model/sync_perception.go+++ b/kernel/model/sync_perception.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_perception_test.go b/kernel/model/sync_perception_test.goindex e0baf11105..78e92b2353 100644--- a/kernel/model/sync_perception_test.go+++ b/kernel/model/sync_perception_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_plugin_rename_uninstall_test.go b/kernel/model/sync_plugin_rename_uninstall_test.goindex bcd4598757..ec67bc6684 100644--- a/kernel/model/sync_plugin_rename_uninstall_test.go+++ b/kernel/model/sync_plugin_rename_uninstall_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_probe.go b/kernel/model/sync_probe.goindex 61c835cd37..7aefe711bc 100644--- a/kernel/model/sync_probe.go+++ b/kernel/model/sync_probe.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_probe_path_test.go b/kernel/model/sync_probe_path_test.goindex 4a35623388..4b8e8daf8e 100644--- a/kernel/model/sync_probe_path_test.go+++ b/kernel/model/sync_probe_path_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_probe_test.go b/kernel/model/sync_probe_test.goindex b586f66636..64b5518ef1 100644--- a/kernel/model/sync_probe_test.go+++ b/kernel/model/sync_probe_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_probe_webdav.go b/kernel/model/sync_probe_webdav.goindex 005be9f876..fff2107809 100644--- a/kernel/model/sync_probe_webdav.go+++ b/kernel/model/sync_probe_webdav.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_probe_webdav_test.go b/kernel/model/sync_probe_webdav_test.goindex 7df3fb8230..cad861daaf 100644--- a/kernel/model/sync_probe_webdav_test.go+++ b/kernel/model/sync_probe_webdav_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_provider_completion_test.go b/kernel/model/sync_provider_completion_test.goindex bdabdf3f54..d33fa94427 100644--- a/kernel/model/sync_provider_completion_test.go+++ b/kernel/model/sync_provider_completion_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_provider_validation_test.go b/kernel/model/sync_provider_validation_test.goindex eb780e1cd5..0769d72fcd 100644--- a/kernel/model/sync_provider_validation_test.go+++ b/kernel/model/sync_provider_validation_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/sync_s3_validation_test.go b/kernel/model/sync_s3_validation_test.goindex 01d9e70f4e..b066fe6f7e 100644--- a/kernel/model/sync_s3_validation_test.go+++ b/kernel/model/sync_s3_validation_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/system_contract.go b/kernel/model/system_contract.goindex 3013ca1e02..f9ac60cb82 100644--- a/kernel/model/system_contract.go+++ b/kernel/model/system_contract.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/table_cell_rich_export.go b/kernel/model/table_cell_rich_export.goindex 5549ce8bb0..5b53b9bf4d 100644--- a/kernel/model/table_cell_rich_export.go+++ b/kernel/model/table_cell_rich_export.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/table_cell_rich_fts5_test.go b/kernel/model/table_cell_rich_fts5_test.goindex e1c5bf2f61..7698e31bc3 100644--- a/kernel/model/table_cell_rich_fts5_test.go+++ b/kernel/model/table_cell_rich_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/table_cell_rich_mutation_fts5_test.go b/kernel/model/table_cell_rich_mutation_fts5_test.goindex 0b848c6759..7a48ce1e86 100644--- a/kernel/model/table_cell_rich_mutation_fts5_test.go+++ b/kernel/model/table_cell_rich_mutation_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/table_cell_rich_test.go b/kernel/model/table_cell_rich_test.goindex 9f6d12ad7b..e659864d5c 100644--- a/kernel/model/table_cell_rich_test.go+++ b/kernel/model/table_cell_rich_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/tabs_export.go b/kernel/model/tabs_export.goindex 13371ae1d5..70543647ea 100644--- a/kernel/model/tabs_export.go+++ b/kernel/model/tabs_export.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/tabs_export_test.go b/kernel/model/tabs_export_test.goindex b851ed30dd..8a261e8572 100644--- a/kernel/model/tabs_export_test.go+++ b/kernel/model/tabs_export_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/tabs_guide_test.go b/kernel/model/tabs_guide_test.goindex 7bd130447e..d324543e29 100644--- a/kernel/model/tabs_guide_test.go+++ b/kernel/model/tabs_guide_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/tabs_preview_test.go b/kernel/model/tabs_preview_test.goindex dda0b04d0a..317b2dcb66 100644--- a/kernel/model/tabs_preview_test.go+++ b/kernel/model/tabs_preview_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/tabs_spec_test.go b/kernel/model/tabs_spec_test.goindex 7386a2a99c..3f33f26e8d 100644--- a/kernel/model/tabs_spec_test.go+++ b/kernel/model/tabs_spec_test.go@@ -1,5 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/tabs_task_test.go b/kernel/model/tabs_task_test.goindex bd3b6ba58e..c9cd0313cf 100644--- a/kernel/model/tabs_task_test.go+++ b/kernel/model/tabs_task_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/tabs_test.go b/kernel/model/tabs_test.goindex 6d8719d300..99d54d79f6 100644--- a/kernel/model/tabs_test.go+++ b/kernel/model/tabs_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/tag.go b/kernel/model/tag.goindex 13e237d91c..4be2cf56c0 100644--- a/kernel/model/tag.go+++ b/kernel/model/tag.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/tag_fts5_test.go b/kernel/model/tag_fts5_test.goindex 4fe0b5c2bc..d40827380a 100644--- a/kernel/model/tag_fts5_test.go+++ b/kernel/model/tag_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/template.go b/kernel/model/template.goindex ac73add3fd..910ed20c07 100644--- a/kernel/model/template.go+++ b/kernel/model/template.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/template_database_fts5_test.go b/kernel/model/template_database_fts5_test.goindex 235c232520..593e965ed3 100644--- a/kernel/model/template_database_fts5_test.go+++ b/kernel/model/template_database_fts5_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build fts5diff --git a/kernel/model/template_doc_tree.go b/kernel/model/template_doc_tree.goindex 5e49824491..b348743683 100644--- a/kernel/model/template_doc_tree.go+++ b/kernel/model/template_doc_tree.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/template_doc_tree_fts5_test.go b/kernel/model/template_doc_tree_fts5_test.goindex f47a5fbd49..f6a4c8bf7c 100644--- a/kernel/model/template_doc_tree_fts5_test.go+++ b/kernel/model/template_doc_tree_fts5_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build fts5diff --git a/kernel/model/template_doc_tree_render.go b/kernel/model/template_doc_tree_render.goindex 0adb9adb9e..a8b946d084 100644--- a/kernel/model/template_doc_tree_render.go+++ b/kernel/model/template_doc_tree_render.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/template_doc_tree_test.go b/kernel/model/template_doc_tree_test.goindex 54146cca1e..95c4bb5e37 100644--- a/kernel/model/template_doc_tree_test.go+++ b/kernel/model/template_doc_tree_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/template_export_attrs.go b/kernel/model/template_export_attrs.goindex 33e5ede191..5777c91b08 100644--- a/kernel/model/template_export_attrs.go+++ b/kernel/model/template_export_attrs.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/template_fts5_test.go b/kernel/model/template_fts5_test.goindex 82b89f38ac..be57b630db 100644--- a/kernel/model/template_fts5_test.go+++ b/kernel/model/template_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/template_manage.go b/kernel/model/template_manage.goindex cfdf1eea06..199314d06d 100644--- a/kernel/model/template_manage.go+++ b/kernel/model/template_manage.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/template_manage_test.go b/kernel/model/template_manage_test.goindex e35a441c31..2750ee14a3 100644--- a/kernel/model/template_manage_test.go+++ b/kernel/model/template_manage_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/template_path.go b/kernel/model/template_path.goindex 9678330d07..ceb3bde1ba 100644--- a/kernel/model/template_path.go+++ b/kernel/model/template_path.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/template_path_test.go b/kernel/model/template_path_test.goindex d053118088..ce6eea9b47 100644--- a/kernel/model/template_path_test.go+++ b/kernel/model/template_path_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/template_security_test.go b/kernel/model/template_security_test.goindex 78a8a8a65d..87f24e73d9 100644--- a/kernel/model/template_security_test.go+++ b/kernel/model/template_security_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/template_tabs.go b/kernel/model/template_tabs.goindex 52ec41124e..c8f1590a06 100644--- a/kernel/model/template_tabs.go+++ b/kernel/model/template_tabs.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/model/template_tabs_test.go b/kernel/model/template_tabs_test.goindex de8b0d1fe1..39810b2d4c 100644--- a/kernel/model/template_tabs_test.go+++ b/kernel/model/template_tabs_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/template_test.go b/kernel/model/template_test.goindex 2efb4bfac7..25a0edc4fe 100644--- a/kernel/model/template_test.go+++ b/kernel/model/template_test.go@@ -1,17 +1,6 @@+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/theme.go b/kernel/model/theme.goindex c4273ad435..087b369099 100644--- a/kernel/model/theme.go+++ b/kernel/model/theme.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/theme_test.go b/kernel/model/theme_test.goindex 90bcb71a3b..e58e55656b 100644--- a/kernel/model/theme_test.go+++ b/kernel/model/theme_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/themes_watcher.go b/kernel/model/themes_watcher.goindex 817af0ccff..8391550852 100644--- a/kernel/model/themes_watcher.go+++ b/kernel/model/themes_watcher.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build !darwindiff --git a/kernel/model/themes_watcher_darwin.go b/kernel/model/themes_watcher_darwin.goindex d93bdb1b48..c8979e96de 100644--- a/kernel/model/themes_watcher_darwin.go+++ b/kernel/model/themes_watcher_darwin.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build darwindiff --git a/kernel/model/themes_watcher_test.go b/kernel/model/themes_watcher_test.goindex 691fea831b..3379385ce5 100644--- a/kernel/model/themes_watcher_test.go+++ b/kernel/model/themes_watcher_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build !darwindiff --git a/kernel/model/transaction.go b/kernel/model/transaction.goindex e7f329aac3..0286b9691f 100644--- a/kernel/model/transaction.go+++ b/kernel/model/transaction.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/transaction_attribute_view_test.go b/kernel/model/transaction_attribute_view_test.goindex fa2e0f878d..f629b57a25 100644--- a/kernel/model/transaction_attribute_view_test.go+++ b/kernel/model/transaction_attribute_view_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/transaction_block_swap.go b/kernel/model/transaction_block_swap.goindex 0d19224bdf..d1cbf56d3b 100644--- a/kernel/model/transaction_block_swap.go+++ b/kernel/model/transaction_block_swap.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_block_swap_fts5_test.go b/kernel/model/transaction_block_swap_fts5_test.goindex f9c3e9d820..fcd6f83fae 100644--- a/kernel/model/transaction_block_swap_fts5_test.go+++ b/kernel/model/transaction_block_swap_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/transaction_cancel_list_fts5_test.go b/kernel/model/transaction_cancel_list_fts5_test.goindex b5acbf90f7..b61742dce5 100644--- a/kernel/model/transaction_cancel_list_fts5_test.go+++ b/kernel/model/transaction_cancel_list_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/transaction_completion_fts5_test.go b/kernel/model/transaction_completion_fts5_test.goindex 83ae64e517..fbcb98b12c 100644--- a/kernel/model/transaction_completion_fts5_test.go+++ b/kernel/model/transaction_completion_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/transaction_completion_test.go b/kernel/model/transaction_completion_test.goindex 2b6a062d45..4713319b07 100644--- a/kernel/model/transaction_completion_test.go+++ b/kernel/model/transaction_completion_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_fold_fts5_test.go b/kernel/model/transaction_fold_fts5_test.goindex 7dbe62b338..5ecd06087a 100644--- a/kernel/model/transaction_fold_fts5_test.go+++ b/kernel/model/transaction_fold_fts5_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build fts5diff --git a/kernel/model/transaction_fold_test.go b/kernel/model/transaction_fold_test.goindex 34cd3ef447..5975a6f031 100644--- a/kernel/model/transaction_fold_test.go+++ b/kernel/model/transaction_fold_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/transaction_history_order_fts5_test.go b/kernel/model/transaction_history_order_fts5_test.goindex 86de0c473d..2b0ea2cfe8 100644--- a/kernel/model/transaction_history_order_fts5_test.go+++ b/kernel/model/transaction_history_order_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/transaction_index_changes.go b/kernel/model/transaction_index_changes.goindex 62ccfc3e63..00d4149690 100644--- a/kernel/model/transaction_index_changes.go+++ b/kernel/model/transaction_index_changes.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_index_changes_fts5_test.go b/kernel/model/transaction_index_changes_fts5_test.goindex ee3b504f86..85eecf140c 100644--- a/kernel/model/transaction_index_changes_fts5_test.go+++ b/kernel/model/transaction_index_changes_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/transaction_list_conversion.go b/kernel/model/transaction_list_conversion.goindex 6d6912ae3f..fed0443238 100644--- a/kernel/model/transaction_list_conversion.go+++ b/kernel/model/transaction_list_conversion.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_list_conversion_fts5_test.go b/kernel/model/transaction_list_conversion_fts5_test.goindex 5672736770..bfdd6851dd 100644--- a/kernel/model/transaction_list_conversion_fts5_test.go+++ b/kernel/model/transaction_list_conversion_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/transaction_list_conversion_sqlcipher_test.go b/kernel/model/transaction_list_conversion_sqlcipher_test.goindex 7a98d5f3da..1958d6e158 100644--- a/kernel/model/transaction_list_conversion_sqlcipher_test.go+++ b/kernel/model/transaction_list_conversion_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/transaction_list_conversion_test.go b/kernel/model/transaction_list_conversion_test.goindex cd5914f2ba..1ef52d8440 100644--- a/kernel/model/transaction_list_conversion_test.go+++ b/kernel/model/transaction_list_conversion_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_list_item_fold_test.go b/kernel/model/transaction_list_item_fold_test.goindex 849b8b420b..8c5d867a19 100644--- a/kernel/model/transaction_list_item_fold_test.go+++ b/kernel/model/transaction_list_item_fold_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_list_mindmap.go b/kernel/model/transaction_list_mindmap.goindex e9fbce0243..8f360e219c 100644--- a/kernel/model/transaction_list_mindmap.go+++ b/kernel/model/transaction_list_mindmap.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_list_mindmap_fts5_test.go b/kernel/model/transaction_list_mindmap_fts5_test.goindex 1759e00d6e..ad48151e52 100644--- a/kernel/model/transaction_list_mindmap_fts5_test.go+++ b/kernel/model/transaction_list_mindmap_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/transaction_list_mindmap_test.go b/kernel/model/transaction_list_mindmap_test.goindex ecd118d3b7..50f5571592 100644--- a/kernel/model/transaction_list_mindmap_test.go+++ b/kernel/model/transaction_list_mindmap_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_memory_fts5_test.go b/kernel/model/transaction_memory_fts5_test.goindex aec44fc341..b314681298 100644--- a/kernel/model/transaction_memory_fts5_test.go+++ b/kernel/model/transaction_memory_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/transaction_mindmap_appearance.go b/kernel/model/transaction_mindmap_appearance.goindex 4755027b97..4a901d1c38 100644--- a/kernel/model/transaction_mindmap_appearance.go+++ b/kernel/model/transaction_mindmap_appearance.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport "regexp"diff --git a/kernel/model/transaction_mindmap_appearance_crypto_test.go b/kernel/model/transaction_mindmap_appearance_crypto_test.goindex 13f305ba9e..facb5ebf42 100644--- a/kernel/model/transaction_mindmap_appearance_crypto_test.go+++ b/kernel/model/transaction_mindmap_appearance_crypto_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/transaction_mindmap_appearance_test.go b/kernel/model/transaction_mindmap_appearance_test.goindex db770d6574..9a713fd86a 100644--- a/kernel/model/transaction_mindmap_appearance_test.go+++ b/kernel/model/transaction_mindmap_appearance_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_mindmap_summary.go b/kernel/model/transaction_mindmap_summary.goindex 67ad0a7779..876f4b4d5c 100644--- a/kernel/model/transaction_mindmap_summary.go+++ b/kernel/model/transaction_mindmap_summary.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_mindmap_summary_test.go b/kernel/model/transaction_mindmap_summary_test.goindex 1ccb60a1e8..35180b4ef5 100644--- a/kernel/model/transaction_mindmap_summary_test.go+++ b/kernel/model/transaction_mindmap_summary_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_move_next_fts5_test.go b/kernel/model/transaction_move_next_fts5_test.goindex 164ca2d3ee..afa0fcff7f 100644--- a/kernel/model/transaction_move_next_fts5_test.go+++ b/kernel/model/transaction_move_next_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/transaction_move_refs_fts5_test.go b/kernel/model/transaction_move_refs_fts5_test.goindex 0c70ff4439..575932eb39 100644--- a/kernel/model/transaction_move_refs_fts5_test.go+++ b/kernel/model/transaction_move_refs_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/transaction_native_container.go b/kernel/model/transaction_native_container.goindex fe7ebdc5d5..1cab4536a8 100644--- a/kernel/model/transaction_native_container.go+++ b/kernel/model/transaction_native_container.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_ref_cache_test.go b/kernel/model/transaction_ref_cache_test.goindex 5f14a77723..6f70156108 100644--- a/kernel/model/transaction_ref_cache_test.go+++ b/kernel/model/transaction_ref_cache_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_source.go b/kernel/model/transaction_source.goindex 5a1bf63a82..9a74bdec84 100644--- a/kernel/model/transaction_source.go+++ b/kernel/model/transaction_source.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/transaction_source_fts5_test.go b/kernel/model/transaction_source_fts5_test.goindex 715dca9bf2..16a95144de 100644--- a/kernel/model/transaction_source_fts5_test.go+++ b/kernel/model/transaction_source_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/transaction_source_sqlcipher_test.go b/kernel/model/transaction_source_sqlcipher_test.goindex f07e494401..8f8195697f 100644--- a/kernel/model/transaction_source_sqlcipher_test.go+++ b/kernel/model/transaction_source_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package modeldiff --git a/kernel/model/transaction_structure_test.go b/kernel/model/transaction_structure_test.goindex 219ed60675..e1e2bbd3e6 100644--- a/kernel/model/transaction_structure_test.go+++ b/kernel/model/transaction_structure_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/transaction_sync_fts5_test.go b/kernel/model/transaction_sync_fts5_test.goindex 125891845c..4de58ddb44 100644--- a/kernel/model/transaction_sync_fts5_test.go+++ b/kernel/model/transaction_sync_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/transaction_sync_test.go b/kernel/model/transaction_sync_test.goindex 473adb0b16..048f27217a 100644--- a/kernel/model/transaction_sync_test.go+++ b/kernel/model/transaction_sync_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/transaction_tabs_fts5_test.go b/kernel/model/transaction_tabs_fts5_test.goindex 2b15a52a77..016b25e9bd 100644--- a/kernel/model/transaction_tabs_fts5_test.go+++ b/kernel/model/transaction_tabs_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package modeldiff --git a/kernel/model/transaction_test.go b/kernel/model/transaction_test.goindex 956046bf42..84a4500a6e 100644--- a/kernel/model/transaction_test.go+++ b/kernel/model/transaction_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/tree.go b/kernel/model/tree.goindex e18ac4f121..a01c667d77 100644--- a/kernel/model/tree.go+++ b/kernel/model/tree.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/tree_notification_test.go b/kernel/model/tree_notification_test.goindex 070bda5130..2504d38c69 100644--- a/kernel/model/tree_notification_test.go+++ b/kernel/model/tree_notification_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/tree_test.go b/kernel/model/tree_test.goindex 6c2e30b38a..af77f821a1 100644--- a/kernel/model/tree_test.go+++ b/kernel/model/tree_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/undolog.go b/kernel/model/undolog.goindex 388dd9c06c..b879e00a47 100644--- a/kernel/model/undolog.go+++ b/kernel/model/undolog.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/undolog_test.go b/kernel/model/undolog_test.goindex dc22649652..a808378edf 100644--- a/kernel/model/undolog_test.go+++ b/kernel/model/undolog_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/update_channel.go b/kernel/model/update_channel.goindex a4f80b7055..12bacc2ac6 100644--- a/kernel/model/update_channel.go+++ b/kernel/model/update_channel.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/updater.go b/kernel/model/updater.goindex 239595aee3..fa527ee22c 100644--- a/kernel/model/updater.go+++ b/kernel/model/updater.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/updater_cleanup.go b/kernel/model/updater_cleanup.goindex 67ce3bcbaa..815a736f83 100644--- a/kernel/model/updater_cleanup.go+++ b/kernel/model/updater_cleanup.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/updater_cleanup_test.go b/kernel/model/updater_cleanup_test.goindex 298350033a..b443e2a5f4 100644--- a/kernel/model/updater_cleanup_test.go+++ b/kernel/model/updater_cleanup_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/updater_files.go b/kernel/model/updater_files.goindex 0d36a85745..86e1600e90 100644--- a/kernel/model/updater_files.go+++ b/kernel/model/updater_files.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/updater_files_test.go b/kernel/model/updater_files_test.goindex 5cecaf0f8d..94d7bfd102 100644--- a/kernel/model/updater_files_test.go+++ b/kernel/model/updater_files_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/updater_link_unix.go b/kernel/model/updater_link_unix.goindex 1dfac0ec2d..a70e6c65fb 100644--- a/kernel/model/updater_link_unix.go+++ b/kernel/model/updater_link_unix.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build !windowspackage modeldiff --git a/kernel/model/updater_link_windows.go b/kernel/model/updater_link_windows.goindex f81ff5c204..ef190313ba 100644--- a/kernel/model/updater_link_windows.go+++ b/kernel/model/updater_link_windows.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/updater_manual_test.go b/kernel/model/updater_manual_test.goindex d3d1061ac6..47e0ccb99d 100644--- a/kernel/model/updater_manual_test.go+++ b/kernel/model/updater_manual_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/updater_notification_test.go b/kernel/model/updater_notification_test.goindex 79d8c40b83..b7585d91ea 100644--- a/kernel/model/updater_notification_test.go+++ b/kernel/model/updater_notification_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/updater_probe.go b/kernel/model/updater_probe.goindex 90e16de88a..2927ee18a9 100644--- a/kernel/model/updater_probe.go+++ b/kernel/model/updater_probe.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/updater_probe_test.go b/kernel/model/updater_probe_test.goindex 482daca765..558c7aa1e4 100644--- a/kernel/model/updater_probe_test.go+++ b/kernel/model/updater_probe_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/updater_ready.go b/kernel/model/updater_ready.goindex e8ebc19e78..b15a2b4e86 100644--- a/kernel/model/updater_ready.go+++ b/kernel/model/updater_ready.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/updater_ready_diagnostics.go b/kernel/model/updater_ready_diagnostics.goindex 4395e240b5..e058ce2938 100644--- a/kernel/model/updater_ready_diagnostics.go+++ b/kernel/model/updater_ready_diagnostics.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/updater_ready_diagnostics_test.go b/kernel/model/updater_ready_diagnostics_test.goindex 8bb56d5fe1..50259e4ba0 100644--- a/kernel/model/updater_ready_diagnostics_test.go+++ b/kernel/model/updater_ready_diagnostics_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/updater_ready_test.go b/kernel/model/updater_ready_test.goindex b7cf91a0eb..d801c5f1ae 100644--- a/kernel/model/updater_ready_test.go+++ b/kernel/model/updater_ready_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/updater_release.go b/kernel/model/updater_release.goindex 3a9fd93d22..51828368ff 100644--- a/kernel/model/updater_release.go+++ b/kernel/model/updater_release.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/updater_release_test.go b/kernel/model/updater_release_test.goindex a5128238ea..dd0bb5d745 100644--- a/kernel/model/updater_release_test.go+++ b/kernel/model/updater_release_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/updater_shared.go b/kernel/model/updater_shared.goindex a334844fe9..a97de0846f 100644--- a/kernel/model/updater_shared.go+++ b/kernel/model/updater_shared.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/updater_shared_test.go b/kernel/model/updater_shared_test.goindex 394283a193..ff40a7d720 100644--- a/kernel/model/updater_shared_test.go+++ b/kernel/model/updater_shared_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/upload.go b/kernel/model/upload.goindex cea98187dd..e5a52a9b54 100644--- a/kernel/model/upload.go+++ b/kernel/model/upload.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/upload_test.go b/kernel/model/upload_test.goindex 125a8479f5..647e2d19af 100644--- a/kernel/model/upload_test.go+++ b/kernel/model/upload_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/view_state.go b/kernel/model/view_state.goindex 43b9b04e9b..62f0645c18 100644--- a/kernel/model/view_state.go+++ b/kernel/model/view_state.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/view_state_test.go b/kernel/model/view_state_test.goindex ae5809adbe..18dfcf412b 100644--- a/kernel/model/view_state_test.go+++ b/kernel/model/view_state_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/virtualref_cache_budget_test.go b/kernel/model/virtualref_cache_budget_test.goindex 63f0eba359..f5edd12c71 100644--- a/kernel/model/virtualref_cache_budget_test.go+++ b/kernel/model/virtualref_cache_budget_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package modelimport (diff --git a/kernel/model/virtualref_test.go b/kernel/model/virtualref_test.goindex dc858aa9c8..55bce980ec 100644--- a/kernel/model/virtualref_test.go+++ b/kernel/model/virtualref_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/virutalref.go b/kernel/model/virutalref.goindex 5c31139a74..aec5242b99 100644--- a/kernel/model/virutalref.go+++ b/kernel/model/virutalref.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/model/widget.go b/kernel/model/widget.goindex bf0fa74de0..6c05cd4774 100644--- a/kernel/model/widget.go+++ b/kernel/model/widget.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage modeldiff --git a/kernel/ocr/boxes.go b/kernel/ocr/boxes.goindex d20d8f9f05..b2c6c027f1 100644--- a/kernel/ocr/boxes.go+++ b/kernel/ocr/boxes.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package ocrimport (diff --git a/kernel/ocr/cmd/ocr-worker/main.go b/kernel/ocr/cmd/ocr-worker/main.goindex 489573c42a..1ec92e8ab6 100644--- a/kernel/ocr/cmd/ocr-worker/main.go+++ b/kernel/ocr/cmd/ocr-worker/main.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package mainimport (diff --git a/kernel/ocr/image_test.go b/kernel/ocr/image_test.goindex 95d3638cff..d7ec1d61c4 100644--- a/kernel/ocr/image_test.go+++ b/kernel/ocr/image_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package ocrimport (diff --git a/kernel/ocr/paddle.go b/kernel/ocr/paddle.goindex aa5052c28f..8c027ce289 100644--- a/kernel/ocr/paddle.go+++ b/kernel/ocr/paddle.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package ocrimport (diff --git a/kernel/ocr/paddle_test.go b/kernel/ocr/paddle_test.goindex 323e31d252..8ba5c31953 100644--- a/kernel/ocr/paddle_test.go+++ b/kernel/ocr/paddle_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package ocrimport (diff --git a/kernel/ocr/provider.go b/kernel/ocr/provider.goindex b2c6748758..cdbe0ba120 100644--- a/kernel/ocr/provider.go+++ b/kernel/ocr/provider.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package ocrimport (diff --git a/kernel/ocr/provider_test.go b/kernel/ocr/provider_test.goindex ce471b6de9..648b201fc4 100644--- a/kernel/ocr/provider_test.go+++ b/kernel/ocr/provider_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package ocrimport (diff --git a/kernel/ocr/runtime.go b/kernel/ocr/runtime.goindex 28cf65d38d..c8c9b1fc61 100644--- a/kernel/ocr/runtime.go+++ b/kernel/ocr/runtime.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build cgopackage ocrdiff --git a/kernel/ocr/runtime_nocgo.go b/kernel/ocr/runtime_nocgo.goindex 97cae2ac54..ae901041e8 100644--- a/kernel/ocr/runtime_nocgo.go+++ b/kernel/ocr/runtime_nocgo.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build !cgopackage ocrdiff --git a/kernel/ocr/thresholds.go b/kernel/ocr/thresholds.goindex c919553049..f14b5568d3 100644--- a/kernel/ocr/thresholds.go+++ b/kernel/ocr/thresholds.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package ocrimport (diff --git a/kernel/ocr/thresholds_test.go b/kernel/ocr/thresholds_test.goindex f279902cdf..5227be2a4b 100644--- a/kernel/ocr/thresholds_test.go+++ b/kernel/ocr/thresholds_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package ocrimport (diff --git a/kernel/plugin/abort/abort_test.go b/kernel/plugin/abort/abort_test.goindex 1c5f299825..c68f4b4b97 100644--- a/kernel/plugin/abort/abort_test.go+++ b/kernel/plugin/abort/abort_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage abortdiff --git a/kernel/plugin/abort/controller.go b/kernel/plugin/abort/controller.goindex 9f1a8a34cf..9d3462d026 100644--- a/kernel/plugin/abort/controller.go+++ b/kernel/plugin/abort/controller.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage abortdiff --git a/kernel/plugin/abort/signal.go b/kernel/plugin/abort/signal.goindex 9c8fd9f10c..bc68818a0d 100644--- a/kernel/plugin/abort/signal.go+++ b/kernel/plugin/abort/signal.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage abortdiff --git a/kernel/plugin/abort/util.go b/kernel/plugin/abort/util.goindex acc69898e8..7e8c427204 100644--- a/kernel/plugin/abort/util.go+++ b/kernel/plugin/abort/util.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage abortdiff --git a/kernel/plugin/api_agent.go b/kernel/plugin/api_agent.goindex fdc4c9d968..d2e758de5c 100644--- a/kernel/plugin/api_agent.go+++ b/kernel/plugin/api_agent.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_agent_test.go b/kernel/plugin/api_agent_test.goindex 12f5730e73..e4b3a54375 100644--- a/kernel/plugin/api_agent_test.go+++ b/kernel/plugin/api_agent_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_client.go b/kernel/plugin/api_client.goindex 65036d60ec..ad16ef5976 100644--- a/kernel/plugin/api_client.go+++ b/kernel/plugin/api_client.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_client_test.go b/kernel/plugin/api_client_test.goindex 42a2c598e0..bb76767451 100644--- a/kernel/plugin/api_client_test.go+++ b/kernel/plugin/api_client_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_crypto.go b/kernel/plugin/api_crypto.goindex 1250be68d6..0960a74b36 100644--- a/kernel/plugin/api_crypto.go+++ b/kernel/plugin/api_crypto.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_crypto_asymmetric_test.go b/kernel/plugin/api_crypto_asymmetric_test.goindex 5d2699ecfb..ea316fe201 100644--- a/kernel/plugin/api_crypto_asymmetric_test.go+++ b/kernel/plugin/api_crypto_asymmetric_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_crypto_keys.go b/kernel/plugin/api_crypto_keys.goindex 68d1fc01f4..8d60b1c965 100644--- a/kernel/plugin/api_crypto_keys.go+++ b/kernel/plugin/api_crypto_keys.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_crypto_legacy_test.go b/kernel/plugin/api_crypto_legacy_test.goindex b688748ce7..752e67cb79 100644--- a/kernel/plugin/api_crypto_legacy_test.go+++ b/kernel/plugin/api_crypto_legacy_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_crypto_test.go b/kernel/plugin/api_crypto_test.goindex 4a230b21ed..216a76a268 100644--- a/kernel/plugin/api_crypto_test.go+++ b/kernel/plugin/api_crypto_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_event.go b/kernel/plugin/api_event.goindex 33300d7363..511cc31c80 100644--- a/kernel/plugin/api_event.go+++ b/kernel/plugin/api_event.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_logger.go b/kernel/plugin/api_logger.goindex 38003a5425..5e47eb50fc 100644--- a/kernel/plugin/api_logger.go+++ b/kernel/plugin/api_logger.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_plugin.go b/kernel/plugin/api_plugin.goindex 9c3f568c29..ef8e8ea217 100644--- a/kernel/plugin/api_plugin.go+++ b/kernel/plugin/api_plugin.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_rpc.go b/kernel/plugin/api_rpc.goindex 48ee15a4a8..761df0aaee 100644--- a/kernel/plugin/api_rpc.go+++ b/kernel/plugin/api_rpc.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_secrets_vars.go b/kernel/plugin/api_secrets_vars.goindex 49338c5707..82d32db0ab 100644--- a/kernel/plugin/api_secrets_vars.go+++ b/kernel/plugin/api_secrets_vars.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_server.go b/kernel/plugin/api_server.goindex 46a0daae2c..9f19d1f25a 100644--- a/kernel/plugin/api_server.go+++ b/kernel/plugin/api_server.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_storage.go b/kernel/plugin/api_storage.goindex 2d7b6f6a07..ac246627d0 100644--- a/kernel/plugin/api_storage.go+++ b/kernel/plugin/api_storage.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/api_storage_test.go b/kernel/plugin/api_storage_test.goindex 7ed28d36f1..df01fe4149 100644--- a/kernel/plugin/api_storage_test.go+++ b/kernel/plugin/api_storage_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/crypto/aes.go b/kernel/plugin/crypto/aes.goindex 9e5e140f67..657737c678 100644--- a/kernel/plugin/crypto/aes.go+++ b/kernel/plugin/crypto/aes.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/aes_test.go b/kernel/plugin/crypto/aes_test.goindex 61cfd0d81c..3153c23ea8 100644--- a/kernel/plugin/crypto/aes_test.go+++ b/kernel/plugin/crypto/aes_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/aeskw.go b/kernel/plugin/crypto/aeskw.goindex b4910e1e3f..47928a72d0 100644--- a/kernel/plugin/crypto/aeskw.go+++ b/kernel/plugin/crypto/aeskw.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/algorithm.go b/kernel/plugin/crypto/algorithm.goindex ed38361c58..fe2ecb845c 100644--- a/kernel/plugin/crypto/algorithm.go+++ b/kernel/plugin/crypto/algorithm.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/asymmetric_test.go b/kernel/plugin/crypto/asymmetric_test.goindex 72a70b09cf..4963612f8f 100644--- a/kernel/plugin/crypto/asymmetric_test.go+++ b/kernel/plugin/crypto/asymmetric_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/crypto_test.go b/kernel/plugin/crypto/crypto_test.goindex 06b99d2962..97a055fac4 100644--- a/kernel/plugin/crypto/crypto_test.go+++ b/kernel/plugin/crypto/crypto_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/digest.go b/kernel/plugin/crypto/digest.goindex e7788dd2d7..97ce280d93 100644--- a/kernel/plugin/crypto/digest.go+++ b/kernel/plugin/crypto/digest.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/ec.go b/kernel/plugin/crypto/ec.goindex 4d37908198..f8e9558a17 100644--- a/kernel/plugin/crypto/ec.go+++ b/kernel/plugin/crypto/ec.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/errors.go b/kernel/plugin/crypto/errors.goindex 014e84b06f..c2915462e2 100644--- a/kernel/plugin/crypto/errors.go+++ b/kernel/plugin/crypto/errors.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later// Package crypto 以 Go 标准库实现 Web Crypto API 的算法层,供内核插件沙箱的 globalThis.crypto 绑定调用。// 该包不依赖 goja,密钥材料只保存在 Go 侧,不向插件脚本暴露。diff --git a/kernel/plugin/crypto/format_test.go b/kernel/plugin/crypto/format_test.goindex 682c1b9ece..40fb738902 100644--- a/kernel/plugin/crypto/format_test.go+++ b/kernel/plugin/crypto/format_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/hmac.go b/kernel/plugin/crypto/hmac.goindex 51dd81e89e..edd96d0fd3 100644--- a/kernel/plugin/crypto/hmac.go+++ b/kernel/plugin/crypto/hmac.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/interop_test.go b/kernel/plugin/crypto/interop_test.goindex b08d87f855..b3470d7d45 100644--- a/kernel/plugin/crypto/interop_test.go+++ b/kernel/plugin/crypto/interop_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/jwk.go b/kernel/plugin/crypto/jwk.goindex f1a86186a9..5e88c71b61 100644--- a/kernel/plugin/crypto/jwk.go+++ b/kernel/plugin/crypto/jwk.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/kdf.go b/kernel/plugin/crypto/kdf.goindex 9604101f01..ac17745a17 100644--- a/kernel/plugin/crypto/kdf.go+++ b/kernel/plugin/crypto/kdf.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/key.go b/kernel/plugin/crypto/key.goindex 5224d3455a..f6ddd6d196 100644--- a/kernel/plugin/crypto/key.go+++ b/kernel/plugin/crypto/key.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/key_test.go b/kernel/plugin/crypto/key_test.goindex 6a42d346b2..f88997d071 100644--- a/kernel/plugin/crypto/key_test.go+++ b/kernel/plugin/crypto/key_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/legacy_test.go b/kernel/plugin/crypto/legacy_test.goindex b466c8bcbe..17b43359ca 100644--- a/kernel/plugin/crypto/legacy_test.go+++ b/kernel/plugin/crypto/legacy_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/okp.go b/kernel/plugin/crypto/okp.goindex bb2f39fd05..236c025f08 100644--- a/kernel/plugin/crypto/okp.go+++ b/kernel/plugin/crypto/okp.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/rsa.go b/kernel/plugin/crypto/rsa.goindex 95dd1cf3c4..1be9488a15 100644--- a/kernel/plugin/crypto/rsa.go+++ b/kernel/plugin/crypto/rsa.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/subtle.go b/kernel/plugin/crypto/subtle.goindex ecfeaacca6..e096738bec 100644--- a/kernel/plugin/crypto/subtle.go+++ b/kernel/plugin/crypto/subtle.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto/x509.go b/kernel/plugin/crypto/x509.goindex 0b85522fa1..fec2180a46 100644--- a/kernel/plugin/crypto/x509.go+++ b/kernel/plugin/crypto/x509.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage cryptodiff --git a/kernel/plugin/crypto_binding.go b/kernel/plugin/crypto_binding.goindex 6c6cc5e3b6..427b0f63a9 100644--- a/kernel/plugin/crypto_binding.go+++ b/kernel/plugin/crypto_binding.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/crypto_params.go b/kernel/plugin/crypto_params.goindex ec0b49c134..aae7562961 100644--- a/kernel/plugin/crypto_params.go+++ b/kernel/plugin/crypto_params.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/encoding/module.go b/kernel/plugin/encoding/module.goindex 3ef50f9faa..47eebcfcb6 100644--- a/kernel/plugin/encoding/module.go+++ b/kernel/plugin/encoding/module.go@@ -1,19 +1,3 @@-// SiYuan - From thought to insight, with agents-// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.-package encodingimport "github.com/dop251/goja"diff --git a/kernel/plugin/formdata/blob.go b/kernel/plugin/formdata/blob.goindex bd8fa2a3a5..bda368ba26 100644--- a/kernel/plugin/formdata/blob.go+++ b/kernel/plugin/formdata/blob.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage formdatadiff --git a/kernel/plugin/formdata/blob_test.go b/kernel/plugin/formdata/blob_test.goindex 7d99332c5c..00fb9871ef 100644--- a/kernel/plugin/formdata/blob_test.go+++ b/kernel/plugin/formdata/blob_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage formdatadiff --git a/kernel/plugin/formdata/bridge.go b/kernel/plugin/formdata/bridge.goindex 810a82c117..6767f8e069 100644--- a/kernel/plugin/formdata/bridge.go+++ b/kernel/plugin/formdata/bridge.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage formdatadiff --git a/kernel/plugin/formdata/formdata.go b/kernel/plugin/formdata/formdata.goindex be78917a1a..5c2e800f40 100644--- a/kernel/plugin/formdata/formdata.go+++ b/kernel/plugin/formdata/formdata.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage formdatadiff --git a/kernel/plugin/formdata/formdata_test.go b/kernel/plugin/formdata/formdata_test.goindex e65e41276e..a2aa225d30 100644--- a/kernel/plugin/formdata/formdata_test.go+++ b/kernel/plugin/formdata/formdata_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage formdatadiff --git a/kernel/plugin/formdata/webidl.go b/kernel/plugin/formdata/webidl.goindex 1b06ca1609..04d1d416c2 100644--- a/kernel/plugin/formdata/webidl.go+++ b/kernel/plugin/formdata/webidl.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage formdatadiff --git a/kernel/plugin/lifecycle_optional_test.go b/kernel/plugin/lifecycle_optional_test.goindex 7da5e5c6b6..f6701554d0 100644--- a/kernel/plugin/lifecycle_optional_test.go+++ b/kernel/plugin/lifecycle_optional_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package pluginimport (diff --git a/kernel/plugin/manager.go b/kernel/plugin/manager.goindex 8504e397fd..628823cb13 100644--- a/kernel/plugin/manager.go+++ b/kernel/plugin/manager.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/plugin.go b/kernel/plugin/plugin.goindex 59cef36f4a..44fcbaa2e4 100644--- a/kernel/plugin/plugin.go+++ b/kernel/plugin/plugin.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/plugin_events_test.go b/kernel/plugin/plugin_events_test.goindex 47f12ed06b..37f250f18e 100644--- a/kernel/plugin/plugin_events_test.go+++ b/kernel/plugin/plugin_events_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/plugin/rpc.go b/kernel/plugin/rpc.goindex 3a71ef1231..22a77fbaee 100644--- a/kernel/plugin/rpc.go+++ b/kernel/plugin/rpc.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/rpc_admission.go b/kernel/plugin/rpc_admission.goindex ce286c778e..72ca7042cd 100644--- a/kernel/plugin/rpc_admission.go+++ b/kernel/plugin/rpc_admission.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package pluginimport (diff --git a/kernel/plugin/rpc_admission_test.go b/kernel/plugin/rpc_admission_test.goindex 2628a94d3a..7ca12b6a80 100644--- a/kernel/plugin/rpc_admission_test.go+++ b/kernel/plugin/rpc_admission_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package pluginimport (diff --git a/kernel/plugin/rpc_cancellation_test.go b/kernel/plugin/rpc_cancellation_test.goindex 0f3dbc440e..45f86e53e7 100644--- a/kernel/plugin/rpc_cancellation_test.go+++ b/kernel/plugin/rpc_cancellation_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package pluginimport (diff --git a/kernel/plugin/rpc_contract.go b/kernel/plugin/rpc_contract.goindex 3374a46476..6866846075 100644--- a/kernel/plugin/rpc_contract.go+++ b/kernel/plugin/rpc_contract.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package pluginimport (diff --git a/kernel/plugin/rpc_contract_test.go b/kernel/plugin/rpc_contract_test.goindex f8c7195929..532edff67d 100644--- a/kernel/plugin/rpc_contract_test.go+++ b/kernel/plugin/rpc_contract_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package pluginimport (diff --git a/kernel/plugin/rpc_legacy_test.go b/kernel/plugin/rpc_legacy_test.goindex 8a0c3be2fc..3bd8835c5b 100644--- a/kernel/plugin/rpc_legacy_test.go+++ b/kernel/plugin/rpc_legacy_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package pluginimport (diff --git a/kernel/plugin/rpc_websocket_contract_test.go b/kernel/plugin/rpc_websocket_contract_test.goindex 97bcdb0f4a..7a9a900bcb 100644--- a/kernel/plugin/rpc_websocket_contract_test.go+++ b/kernel/plugin/rpc_websocket_contract_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package pluginimport (diff --git a/kernel/plugin/sandbox.go b/kernel/plugin/sandbox.goindex 8efd435b33..1442838812 100644--- a/kernel/plugin/sandbox.go+++ b/kernel/plugin/sandbox.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/sandbox_test.go b/kernel/plugin/sandbox_test.goindex e67c027277..5c08dc1943 100644--- a/kernel/plugin/sandbox_test.go+++ b/kernel/plugin/sandbox_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/server.go b/kernel/plugin/server.goindex b46b778ff5..0168618091 100644--- a/kernel/plugin/server.go+++ b/kernel/plugin/server.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/server_test.go b/kernel/plugin/server_test.goindex 4560e88dc4..c79f437507 100644--- a/kernel/plugin/server_test.go+++ b/kernel/plugin/server_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/service_contract.go b/kernel/plugin/service_contract.goindex 19563d0876..bcaa8b28aa 100644--- a/kernel/plugin/service_contract.go+++ b/kernel/plugin/service_contract.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package pluginimport (diff --git a/kernel/plugin/service_contract_test.go b/kernel/plugin/service_contract_test.goindex ac0d1f25a9..e22927e460 100644--- a/kernel/plugin/service_contract_test.go+++ b/kernel/plugin/service_contract_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package pluginimport (diff --git a/kernel/plugin/source_file_identity_darwin.go b/kernel/plugin/source_file_identity_darwin.goindex 5d9591cc47..cc9ffa3a3e 100644--- a/kernel/plugin/source_file_identity_darwin.go+++ b/kernel/plugin/source_file_identity_darwin.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build darwindiff --git a/kernel/plugin/source_file_identity_darwin_test.go b/kernel/plugin/source_file_identity_darwin_test.goindex a91c80dc40..e57be14131 100644--- a/kernel/plugin/source_file_identity_darwin_test.go+++ b/kernel/plugin/source_file_identity_darwin_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build darwindiff --git a/kernel/plugin/source_file_identity_other.go b/kernel/plugin/source_file_identity_other.goindex f3d6b35906..b6b91695f7 100644--- a/kernel/plugin/source_file_identity_other.go+++ b/kernel/plugin/source_file_identity_other.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build !darwindiff --git a/kernel/plugin/source_watcher.go b/kernel/plugin/source_watcher.goindex 1304e8b52c..ed96ebd3cf 100644--- a/kernel/plugin/source_watcher.go+++ b/kernel/plugin/source_watcher.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/sse_test.go b/kernel/plugin/sse_test.goindex dcfc767bec..7383d1f36a 100644--- a/kernel/plugin/sse_test.go+++ b/kernel/plugin/sse_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package pluginimport (diff --git a/kernel/plugin/streams/bridge.go b/kernel/plugin/streams/bridge.goindex 17d1e30409..1150683ef0 100644--- a/kernel/plugin/streams/bridge.go+++ b/kernel/plugin/streams/bridge.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/streams/doc.go b/kernel/plugin/streams/doc.goindex bb91582d70..f7f6a578bf 100644--- a/kernel/plugin/streams/doc.go+++ b/kernel/plugin/streams/doc.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later// Package streams 为 goja 运行时原生实现 WHATWG Streams Standard 的默认(非字节流)子集:ReadableStream、// WritableStream、TransformStream 及其默认 controller/reader/writer,以及 CountQueuingStrategy 与diff --git a/kernel/plugin/streams/module.go b/kernel/plugin/streams/module.goindex 6aa982e6f6..ce7a190d66 100644--- a/kernel/plugin/streams/module.go+++ b/kernel/plugin/streams/module.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/streams/pipe.go b/kernel/plugin/streams/pipe.goindex 417ef0fb87..f6832d092a 100644--- a/kernel/plugin/streams/pipe.go+++ b/kernel/plugin/streams/pipe.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/streams/promise.go b/kernel/plugin/streams/promise.goindex 7a501a78c0..f654a19ef3 100644--- a/kernel/plugin/streams/promise.go+++ b/kernel/plugin/streams/promise.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/streams/queue.go b/kernel/plugin/streams/queue.goindex 5f8a88894f..0998df2a6c 100644--- a/kernel/plugin/streams/queue.go+++ b/kernel/plugin/streams/queue.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/streams/readable.go b/kernel/plugin/streams/readable.goindex 4b28d80d90..88190f8f05 100644--- a/kernel/plugin/streams/readable.go+++ b/kernel/plugin/streams/readable.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/streams/readable_prototype.go b/kernel/plugin/streams/readable_prototype.goindex 812a880c43..668391da41 100644--- a/kernel/plugin/streams/readable_prototype.go+++ b/kernel/plugin/streams/readable_prototype.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/streams/strategies.go b/kernel/plugin/streams/strategies.goindex 22cc96b33f..205cd54c2e 100644--- a/kernel/plugin/streams/strategies.go+++ b/kernel/plugin/streams/strategies.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/streams/streams_test.go b/kernel/plugin/streams/streams_test.goindex d297f64a87..4bd7465046 100644--- a/kernel/plugin/streams/streams_test.go+++ b/kernel/plugin/streams/streams_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/streams/transform.go b/kernel/plugin/streams/transform.goindex 6806ef4430..8a3ed6e4a0 100644--- a/kernel/plugin/streams/transform.go+++ b/kernel/plugin/streams/transform.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/streams/transform_prototype.go b/kernel/plugin/streams/transform_prototype.goindex c11984e6eb..afa7442b55 100644--- a/kernel/plugin/streams/transform_prototype.go+++ b/kernel/plugin/streams/transform_prototype.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/streams/webidl.go b/kernel/plugin/streams/webidl.goindex a16ab5b7d8..c1c11683b1 100644--- a/kernel/plugin/streams/webidl.go+++ b/kernel/plugin/streams/webidl.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/streams/writable.go b/kernel/plugin/streams/writable.goindex 113cc23a7d..7b17a2727f 100644--- a/kernel/plugin/streams/writable.go+++ b/kernel/plugin/streams/writable.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/streams/writable_prototype.go b/kernel/plugin/streams/writable_prototype.goindex 1eca816a14..6f2439da55 100644--- a/kernel/plugin/streams/writable_prototype.go+++ b/kernel/plugin/streams/writable_prototype.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage streamsdiff --git a/kernel/plugin/watcher_test.go b/kernel/plugin/watcher_test.goindex e260f96ba3..e7af73bf9f 100644--- a/kernel/plugin/watcher_test.go+++ b/kernel/plugin/watcher_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/websocket.go b/kernel/plugin/websocket.goindex cdada3e72c..ffa9d045fe 100644--- a/kernel/plugin/websocket.go+++ b/kernel/plugin/websocket.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/plugin/worker.go b/kernel/plugin/worker.goindex 2ce2721c83..2e0b0285af 100644--- a/kernel/plugin/worker.go+++ b/kernel/plugin/worker.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage plugindiff --git a/kernel/search/find.go b/kernel/search/find.goindex fc4d2d49e2..df42942d78 100644--- a/kernel/search/find.go+++ b/kernel/search/find.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage searchdiff --git a/kernel/search/hanconv.go b/kernel/search/hanconv.goindex 7147c48dba..ae2a5ad373 100644--- a/kernel/search/hanconv.go+++ b/kernel/search/hanconv.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage searchdiff --git a/kernel/search/hanconv_table.go b/kernel/search/hanconv_table.goindex a7263e744d..4e28592182 100644--- a/kernel/search/hanconv_table.go+++ b/kernel/search/hanconv_table.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+// Code generated from OpenCC TSCharacters.txt (Apache-2.0,// https://github.com/BYVoid/OpenCC); DO NOT EDIT.//diff --git a/kernel/search/hanconv_test.go b/kernel/search/hanconv_test.goindex 3329ac2490..f403bca607 100644--- a/kernel/search/hanconv_test.go+++ b/kernel/search/hanconv_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage searchdiff --git a/kernel/search/mark.go b/kernel/search/mark.goindex 8013de577e..2f376bcc9c 100644--- a/kernel/search/mark.go+++ b/kernel/search/mark.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage searchdiff --git a/kernel/search/mark_context.go b/kernel/search/mark_context.goindex 32f66e2b7b..036dd74d5b 100644--- a/kernel/search/mark_context.go+++ b/kernel/search/mark_context.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package searchimport (diff --git a/kernel/search/mark_context_test.go b/kernel/search/mark_context_test.goindex 0921452383..d155e07972 100644--- a/kernel/search/mark_context_test.go+++ b/kernel/search/mark_context_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package searchimport (diff --git a/kernel/search/mark_test.go b/kernel/search/mark_test.goindex 215e05c309..e800b1e5ca 100644--- a/kernel/search/mark_test.go+++ b/kernel/search/mark_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage searchdiff --git a/kernel/server/appearance_diagnostic.go b/kernel/server/appearance_diagnostic.goindex 90e498ab22..5ebc8a1e8e 100644--- a/kernel/server/appearance_diagnostic.go+++ b/kernel/server/appearance_diagnostic.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/appearance_path.go b/kernel/server/appearance_path.goindex 7c3513beec..2ad8e8bcbd 100644--- a/kernel/server/appearance_path.go+++ b/kernel/server/appearance_path.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/appearance_path_linux_test.go b/kernel/server/appearance_path_linux_test.goindex 0fff6da17f..1876d1be47 100644--- a/kernel/server/appearance_path_linux_test.go+++ b/kernel/server/appearance_path_linux_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build linuxpackage serverdiff --git a/kernel/server/appearance_path_test.go b/kernel/server/appearance_path_test.goindex e9c40a3106..bcb3aea641 100644--- a/kernel/server/appearance_path_test.go+++ b/kernel/server/appearance_path_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/appearance_symlink_linux.go b/kernel/server/appearance_symlink_linux.goindex f8cbf00843..cad88d30ac 100644--- a/kernel/server/appearance_symlink_linux.go+++ b/kernel/server/appearance_symlink_linux.go@@ -1,20 +1,8 @@-//go:build linux--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later++//go:build linuxpackage serverdiff --git a/kernel/server/appearance_symlink_other.go b/kernel/server/appearance_symlink_other.goindex 1f8445510c..acc18c7eae 100644--- a/kernel/server/appearance_symlink_other.go+++ b/kernel/server/appearance_symlink_other.go@@ -1,20 +1,8 @@-//go:build !linux && !windows--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later++//go:build !linux && !windowspackage serverdiff --git a/kernel/server/appearance_symlink_windows.go b/kernel/server/appearance_symlink_windows.goindex 539b5c9f21..7333e571b3 100644--- a/kernel/server/appearance_symlink_windows.go+++ b/kernel/server/appearance_symlink_windows.go@@ -1,20 +1,8 @@-//go:build windows--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later++//go:build windowspackage serverdiff --git a/kernel/server/appearance_symlink_windows_test.go b/kernel/server/appearance_symlink_windows_test.goindex 78817118d9..54c8eb0f4b 100644--- a/kernel/server/appearance_symlink_windows_test.go+++ b/kernel/server/appearance_symlink_windows_test.go@@ -1,20 +1,8 @@-//go:build windows--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later++//go:build windowspackage serverdiff --git a/kernel/server/boot_appearance_test.go b/kernel/server/boot_appearance_test.goindex ae0d247673..da2e8484bb 100644--- a/kernel/server/boot_appearance_test.go+++ b/kernel/server/boot_appearance_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/legacy_font_test.go b/kernel/server/legacy_font_test.goindex 55e0b334ee..cd2a75fd81 100644--- a/kernel/server/legacy_font_test.go+++ b/kernel/server/legacy_font_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/plugin_development_static_test.go b/kernel/server/plugin_development_static_test.goindex 660cf1fe80..dd823d54db 100644--- a/kernel/server/plugin_development_static_test.go+++ b/kernel/server/plugin_development_static_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package serverimport (diff --git a/kernel/server/plugin_publish_test.go b/kernel/server/plugin_publish_test.goindex d5c21272a5..fb1a2f0304 100644--- a/kernel/server/plugin_publish_test.go+++ b/kernel/server/plugin_publish_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package serverimport (diff --git a/kernel/server/proxy/client_tls_test.go b/kernel/server/proxy/client_tls_test.goindex b779f88be4..c0961e1da4 100644--- a/kernel/server/proxy/client_tls_test.go+++ b/kernel/server/proxy/client_tls_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage proxydiff --git a/kernel/server/proxy/fixedport.go b/kernel/server/proxy/fixedport.goindex 95e3d4c23a..e00c817b9f 100644--- a/kernel/server/proxy/fixedport.go+++ b/kernel/server/proxy/fixedport.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage proxydiff --git a/kernel/server/proxy/fixedport_test.go b/kernel/server/proxy/fixedport_test.goindex d22263111d..31f973f293 100644--- a/kernel/server/proxy/fixedport_test.go+++ b/kernel/server/proxy/fixedport_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage proxydiff --git a/kernel/server/proxy/fixedport_tls_test.go b/kernel/server/proxy/fixedport_tls_test.goindex 45d549cfb9..2a82527988 100644--- a/kernel/server/proxy/fixedport_tls_test.go+++ b/kernel/server/proxy/fixedport_tls_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage proxydiff --git a/kernel/server/proxy/publish.go b/kernel/server/proxy/publish.goindex 5ecc37a80f..2d87fce8be 100644--- a/kernel/server/proxy/publish.go+++ b/kernel/server/proxy/publish.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage proxydiff --git a/kernel/server/proxy/publish_test.go b/kernel/server/proxy/publish_test.goindex 130c300c41..8df0b173fa 100644--- a/kernel/server/proxy/publish_test.go+++ b/kernel/server/proxy/publish_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage proxydiff --git a/kernel/server/serve.go b/kernel/server/serve.goindex 36f2ff4f70..41994e57c8 100644--- a/kernel/server/serve.go+++ b/kernel/server/serve.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/serve_assets_test.go b/kernel/server/serve_assets_test.goindex 99b69410c2..9c89d92765 100644--- a/kernel/server/serve_assets_test.go+++ b/kernel/server/serve_assets_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/serve_assets_windows_test.go b/kernel/server/serve_assets_windows_test.goindex 284e156976..e711ee50a4 100644--- a/kernel/server/serve_assets_windows_test.go+++ b/kernel/server/serve_assets_windows_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build windowsdiff --git a/kernel/server/serve_auth_test.go b/kernel/server/serve_auth_test.goindex 5ca42efba1..089d3c7d27 100644--- a/kernel/server/serve_auth_test.go+++ b/kernel/server/serve_auth_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/serve_cors_test.go b/kernel/server/serve_cors_test.goindex 49ba253ed3..70fb6bb275 100644--- a/kernel/server/serve_cors_test.go+++ b/kernel/server/serve_cors_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/serve_heif_accept.go b/kernel/server/serve_heif_accept.goindex a34da601ef..9640f30f2b 100644--- a/kernel/server/serve_heif_accept.go+++ b/kernel/server/serve_heif_accept.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/serve_heif_accept_test.go b/kernel/server/serve_heif_accept_test.goindex f241a5423b..28eb249386 100644--- a/kernel/server/serve_heif_accept_test.go+++ b/kernel/server/serve_heif_accept_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/serve_history_guard_test.go b/kernel/server/serve_history_guard_test.goindex 9809739c74..a777933165 100644--- a/kernel/server/serve_history_guard_test.go+++ b/kernel/server/serve_history_guard_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/serve_publish_package_test.go b/kernel/server/serve_publish_package_test.goindex 3fec7bce20..1203df98bb 100644--- a/kernel/server/serve_publish_package_test.go+++ b/kernel/server/serve_publish_package_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package serverimport (diff --git a/kernel/server/serve_static_junction_windows_test.go b/kernel/server/serve_static_junction_windows_test.goindex 352d07d35b..3e842ca328 100644--- a/kernel/server/serve_static_junction_windows_test.go+++ b/kernel/server/serve_static_junction_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package serverimport (diff --git a/kernel/server/serve_static_test.go b/kernel/server/serve_static_test.goindex 90555d5601..cbd0175bf7 100644--- a/kernel/server/serve_static_test.go+++ b/kernel/server/serve_static_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/serve_svg_test.go b/kernel/server/serve_svg_test.goindex 4774ff7d94..903d407c8e 100644--- a/kernel/server/serve_svg_test.go+++ b/kernel/server/serve_svg_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/serve_tiff.go b/kernel/server/serve_tiff.goindex 7ee3d8a69a..397d318ce6 100644--- a/kernel/server/serve_tiff.go+++ b/kernel/server/serve_tiff.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/serve_tiff_encrypted_test.go b/kernel/server/serve_tiff_encrypted_test.goindex 3e5ae0e72c..4ecb1f2417 100644--- a/kernel/server/serve_tiff_encrypted_test.go+++ b/kernel/server/serve_tiff_encrypted_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build (sqlcipher || libsqlcipher) && cgopackage serverdiff --git a/kernel/server/serve_tiff_test.go b/kernel/server/serve_tiff_test.goindex 0663856c11..a5d25649f3 100644--- a/kernel/server/serve_tiff_test.go+++ b/kernel/server/serve_tiff_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package serverimport (diff --git a/kernel/server/serve_tls.go b/kernel/server/serve_tls.goindex d56b26f70c..a0a31c2249 100644--- a/kernel/server/serve_tls.go+++ b/kernel/server/serve_tls.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/serve_tls_test.go b/kernel/server/serve_tls_test.goindex b0e8b4e1d5..7744f75922 100644--- a/kernel/server/serve_tls_test.go+++ b/kernel/server/serve_tls_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage serverdiff --git a/kernel/server/serve_websocket_test.go b/kernel/server/serve_websocket_test.goindex 335b95bfa9..d2f906012b 100644--- a/kernel/server/serve_websocket_test.go+++ b/kernel/server/serve_websocket_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package serverimport (diff --git a/kernel/sql/asset.go b/kernel/sql/asset.goindex 4854762ab1..d537e7ba9e 100644--- a/kernel/sql/asset.go+++ b/kernel/sql/asset.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/asset_content.go b/kernel/sql/asset_content.goindex 3cba4af3c9..233da26f20 100644--- a/kernel/sql/asset_content.go+++ b/kernel/sql/asset_content.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/asset_content_query.go b/kernel/sql/asset_content_query.goindex fce57a58f4..3d7d3ebcac 100644--- a/kernel/sql/asset_content_query.go+++ b/kernel/sql/asset_content_query.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/asset_content_query_test.go b/kernel/sql/asset_content_query_test.goindex 4753bf6862..efc47e379e 100644--- a/kernel/sql/asset_content_query_test.go+++ b/kernel/sql/asset_content_query_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/attribute.go b/kernel/sql/attribute.goindex 009af4e3cc..b802127bca 100644--- a/kernel/sql/attribute.go+++ b/kernel/sql/attribute.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/attribute_view_ref.go b/kernel/sql/attribute_view_ref.goindex 7760329b22..5ab05c5c32 100644--- a/kernel/sql/attribute_view_ref.go+++ b/kernel/sql/attribute_view_ref.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/attribute_view_ref_cache_test.go b/kernel/sql/attribute_view_ref_cache_test.goindex 06d0f8d8dc..e1f9040e5e 100644--- a/kernel/sql/attribute_view_ref_cache_test.go+++ b/kernel/sql/attribute_view_ref_cache_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/attribute_view_ref_test.go b/kernel/sql/attribute_view_ref_test.goindex 77f4aa8257..cfe820a334 100644--- a/kernel/sql/attribute_view_ref_test.go+++ b/kernel/sql/attribute_view_ref_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/auxiliary_index.go b/kernel/sql/auxiliary_index.goindex e15915fc7d..3022a7b406 100644--- a/kernel/sql/auxiliary_index.go+++ b/kernel/sql/auxiliary_index.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/auxiliary_index_fts5_test.go b/kernel/sql/auxiliary_index_fts5_test.goindex 31f4fb1d2a..5b00ea97d5 100644--- a/kernel/sql/auxiliary_index_fts5_test.go+++ b/kernel/sql/auxiliary_index_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/auxiliary_index_sqlcipher_test.go b/kernel/sql/auxiliary_index_sqlcipher_test.goindex bffbcfddaf..46af22105e 100644--- a/kernel/sql/auxiliary_index_sqlcipher_test.go+++ b/kernel/sql/auxiliary_index_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package sqldiff --git a/kernel/sql/av.go b/kernel/sql/av.goindex 0d1db8a44c..af57cc2691 100644--- a/kernel/sql/av.go+++ b/kernel/sql/av.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/av_card_cover_test.go b/kernel/sql/av_card_cover_test.goindex 1b2ea49b50..18f1c2724a 100644--- a/kernel/sql/av_card_cover_test.go+++ b/kernel/sql/av_card_cover_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/av_custom_color_context_test.go b/kernel/sql/av_custom_color_context_test.goindex 1e3a03ccf7..17ed9b9578 100644--- a/kernel/sql/av_custom_color_context_test.go+++ b/kernel/sql/av_custom_color_context_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/av_gallery.go b/kernel/sql/av_gallery.goindex dcf5540f43..b38b208cc7 100644--- a/kernel/sql/av_gallery.go+++ b/kernel/sql/av_gallery.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/av_group_test.go b/kernel/sql/av_group_test.goindex 8453d844d3..959bf251c1 100644--- a/kernel/sql/av_group_test.go+++ b/kernel/sql/av_group_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/av_kanban.go b/kernel/sql/av_kanban.goindex 127b675347..2f6bd17158 100644--- a/kernel/sql/av_kanban.go+++ b/kernel/sql/av_kanban.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/av_location_test.go b/kernel/sql/av_location_test.goindex afa9478c81..dc5ec6d75f 100644--- a/kernel/sql/av_location_test.go+++ b/kernel/sql/av_location_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/av_relation_template.go b/kernel/sql/av_relation_template.goindex 015725d284..8c2b82b4a1 100644--- a/kernel/sql/av_relation_template.go+++ b/kernel/sql/av_relation_template.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/av_relation_template_test.go b/kernel/sql/av_relation_template_test.goindex 9827cd3417..d742c51545 100644--- a/kernel/sql/av_relation_template_test.go+++ b/kernel/sql/av_relation_template_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/av_render_template_test.go b/kernel/sql/av_render_template_test.goindex 1d18ddc02a..7c096be7e1 100644--- a/kernel/sql/av_render_template_test.go+++ b/kernel/sql/av_render_template_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/av_rollup_filter_test.go b/kernel/sql/av_rollup_filter_test.goindex 7a91a64b53..672690fbd5 100644--- a/kernel/sql/av_rollup_filter_test.go+++ b/kernel/sql/av_rollup_filter_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/av_rollup_target.go b/kernel/sql/av_rollup_target.goindex 252085d5b5..c934fdb494 100644--- a/kernel/sql/av_rollup_target.go+++ b/kernel/sql/av_rollup_target.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/av_rollup_target_test.go b/kernel/sql/av_rollup_target_test.goindex 8302adc298..48ed4b1c83 100644--- a/kernel/sql/av_rollup_target_test.go+++ b/kernel/sql/av_rollup_target_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/av_table.go b/kernel/sql/av_table.goindex 1abdcc4511..e7ddc949a1 100644--- a/kernel/sql/av_table.go+++ b/kernel/sql/av_table.go@@ -1,16 +1,6 @@-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/av_template_error_test.go b/kernel/sql/av_template_error_test.goindex 6f67938b15..ba350ff81e 100644--- a/kernel/sql/av_template_error_test.go+++ b/kernel/sql/av_template_error_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/av_template_plan.go b/kernel/sql/av_template_plan.goindex 7806512270..488b372ec3 100644--- a/kernel/sql/av_template_plan.go+++ b/kernel/sql/av_template_plan.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/av_template_plan_test.go b/kernel/sql/av_template_plan_test.goindex c35230cb2c..78d011904f 100644--- a/kernel/sql/av_template_plan_test.go+++ b/kernel/sql/av_template_plan_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/av_value_test.go b/kernel/sql/av_value_test.goindex 4bb8a76035..0784817168 100644--- a/kernel/sql/av_value_test.go+++ b/kernel/sql/av_value_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/backlink_ref_defs.go b/kernel/sql/backlink_ref_defs.goindex d297139df4..c5d6bbf9a9 100644--- a/kernel/sql/backlink_ref_defs.go+++ b/kernel/sql/backlink_ref_defs.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport "strings"diff --git a/kernel/sql/backlink_ref_defs_test.go b/kernel/sql/backlink_ref_defs_test.goindex 41b952f137..dab054d499 100644--- a/kernel/sql/backlink_ref_defs_test.go+++ b/kernel/sql/backlink_ref_defs_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/block.go b/kernel/sql/block.goindex f07dde5840..20379b161c 100644--- a/kernel/sql/block.go+++ b/kernel/sql/block.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/block_batch_query_test.go b/kernel/sql/block_batch_query_test.goindex cc3b33e127..edfcbd22ae 100644--- a/kernel/sql/block_batch_query_test.go+++ b/kernel/sql/block_batch_query_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/block_query.go b/kernel/sql/block_query.goindex 1391c7b05d..34d26164c1 100644--- a/kernel/sql/block_query.go+++ b/kernel/sql/block_query.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/block_query_guard_test.go b/kernel/sql/block_query_guard_test.goindex ac80ef0089..39a586cc0b 100644--- a/kernel/sql/block_query_guard_test.go+++ b/kernel/sql/block_query_guard_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/block_query_test.go b/kernel/sql/block_query_test.goindex 300f6b0b5e..1b070220ed 100644--- a/kernel/sql/block_query_test.go+++ b/kernel/sql/block_query_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/block_ref.go b/kernel/sql/block_ref.goindex 8c3b7f87c2..298d4087e4 100644--- a/kernel/sql/block_ref.go+++ b/kernel/sql/block_ref.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/block_ref_query.go b/kernel/sql/block_ref_query.goindex ac50085d43..2299515d2e 100644--- a/kernel/sql/block_ref_query.go+++ b/kernel/sql/block_ref_query.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/block_ref_query_test.go b/kernel/sql/block_ref_query_test.goindex a2e7b6a50e..51235fb8b9 100644--- a/kernel/sql/block_ref_query_test.go+++ b/kernel/sql/block_ref_query_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/block_test.go b/kernel/sql/block_test.goindex 0e9ac19b03..b95233fbfb 100644--- a/kernel/sql/block_test.go+++ b/kernel/sql/block_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/bookmark_index_fts5_test.go b/kernel/sql/bookmark_index_fts5_test.goindex bd9ba4ccda..2388260e41 100644--- a/kernel/sql/bookmark_index_fts5_test.go+++ b/kernel/sql/bookmark_index_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/bookmark_index_test.go b/kernel/sql/bookmark_index_test.goindex a064d03615..4e3b84c4ab 100644--- a/kernel/sql/bookmark_index_test.go+++ b/kernel/sql/bookmark_index_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/cache.go b/kernel/sql/cache.goindex 98e3e16109..ac05d55aad 100644--- a/kernel/sql/cache.go+++ b/kernel/sql/cache.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/cache_budget_test.go b/kernel/sql/cache_budget_test.goindex 2dde773c03..55492dba25 100644--- a/kernel/sql/cache_budget_test.go+++ b/kernel/sql/cache_budget_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/cache_test.go b/kernel/sql/cache_test.goindex ddbe33173c..28afe8ebc4 100644--- a/kernel/sql/cache_test.go+++ b/kernel/sql/cache_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/callout_test.go b/kernel/sql/callout_test.goindex b383729c50..7a1439088b 100644--- a/kernel/sql/callout_test.go+++ b/kernel/sql/callout_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/daily_note_index_fts5_test.go b/kernel/sql/daily_note_index_fts5_test.goindex 5ab7cf6981..5af2c2b595 100644--- a/kernel/sql/daily_note_index_fts5_test.go+++ b/kernel/sql/daily_note_index_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/daily_note_test.go b/kernel/sql/daily_note_test.goindex d0554e7ec4..80fd1bfc96 100644--- a/kernel/sql/daily_note_test.go+++ b/kernel/sql/daily_note_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/database.go b/kernel/sql/database.goindex 035cded689..d8bc0fdde0 100644--- a/kernel/sql/database.go+++ b/kernel/sql/database.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/delete_path.go b/kernel/sql/delete_path.goindex 4d1eb259ee..1f3d38079e 100644--- a/kernel/sql/delete_path.go+++ b/kernel/sql/delete_path.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/delete_path_fts5_test.go b/kernel/sql/delete_path_fts5_test.goindex d5459ed038..a49d55a292 100644--- a/kernel/sql/delete_path_fts5_test.go+++ b/kernel/sql/delete_path_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/document_index_fts5_test.go b/kernel/sql/document_index_fts5_test.goindex 43fd785921..78e9fe855e 100644--- a/kernel/sql/document_index_fts5_test.go+++ b/kernel/sql/document_index_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/document_index_sqlcipher_test.go b/kernel/sql/document_index_sqlcipher_test.goindex ae8fdb2780..11e0d255d6 100644--- a/kernel/sql/document_index_sqlcipher_test.go+++ b/kernel/sql/document_index_sqlcipher_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5 && (sqlcipher || libsqlcipher)package sqldiff --git a/kernel/sql/document_title.go b/kernel/sql/document_title.goindex 987c0b7d7c..0489d0250a 100644--- a/kernel/sql/document_title.go+++ b/kernel/sql/document_title.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/embed_content.go b/kernel/sql/embed_content.goindex 3c7c65c1bb..46b3245886 100644--- a/kernel/sql/embed_content.go+++ b/kernel/sql/embed_content.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/embedding_schema_test.go b/kernel/sql/embedding_schema_test.goindex d4c0b11cac..c7ba85182a 100644--- a/kernel/sql/embedding_schema_test.go+++ b/kernel/sql/embedding_schema_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/encrypted_query.go b/kernel/sql/encrypted_query.goindex 265d2f466c..d486a7648d 100644--- a/kernel/sql/encrypted_query.go+++ b/kernel/sql/encrypted_query.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/encrypted_query_test.go b/kernel/sql/encrypted_query_test.goindex f0ba7730eb..f9569b902c 100644--- a/kernel/sql/encrypted_query_test.go+++ b/kernel/sql/encrypted_query_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/file_annotation_ref.go b/kernel/sql/file_annotation_ref.goindex fa30714a96..7e68c6422b 100644--- a/kernel/sql/file_annotation_ref.go+++ b/kernel/sql/file_annotation_ref.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/file_annotation_ref_index_fts5_test.go b/kernel/sql/file_annotation_ref_index_fts5_test.goindex d6752595c9..f9441f396f 100644--- a/kernel/sql/file_annotation_ref_index_fts5_test.go+++ b/kernel/sql/file_annotation_ref_index_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/file_annotation_ref_test.go b/kernel/sql/file_annotation_ref_test.goindex 4dd1291693..a341e2b224 100644--- a/kernel/sql/file_annotation_ref_test.go+++ b/kernel/sql/file_annotation_ref_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/sql/history.go b/kernel/sql/history.goindex fe35375002..e3c16cabc0 100644--- a/kernel/sql/history.go+++ b/kernel/sql/history.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/history_readonly_stmt_test.go b/kernel/sql/history_readonly_stmt_test.goindex e7ff0ed3ed..388758bacf 100644--- a/kernel/sql/history_readonly_stmt_test.go+++ b/kernel/sql/history_readonly_stmt_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/hpath.go b/kernel/sql/hpath.goindex 6e934d44fe..436d6898d1 100644--- a/kernel/sql/hpath.go+++ b/kernel/sql/hpath.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/ial_decode_test.go b/kernel/sql/ial_decode_test.goindex a5e93c5bc7..4515b02e1f 100644--- a/kernel/sql/ial_decode_test.go+++ b/kernel/sql/ial_decode_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/index_changes.go b/kernel/sql/index_changes.goindex 97355ae155..ed56820b69 100644--- a/kernel/sql/index_changes.go+++ b/kernel/sql/index_changes.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/index_changes_fts5_test.go b/kernel/sql/index_changes_fts5_test.goindex 08be0d4d61..a03189665a 100644--- a/kernel/sql/index_changes_fts5_test.go+++ b/kernel/sql/index_changes_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/index_projection.go b/kernel/sql/index_projection.goindex ffc667e54f..a8a456b7e0 100644--- a/kernel/sql/index_projection.go+++ b/kernel/sql/index_projection.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/index_projection_benchmark_fts5_test.go b/kernel/sql/index_projection_benchmark_fts5_test.goindex 3285f13544..8e69a030ee 100644--- a/kernel/sql/index_projection_benchmark_fts5_test.go+++ b/kernel/sql/index_projection_benchmark_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/index_projection_fts5_test.go b/kernel/sql/index_projection_fts5_test.goindex 28921047c2..107b2c4974 100644--- a/kernel/sql/index_projection_fts5_test.go+++ b/kernel/sql/index_projection_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/index_queue.go b/kernel/sql/index_queue.goindex 550dc8c36e..b87cbe0d69 100644--- a/kernel/sql/index_queue.go+++ b/kernel/sql/index_queue.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/index_queue_test.go b/kernel/sql/index_queue_test.goindex a240adf017..1b0638513d 100644--- a/kernel/sql/index_queue_test.go+++ b/kernel/sql/index_queue_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/index_recovery_fts5_test.go b/kernel/sql/index_recovery_fts5_test.goindex c83f1ebcb6..359cb16fe7 100644--- a/kernel/sql/index_recovery_fts5_test.go+++ b/kernel/sql/index_recovery_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/live_photo_test.go b/kernel/sql/live_photo_test.goindex 1527060a14..1be4b859e0 100644--- a/kernel/sql/live_photo_test.go+++ b/kernel/sql/live_photo_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/ocr.go b/kernel/sql/ocr.goindex 167175c970..cf9ad994f6 100644--- a/kernel/sql/ocr.go+++ b/kernel/sql/ocr.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport "strings"diff --git a/kernel/sql/query_limit.go b/kernel/sql/query_limit.goindex c1c7addab7..addc29826e 100644--- a/kernel/sql/query_limit.go+++ b/kernel/sql/query_limit.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/query_limit_test.go b/kernel/sql/query_limit_test.goindex fe89a279ac..0c87357275 100644--- a/kernel/sql/query_limit_test.go+++ b/kernel/sql/query_limit_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/queue.go b/kernel/sql/queue.goindex bba98d38f1..3d088e5a80 100644--- a/kernel/sql/queue.go+++ b/kernel/sql/queue.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/queue_asset_content.go b/kernel/sql/queue_asset_content.goindex 7aa524c2c0..d3a8830fc1 100644--- a/kernel/sql/queue_asset_content.go+++ b/kernel/sql/queue_asset_content.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/queue_asset_content_test.go b/kernel/sql/queue_asset_content_test.goindex d830ef42c1..fedf0f510c 100644--- a/kernel/sql/queue_asset_content_test.go+++ b/kernel/sql/queue_asset_content_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/queue_backlink_test.go b/kernel/sql/queue_backlink_test.goindex a1e3fdeb96..c5590b4dd3 100644--- a/kernel/sql/queue_backlink_test.go+++ b/kernel/sql/queue_backlink_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/queue_history.go b/kernel/sql/queue_history.goindex 0e78187341..eb4078727f 100644--- a/kernel/sql/queue_history.go+++ b/kernel/sql/queue_history.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/queue_ref_locations_test.go b/kernel/sql/queue_ref_locations_test.goindex 91479a157d..f6560a9672 100644--- a/kernel/sql/queue_ref_locations_test.go+++ b/kernel/sql/queue_ref_locations_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport "testing"diff --git a/kernel/sql/recent_index_fts5_test.go b/kernel/sql/recent_index_fts5_test.goindex bf97eeaf94..90c2b08847 100644--- a/kernel/sql/recent_index_fts5_test.go+++ b/kernel/sql/recent_index_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/recent_index_test.go b/kernel/sql/recent_index_test.goindex d32e6b90b1..ce7aefc0a0 100644--- a/kernel/sql/recent_index_test.go+++ b/kernel/sql/recent_index_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/ref_title_test.go b/kernel/sql/ref_title_test.goindex ab27f3a727..bdfa395d9b 100644--- a/kernel/sql/ref_title_test.go+++ b/kernel/sql/ref_title_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/search_count_cache.go b/kernel/sql/search_count_cache.goindex 6526b8aa44..b378498df6 100644--- a/kernel/sql/search_count_cache.go+++ b/kernel/sql/search_count_cache.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/search_count_cache_benchmark_fts5_test.go b/kernel/sql/search_count_cache_benchmark_fts5_test.goindex da72fd2a08..bd391eddcd 100644--- a/kernel/sql/search_count_cache_benchmark_fts5_test.go+++ b/kernel/sql/search_count_cache_benchmark_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/search_count_cache_fts5_test.go b/kernel/sql/search_count_cache_fts5_test.goindex 48c42e6f51..eb364be87b 100644--- a/kernel/sql/search_count_cache_fts5_test.go+++ b/kernel/sql/search_count_cache_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/search_settings_test.go b/kernel/sql/search_settings_test.goindex 5712e2b3d6..e61e28eeda 100644--- a/kernel/sql/search_settings_test.go+++ b/kernel/sql/search_settings_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/span.go b/kernel/sql/span.goindex 3b2d2190ca..a1ad6460ec 100644--- a/kernel/sql/span.go+++ b/kernel/sql/span.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/span_test.go b/kernel/sql/span_test.goindex 05d34315f0..db97698f0c 100644--- a/kernel/sql/span_test.go+++ b/kernel/sql/span_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/stat.go b/kernel/sql/stat.goindex de6fc5f42e..59ea4e3cea 100644--- a/kernel/sql/stat.go+++ b/kernel/sql/stat.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/stmt_validate.go b/kernel/sql/stmt_validate.goindex 2b2e6a9a48..5eeef7c912 100644--- a/kernel/sql/stmt_validate.go+++ b/kernel/sql/stmt_validate.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/stmt_validate_test.go b/kernel/sql/stmt_validate_test.goindex 81492a2a67..13442f483c 100644--- a/kernel/sql/stmt_validate_test.go+++ b/kernel/sql/stmt_validate_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/tabs_test.go b/kernel/sql/tabs_test.goindex d3a9e04ebb..7aaca524b6 100644--- a/kernel/sql/tabs_test.go+++ b/kernel/sql/tabs_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/tag_index_test.go b/kernel/sql/tag_index_test.goindex 42c6db197d..fea871a7e2 100644--- a/kernel/sql/tag_index_test.go+++ b/kernel/sql/tag_index_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/sql/template_test.go b/kernel/sql/template_test.goindex 49188532d1..9a723857b9 100644--- a/kernel/sql/template_test.go+++ b/kernel/sql/template_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/upsert.go b/kernel/sql/upsert.goindex f0d933ad0a..90dac315d5 100644--- a/kernel/sql/upsert.go+++ b/kernel/sql/upsert.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage sqldiff --git a/kernel/sql/upsert_benchmark_fts5_test.go b/kernel/sql/upsert_benchmark_fts5_test.goindex 40dd667f18..0ef099508f 100644--- a/kernel/sql/upsert_benchmark_fts5_test.go+++ b/kernel/sql/upsert_benchmark_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/upsert_fts5_test.go b/kernel/sql/upsert_fts5_test.goindex 86de3f58d9..8abd61e421 100644--- a/kernel/sql/upsert_fts5_test.go+++ b/kernel/sql/upsert_fts5_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build fts5package sqldiff --git a/kernel/sql/upsert_ignore_test.go b/kernel/sql/upsert_ignore_test.goindex 390047ac18..6ad234c011 100644--- a/kernel/sql/upsert_ignore_test.go+++ b/kernel/sql/upsert_ignore_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package sqlimport (diff --git a/kernel/task/queue.go b/kernel/task/queue.goindex 543c9defc3..4604ca811f 100644--- a/kernel/task/queue.go+++ b/kernel/task/queue.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage taskdiff --git a/kernel/task/queue_test.go b/kernel/task/queue_test.goindex f0a0f21196..57b6e772bb 100644--- a/kernel/task/queue_test.go+++ b/kernel/task/queue_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package taskimport (diff --git a/kernel/task/queue_timeout_test.go b/kernel/task/queue_timeout_test.goindex b5f4083409..c77bbf5ee7 100644--- a/kernel/task/queue_timeout_test.go+++ b/kernel/task/queue_timeout_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package taskimport (diff --git a/kernel/tiffpreview/cache.go b/kernel/tiffpreview/cache.goindex e1341d60a5..0bfa5efc22 100644--- a/kernel/tiffpreview/cache.go+++ b/kernel/tiffpreview/cache.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage tiffpreviewdiff --git a/kernel/tiffpreview/cache_test.go b/kernel/tiffpreview/cache_test.goindex 95a89db68a..afe09019d6 100644--- a/kernel/tiffpreview/cache_test.go+++ b/kernel/tiffpreview/cache_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package tiffpreviewimport (diff --git a/kernel/tiffpreview/convert.go b/kernel/tiffpreview/convert.goindex 8541504a43..6ea728903c 100644--- a/kernel/tiffpreview/convert.go+++ b/kernel/tiffpreview/convert.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage tiffpreviewdiff --git a/kernel/tiffpreview/convert_test.go b/kernel/tiffpreview/convert_test.goindex 73a1baf358..eb26b04214 100644--- a/kernel/tiffpreview/convert_test.go+++ b/kernel/tiffpreview/convert_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package tiffpreviewimport (diff --git a/kernel/treenode/av.go b/kernel/treenode/av.goindex 1a94f95196..f147372836 100644--- a/kernel/treenode/av.go+++ b/kernel/treenode/av.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage treenodediff --git a/kernel/treenode/block_structure.go b/kernel/treenode/block_structure.goindex 4721375ced..b3e263b394 100644--- a/kernel/treenode/block_structure.go+++ b/kernel/treenode/block_structure.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage treenodediff --git a/kernel/treenode/block_structure_test.go b/kernel/treenode/block_structure_test.goindex b191fe34d7..a6ef8669d7 100644--- a/kernel/treenode/block_structure_test.go+++ b/kernel/treenode/block_structure_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage treenodediff --git a/kernel/treenode/blocktree.go b/kernel/treenode/blocktree.goindex 5281282159..a26b260633 100644--- a/kernel/treenode/blocktree.go+++ b/kernel/treenode/blocktree.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage treenodediff --git a/kernel/treenode/blocktree_fix.go b/kernel/treenode/blocktree_fix.goindex 20fe8a0b75..161dc5f873 100644--- a/kernel/treenode/blocktree_fix.go+++ b/kernel/treenode/blocktree_fix.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage treenodediff --git a/kernel/treenode/blocktree_query_test.go b/kernel/treenode/blocktree_query_test.goindex 2904bc9c42..794ef7c0c6 100644--- a/kernel/treenode/blocktree_query_test.go+++ b/kernel/treenode/blocktree_query_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage treenodediff --git a/kernel/treenode/blocktree_replace_test.go b/kernel/treenode/blocktree_replace_test.goindex 8c6331f3e9..aaeab96828 100644--- a/kernel/treenode/blocktree_replace_test.go+++ b/kernel/treenode/blocktree_replace_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport "testing"diff --git a/kernel/treenode/blocktree_upsert_test.go b/kernel/treenode/blocktree_upsert_test.goindex 76ed13efab..5a9ad5d685 100644--- a/kernel/treenode/blocktree_upsert_test.go+++ b/kernel/treenode/blocktree_upsert_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/container_type_test.go b/kernel/treenode/container_type_test.goindex 77c8e16cf3..1d6262ba50 100644--- a/kernel/treenode/container_type_test.go+++ b/kernel/treenode/container_type_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport "testing"diff --git a/kernel/treenode/document_legacy.go b/kernel/treenode/document_legacy.goindex f8dcb285cd..4817ea6fcd 100644--- a/kernel/treenode/document_legacy.go+++ b/kernel/treenode/document_legacy.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/document_legacy_test.go b/kernel/treenode/document_legacy_test.goindex 60d748b4fc..f420b728d0 100644--- a/kernel/treenode/document_legacy_test.go+++ b/kernel/treenode/document_legacy_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/document_metadata.go b/kernel/treenode/document_metadata.goindex 624f81a0a6..06d380c614 100644--- a/kernel/treenode/document_metadata.go+++ b/kernel/treenode/document_metadata.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/treenode/document_metadata_test.go b/kernel/treenode/document_metadata_test.goindex 8f7bb2f582..73a5e216b6 100644--- a/kernel/treenode/document_metadata_test.go+++ b/kernel/treenode/document_metadata_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/document_path.go b/kernel/treenode/document_path.goindex 92bded9b54..cbda48d3da 100644--- a/kernel/treenode/document_path.go+++ b/kernel/treenode/document_path.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/treenode/document_source.go b/kernel/treenode/document_source.goindex 571b360015..230339646e 100644--- a/kernel/treenode/document_source.go+++ b/kernel/treenode/document_source.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/document_source_test.go b/kernel/treenode/document_source_test.goindex 83b21b0d90..559d59f623 100644--- a/kernel/treenode/document_source_test.go+++ b/kernel/treenode/document_source_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/document_title.go b/kernel/treenode/document_title.goindex b68dcc6ca2..15b50fb7a0 100644--- a/kernel/treenode/document_title.go+++ b/kernel/treenode/document_title.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/treenode/fold_heading_stack_test.go b/kernel/treenode/fold_heading_stack_test.goindex 7ab7697b08..b62ea02d15 100644--- a/kernel/treenode/fold_heading_stack_test.go+++ b/kernel/treenode/fold_heading_stack_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage treenodediff --git a/kernel/treenode/heading.go b/kernel/treenode/heading.goindex 45b38e7792..36c998abad 100644--- a/kernel/treenode/heading.go+++ b/kernel/treenode/heading.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage treenodediff --git a/kernel/treenode/heading_children_test.go b/kernel/treenode/heading_children_test.goindex 685177f449..5e2dff7b14 100644--- a/kernel/treenode/heading_children_test.go+++ b/kernel/treenode/heading_children_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/hpath.go b/kernel/treenode/hpath.goindex 0b2b4aa1a8..39a202b90c 100644--- a/kernel/treenode/hpath.go+++ b/kernel/treenode/hpath.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/hpath_benchmark_test.go b/kernel/treenode/hpath_benchmark_test.goindex e9c2e0e9f9..326b48cb72 100644--- a/kernel/treenode/hpath_benchmark_test.go+++ b/kernel/treenode/hpath_benchmark_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/hpath_test.go b/kernel/treenode/hpath_test.goindex 7d241f6702..947029cffa 100644--- a/kernel/treenode/hpath_test.go+++ b/kernel/treenode/hpath_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/inline_titles.go b/kernel/treenode/inline_titles.goindex 213a62c7c5..224acca9be 100644--- a/kernel/treenode/inline_titles.go+++ b/kernel/treenode/inline_titles.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/treenode/inline_titles_test.go b/kernel/treenode/inline_titles_test.goindex 6b8f924a41..5bc9f37720 100644--- a/kernel/treenode/inline_titles_test.go+++ b/kernel/treenode/inline_titles_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/live_photo.go b/kernel/treenode/live_photo.goindex 68e163959f..cbea22ddfe 100644--- a/kernel/treenode/live_photo.go+++ b/kernel/treenode/live_photo.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage treenodediff --git a/kernel/treenode/marker.go b/kernel/treenode/marker.goindex 7ef688f88f..f380ef5393 100644--- a/kernel/treenode/marker.go+++ b/kernel/treenode/marker.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage treenodediff --git a/kernel/treenode/mindmap_test.go b/kernel/treenode/mindmap_test.goindex 9385d4d0be..44b2f12058 100644--- a/kernel/treenode/mindmap_test.go+++ b/kernel/treenode/mindmap_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/node.go b/kernel/treenode/node.goindex 55430b3994..dbc45d3c24 100644--- a/kernel/treenode/node.go+++ b/kernel/treenode/node.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage treenodediff --git a/kernel/treenode/node_test.go b/kernel/treenode/node_test.goindex 8cb3050e6e..ef97d650a2 100644--- a/kernel/treenode/node_test.go+++ b/kernel/treenode/node_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage treenodediff --git a/kernel/treenode/table_cell_rich.go b/kernel/treenode/table_cell_rich.goindex 2d15c74b27..d5ffbd1a06 100644--- a/kernel/treenode/table_cell_rich.go+++ b/kernel/treenode/table_cell_rich.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/table_cell_rich_export.go b/kernel/treenode/table_cell_rich_export.goindex 4b0336d12f..a4b5e26621 100644--- a/kernel/treenode/table_cell_rich_export.go+++ b/kernel/treenode/table_cell_rich_export.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/table_cell_rich_mutation.go b/kernel/treenode/table_cell_rich_mutation.goindex d9638cde7f..4fddb5bc0f 100644--- a/kernel/treenode/table_cell_rich_mutation.go+++ b/kernel/treenode/table_cell_rich_mutation.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/table_cell_rich_mutation_test.go b/kernel/treenode/table_cell_rich_mutation_test.goindex e43bdb8a3d..f7ffacc38e 100644--- a/kernel/treenode/table_cell_rich_mutation_test.go+++ b/kernel/treenode/table_cell_rich_mutation_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/table_cell_rich_test.go b/kernel/treenode/table_cell_rich_test.goindex 73e74c41f9..ebaa38e73c 100644--- a/kernel/treenode/table_cell_rich_test.go+++ b/kernel/treenode/table_cell_rich_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/tabs.go b/kernel/treenode/tabs.goindex 6a9a0ae747..1fc9031b10 100644--- a/kernel/treenode/tabs.go+++ b/kernel/treenode/tabs.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/treenode/tabs_test.go b/kernel/treenode/tabs_test.goindex cb979bed6e..f14614a6f1 100644--- a/kernel/treenode/tabs_test.go+++ b/kernel/treenode/tabs_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/treenode/tree.go b/kernel/treenode/tree.goindex 5d850b00e2..9f4340ffb6 100644--- a/kernel/treenode/tree.go+++ b/kernel/treenode/tree.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage treenodediff --git a/kernel/treenode/type_index_test.go b/kernel/treenode/type_index_test.goindex df03c58f6e..4a5b07ae81 100644--- a/kernel/treenode/type_index_test.go+++ b/kernel/treenode/type_index_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package treenodeimport (diff --git a/kernel/util/agent_instructions.go b/kernel/util/agent_instructions.goindex 0a37badf20..4c4a6aa932 100644--- a/kernel/util/agent_instructions.go+++ b/kernel/util/agent_instructions.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/agent_instructions_test.go b/kernel/util/agent_instructions_test.goindex 3e29ede63d..246d20b467 100644--- a/kernel/util/agent_instructions_test.go+++ b/kernel/util/agent_instructions_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/ai_client.go b/kernel/util/ai_client.goindex 46608fcc42..69ecb8dbb3 100644--- a/kernel/util/ai_client.go+++ b/kernel/util/ai_client.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/anthropic.go b/kernel/util/anthropic.goindex d05cd8a639..59d9393b11 100644--- a/kernel/util/anthropic.go+++ b/kernel/util/anthropic.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/anthropic_models.go b/kernel/util/anthropic_models.goindex 4669d53c2c..bd8769b2e5 100644--- a/kernel/util/anthropic_models.go+++ b/kernel/util/anthropic_models.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/anthropic_providers_test.go b/kernel/util/anthropic_providers_test.goindex da6ce7d432..7022741713 100644--- a/kernel/util/anthropic_providers_test.go+++ b/kernel/util/anthropic_providers_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/anthropic_stream.go b/kernel/util/anthropic_stream.goindex 242d95f953..ed21fb46f7 100644--- a/kernel/util/anthropic_stream.go+++ b/kernel/util/anthropic_stream.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/anthropic_test.go b/kernel/util/anthropic_test.goindex ba0d294a10..aef603da4f 100644--- a/kernel/util/anthropic_test.go+++ b/kernel/util/anthropic_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/appearance.go b/kernel/util/appearance.goindex e51000300b..885c4b6339 100644--- a/kernel/util/appearance.go+++ b/kernel/util/appearance.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/appearance_ignore_migration.go b/kernel/util/appearance_ignore_migration.goindex cab110f553..4e12486b8e 100644--- a/kernel/util/appearance_ignore_migration.go+++ b/kernel/util/appearance_ignore_migration.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/appearance_ignore_migration_test.go b/kernel/util/appearance_ignore_migration_test.goindex 012a429e85..89f719b8c2 100644--- a/kernel/util/appearance_ignore_migration_test.go+++ b/kernel/util/appearance_ignore_migration_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/appearance_path.go b/kernel/util/appearance_path.goindex cb56f3bd84..0b5caed222 100644--- a/kernel/util/appearance_path.go+++ b/kernel/util/appearance_path.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/appearance_path_test.go b/kernel/util/appearance_path_test.goindex 25ae595d24..e52461780c 100644--- a/kernel/util/appearance_path_test.go+++ b/kernel/util/appearance_path_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/appearance_test.go b/kernel/util/appearance_test.goindex 1d81726223..ddcf4b2494 100644--- a/kernel/util/appearance_test.go+++ b/kernel/util/appearance_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport "testing"diff --git a/kernel/util/atomic_value.go b/kernel/util/atomic_value.goindex 49c45204c4..ef1e7e308d 100644--- a/kernel/util/atomic_value.go+++ b/kernel/util/atomic_value.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport "sync/atomic"diff --git a/kernel/util/builtin_skill.go b/kernel/util/builtin_skill.goindex 816bdf98fe..f73c73706a 100644--- a/kernel/util/builtin_skill.go+++ b/kernel/util/builtin_skill.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/builtin_skill_test.go b/kernel/util/builtin_skill_test.goindex 1f691257d1..72f87cfeeb 100644--- a/kernel/util/builtin_skill_test.go+++ b/kernel/util/builtin_skill_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/captcha.go b/kernel/util/captcha.goindex 16a1ef0cfe..39ecbf8435 100644--- a/kernel/util/captcha.go+++ b/kernel/util/captcha.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/captcha_test.go b/kernel/util/captcha_test.goindex 2dffd44dcd..a9ca9ba8b8 100644--- a/kernel/util/captcha_test.go+++ b/kernel/util/captcha_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/cert.go b/kernel/util/cert.goindex 19cdfd3bfc..329e2fe55c 100644--- a/kernel/util/cert.go+++ b/kernel/util/cert.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/chatgpt.go b/kernel/util/chatgpt.goindex fc9fcc2224..1ed99e83b5 100644--- a/kernel/util/chatgpt.go+++ b/kernel/util/chatgpt.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/chatgpt_test.go b/kernel/util/chatgpt_test.goindex ea417113bc..1434d206bb 100644--- a/kernel/util/chatgpt_test.go+++ b/kernel/util/chatgpt_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/clipboard.go b/kernel/util/clipboard.goindex 088dfc421a..d8778f594d 100644--- a/kernel/util/clipboard.go+++ b/kernel/util/clipboard.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build (!windows && !darwin) || iosdiff --git a/kernel/util/clipboard_darwin.go b/kernel/util/clipboard_darwin.goindex 8539bd276a..e47be274ac 100644--- a/kernel/util/clipboard_darwin.go+++ b/kernel/util/clipboard_darwin.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build darwin && !iosdiff --git a/kernel/util/clipboard_windows.go b/kernel/util/clipboard_windows.goindex cf8961dd18..25e17b8c41 100644--- a/kernel/util/clipboard_windows.go+++ b/kernel/util/clipboard_windows.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build windowsdiff --git a/kernel/util/cloud.go b/kernel/util/cloud.goindex 6d36d0e37c..0d22bbeee2 100644--- a/kernel/util/cloud.go+++ b/kernel/util/cloud.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/cmux.go b/kernel/util/cmux.goindex 1d20702ee2..8c98fa1631 100644--- a/kernel/util/cmux.go+++ b/kernel/util/cmux.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/cmux_test.go b/kernel/util/cmux_test.goindex 14ef8841d2..9cb9a6d3ea 100644--- a/kernel/util/cmux_test.go+++ b/kernel/util/cmux_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/compare_write.go b/kernel/util/compare_write.goindex 269dee2f45..38271156b6 100644--- a/kernel/util/compare_write.go+++ b/kernel/util/compare_write.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/util/compare_write_test.go b/kernel/util/compare_write_test.goindex 888d1dcf27..2fdfaa6aab 100644--- a/kernel/util/compare_write_test.go+++ b/kernel/util/compare_write_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/crypt.go b/kernel/util/crypt.goindex 8f84fa0b69..6b0d48fc19 100644--- a/kernel/util/crypt.go+++ b/kernel/util/crypt.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/custom_font.go b/kernel/util/custom_font.goindex a8d3266df6..0d252b3e07 100644--- a/kernel/util/custom_font.go+++ b/kernel/util/custom_font.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/custom_font_test.go b/kernel/util/custom_font_test.goindex b15be52e86..fafb99b926 100644--- a/kernel/util/custom_font_test.go+++ b/kernel/util/custom_font_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/decision.go b/kernel/util/decision.goindex 6db54f9f7a..9e4cbab15f 100644--- a/kernel/util/decision.go+++ b/kernel/util/decision.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/decision_input.go b/kernel/util/decision_input.goindex 5de210c0e0..30d68f5cc3 100644--- a/kernel/util/decision_input.go+++ b/kernel/util/decision_input.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/decision_input_test.go b/kernel/util/decision_input_test.goindex acfd80116f..adf98025ec 100644--- a/kernel/util/decision_input_test.go+++ b/kernel/util/decision_input_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/decision_openai_test.go b/kernel/util/decision_openai_test.goindex 4ea675d272..c5006ec32e 100644--- a/kernel/util/decision_openai_test.go+++ b/kernel/util/decision_openai_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/decision_provider.go b/kernel/util/decision_provider.goindex c45c88ea5b..28fdada391 100644--- a/kernel/util/decision_provider.go+++ b/kernel/util/decision_provider.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/decision_test.go b/kernel/util/decision_test.goindex 8b53154c2f..e7331bb4ab 100644--- a/kernel/util/decision_test.go+++ b/kernel/util/decision_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/deepseek_web.go b/kernel/util/deepseek_web.goindex ce199780c7..543fd70d33 100644--- a/kernel/util/deepseek_web.go+++ b/kernel/util/deepseek_web.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/deepseek_web_test.go b/kernel/util/deepseek_web_test.goindex 75b077e086..577c848379 100644--- a/kernel/util/deepseek_web_test.go+++ b/kernel/util/deepseek_web_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/disk.go b/kernel/util/disk.goindex a9a9dda177..e3fcddfab2 100644--- a/kernel/util/disk.go+++ b/kernel/util/disk.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build !ios && !androiddiff --git a/kernel/util/disk_mobile.go b/kernel/util/disk_mobile.goindex d962f16e53..c0d595e6c5 100644--- a/kernel/util/disk_mobile.go+++ b/kernel/util/disk_mobile.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build ios || androiddiff --git a/kernel/util/embedding_test.go b/kernel/util/embedding_test.goindex 1b4ac429b7..deab49c11f 100644--- a/kernel/util/embedding_test.go+++ b/kernel/util/embedding_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/encrypted_index.go b/kernel/util/encrypted_index.goindex 7d0151b6bf..6c03662cd3 100644--- a/kernel/util/encrypted_index.go+++ b/kernel/util/encrypted_index.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/util/etag.go b/kernel/util/etag.goindex da043718cf..2a9ca79f91 100644--- a/kernel/util/etag.go+++ b/kernel/util/etag.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/file.go b/kernel/util/file.goindex 2390c61475..57f26d337f 100644--- a/kernel/util/file.go+++ b/kernel/util/file.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/file_annotation.go b/kernel/util/file_annotation.goindex 1fdecb1a0d..51bb6b82f3 100644--- a/kernel/util/file_annotation.go+++ b/kernel/util/file_annotation.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/util/file_annotation_test.go b/kernel/util/file_annotation_test.goindex 61d99345d1..c7686914aa 100644--- a/kernel/util/file_annotation_test.go+++ b/kernel/util/file_annotation_test.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/util/file_empty_dir_test.go b/kernel/util/file_empty_dir_test.goindex 52a8301cef..9d636ca7da 100644--- a/kernel/util/file_empty_dir_test.go+++ b/kernel/util/file_empty_dir_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/file_name_test.go b/kernel/util/file_name_test.goindex 1c9dce4847..ffc590e001 100644--- a/kernel/util/file_name_test.go+++ b/kernel/util/file_name_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/font.go b/kernel/util/font.goindex 9f1107e988..04ad2e49f7 100644--- a/kernel/util/font.go+++ b/kernel/util/font.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/font_platform_darwin.go b/kernel/util/font_platform_darwin.goindex 3eb2245ae7..49d9328697 100644--- a/kernel/util/font_platform_darwin.go+++ b/kernel/util/font_platform_darwin.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build darwin && !iosdiff --git a/kernel/util/font_platform_darwin_test.go b/kernel/util/font_platform_darwin_test.goindex 065a0a0013..a0e00376b4 100644--- a/kernel/util/font_platform_darwin_test.go+++ b/kernel/util/font_platform_darwin_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build darwin && !iosdiff --git a/kernel/util/font_platform_linux.go b/kernel/util/font_platform_linux.goindex 03e1404a39..06503abf36 100644--- a/kernel/util/font_platform_linux.go+++ b/kernel/util/font_platform_linux.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build linux && !androiddiff --git a/kernel/util/font_platform_linux_test.go b/kernel/util/font_platform_linux_test.goindex 6bd904d79d..45807bb70c 100644--- a/kernel/util/font_platform_linux_test.go+++ b/kernel/util/font_platform_linux_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build linux && !androiddiff --git a/kernel/util/font_platform_other.go b/kernel/util/font_platform_other.goindex c3c9b424ba..946fb64465 100644--- a/kernel/util/font_platform_other.go+++ b/kernel/util/font_platform_other.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build (!darwin && !windows && !linux) || ios || androiddiff --git a/kernel/util/font_platform_windows.go b/kernel/util/font_platform_windows.goindex 58ea68eab3..3d98f99f93 100644--- a/kernel/util/font_platform_windows.go+++ b/kernel/util/font_platform_windows.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build windows && !iosdiff --git a/kernel/util/font_platform_windows_test.go b/kernel/util/font_platform_windows_test.goindex 7256612946..8404dedddc 100644--- a/kernel/util/font_platform_windows_test.go+++ b/kernel/util/font_platform_windows_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build windows && !iosdiff --git a/kernel/util/font_test.go b/kernel/util/font_test.goindex 6e8754b234..5af32c9dab 100644--- a/kernel/util/font_test.go+++ b/kernel/util/font_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/fontconfig.go b/kernel/util/fontconfig.goindex 0624510de0..2f3aeb8605 100644--- a/kernel/util/fontconfig.go+++ b/kernel/util/fontconfig.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/fontconfig_test.go b/kernel/util/fontconfig_test.goindex 8a1203b287..2567541461 100644--- a/kernel/util/fontconfig_test.go+++ b/kernel/util/fontconfig_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/gemini_interactions.go b/kernel/util/gemini_interactions.goindex 0548d66676..03cf2a3cc0 100644--- a/kernel/util/gemini_interactions.go+++ b/kernel/util/gemini_interactions.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/gemini_interactions_models.go b/kernel/util/gemini_interactions_models.goindex 82db741ed8..92b20bcfc8 100644--- a/kernel/util/gemini_interactions_models.go+++ b/kernel/util/gemini_interactions_models.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/gemini_interactions_stream.go b/kernel/util/gemini_interactions_stream.goindex 0aaea7c9b9..b511b7b0ae 100644--- a/kernel/util/gemini_interactions_stream.go+++ b/kernel/util/gemini_interactions_stream.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/gemini_interactions_test.go b/kernel/util/gemini_interactions_test.goindex 466b46d897..4f3b85dcda 100644--- a/kernel/util/gemini_interactions_test.go+++ b/kernel/util/gemini_interactions_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/http_shutdown.go b/kernel/util/http_shutdown.goindex 27fdf5ad33..a04f1229fb 100644--- a/kernel/util/http_shutdown.go+++ b/kernel/util/http_shutdown.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/http_shutdown_test.go b/kernel/util/http_shutdown_test.goindex 78eff5918b..01bf9a7f77 100644--- a/kernel/util/http_shutdown_test.go+++ b/kernel/util/http_shutdown_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/httprequest.go b/kernel/util/httprequest.goindex 3333cd14cb..75efe377ae 100644--- a/kernel/util/httprequest.go+++ b/kernel/util/httprequest.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/httprequest_test.go b/kernel/util/httprequest_test.goindex 63ced14085..e599bee9da 100644--- a/kernel/util/httprequest_test.go+++ b/kernel/util/httprequest_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/i18n.go b/kernel/util/i18n.goindex 2a41d27358..b049f30912 100644--- a/kernel/util/i18n.go+++ b/kernel/util/i18n.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/icloud_darwin.go b/kernel/util/icloud_darwin.goindex 891dea3944..a4f0dbc8c6 100644--- a/kernel/util/icloud_darwin.go+++ b/kernel/util/icloud_darwin.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build darwin && !iosdiff --git a/kernel/util/icloud_other.go b/kernel/util/icloud_other.goindex fb147f4e5a..6f651d7f71 100644--- a/kernel/util/icloud_other.go+++ b/kernel/util/icloud_other.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build !darwin || iosdiff --git a/kernel/util/icloud_test.go b/kernel/util/icloud_test.goindex d1c05dd910..7991a1e1c6 100644--- a/kernel/util/icloud_test.go+++ b/kernel/util/icloud_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/icon_test.go b/kernel/util/icon_test.goindex 5d12f11e52..d57d219046 100644--- a/kernel/util/icon_test.go+++ b/kernel/util/icon_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/index_fix_test.go b/kernel/util/index_fix_test.goindex 0d872c2521..c32001c178 100644--- a/kernel/util/index_fix_test.go+++ b/kernel/util/index_fix_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/junction_windows_test.go b/kernel/util/junction_windows_test.goindex d52fc1b582..3c9aee367b 100644--- a/kernel/util/junction_windows_test.go+++ b/kernel/util/junction_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package util_testimport (diff --git a/kernel/util/kdf.go b/kernel/util/kdf.goindex a2141f0f46..7cdcbd771e 100644--- a/kernel/util/kdf.go+++ b/kernel/util/kdf.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/kdf_test.go b/kernel/util/kdf_test.goindex 990ed956c2..95ec69aef3 100644--- a/kernel/util/kdf_test.go+++ b/kernel/util/kdf_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/lang.go b/kernel/util/lang.goindex c784114712..37036de59f 100644--- a/kernel/util/lang.go+++ b/kernel/util/lang.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/legacy_font.go b/kernel/util/legacy_font.goindex 9670a5396c..c447c880b1 100644--- a/kernel/util/legacy_font.go+++ b/kernel/util/legacy_font.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/legacy_font_test.go b/kernel/util/legacy_font_test.goindex 1e0d1cc5dd..9ac9c0a6bb 100644--- a/kernel/util/legacy_font_test.go+++ b/kernel/util/legacy_font_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/lockscreen_wallpaper.go b/kernel/util/lockscreen_wallpaper.goindex 7a370373db..7f07c96562 100644--- a/kernel/util/lockscreen_wallpaper.go+++ b/kernel/util/lockscreen_wallpaper.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/lockscreen_wallpaper_test.go b/kernel/util/lockscreen_wallpaper_test.goindex 6c0d2a768b..8a99becd22 100644--- a/kernel/util/lockscreen_wallpaper_test.go+++ b/kernel/util/lockscreen_wallpaper_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/lute.go b/kernel/util/lute.goindex 30f99a314e..1b566ede85 100644--- a/kernel/util/lute.go+++ b/kernel/util/lute.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/lute_test.go b/kernel/util/lute_test.goindex 014a73cc53..e7ea0f6b5d 100644--- a/kernel/util/lute_test.go+++ b/kernel/util/lute_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/minimax_image.go b/kernel/util/minimax_image.goindex 80270cec50..f8208938ea 100644--- a/kernel/util/minimax_image.go+++ b/kernel/util/minimax_image.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/minimax_image_test.go b/kernel/util/minimax_image_test.goindex c63293e861..4abfa39f4b 100644--- a/kernel/util/minimax_image_test.go+++ b/kernel/util/minimax_image_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/misc.go b/kernel/util/misc.goindex 416758b85f..5893e1efe4 100644--- a/kernel/util/misc.go+++ b/kernel/util/misc.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/misc_html_test.go b/kernel/util/misc_html_test.goindex 6dac56c8d3..9934d4fba8 100644--- a/kernel/util/misc_html_test.go+++ b/kernel/util/misc_html_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/mmap.go b/kernel/util/mmap.goindex 0b6f93f4d1..49a6672102 100644--- a/kernel/util/mmap.go+++ b/kernel/util/mmap.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/mmap_test.go b/kernel/util/mmap_test.goindex 0184e3bb34..f36923edec 100644--- a/kernel/util/mmap_test.go+++ b/kernel/util/mmap_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/net.go b/kernel/util/net.goindex 610b6456b5..172fa5e0c0 100644--- a/kernel/util/net.go+++ b/kernel/util/net.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/net_test.go b/kernel/util/net_test.goindex 35cc2d5559..31f012f9b4 100644--- a/kernel/util/net_test.go+++ b/kernel/util/net_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/oauth_callback.go b/kernel/util/oauth_callback.goindex bcff3028c4..9bedd58598 100644--- a/kernel/util/oauth_callback.go+++ b/kernel/util/oauth_callback.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/oauth_callback_test.go b/kernel/util/oauth_callback_test.goindex 6a308065db..fe050e19d4 100644--- a/kernel/util/oauth_callback_test.go+++ b/kernel/util/oauth_callback_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/ocr.go b/kernel/util/ocr.goindex 2e996b6de5..d0816de514 100644--- a/kernel/util/ocr.go+++ b/kernel/util/ocr.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/ocr_relink.go b/kernel/util/ocr_relink.goindex 011a8d7018..790693c0d0 100644--- a/kernel/util/ocr_relink.go+++ b/kernel/util/ocr_relink.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/util/ocr_relink_batch.go b/kernel/util/ocr_relink_batch.goindex f525127f53..f2a8792d06 100644--- a/kernel/util/ocr_relink_batch.go+++ b/kernel/util/ocr_relink_batch.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/util/ocr_relink_batch_test.go b/kernel/util/ocr_relink_batch_test.goindex b434488333..d1eff0acad 100644--- a/kernel/util/ocr_relink_batch_test.go+++ b/kernel/util/ocr_relink_batch_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/ocr_relink_test.go b/kernel/util/ocr_relink_test.goindex d646150c4c..2c0c97fd58 100644--- a/kernel/util/ocr_relink_test.go+++ b/kernel/util/ocr_relink_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/ocr_test.go b/kernel/util/ocr_test.goindex 254800d2f2..1bf455092d 100644--- a/kernel/util/ocr_test.go+++ b/kernel/util/ocr_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/openai.go b/kernel/util/openai.goindex a84937657d..14af34891f 100644--- a/kernel/util/openai.go+++ b/kernel/util/openai.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/openai_completion.go b/kernel/util/openai_completion.goindex 580e8bf4e1..4f3f7aa2d7 100644--- a/kernel/util/openai_completion.go+++ b/kernel/util/openai_completion.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/openai_completion_test.go b/kernel/util/openai_completion_test.goindex aa2468c8a4..5c3ead36bb 100644--- a/kernel/util/openai_completion_test.go+++ b/kernel/util/openai_completion_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/openai_extra_test.go b/kernel/util/openai_extra_test.goindex b22ad529db..547ac456d4 100644--- a/kernel/util/openai_extra_test.go+++ b/kernel/util/openai_extra_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/openai_gemini.go b/kernel/util/openai_gemini.goindex 17b49e0718..b6fdca17e5 100644--- a/kernel/util/openai_gemini.go+++ b/kernel/util/openai_gemini.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/openai_gemini_test.go b/kernel/util/openai_gemini_test.goindex 3f4cf4323f..9a3a80cb85 100644--- a/kernel/util/openai_gemini_test.go+++ b/kernel/util/openai_gemini_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/openai_headers.go b/kernel/util/openai_headers.goindex a85374936f..141697ffa8 100644--- a/kernel/util/openai_headers.go+++ b/kernel/util/openai_headers.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/openai_headers_test.go b/kernel/util/openai_headers_test.goindex d23aa98f1a..4dc478ff57 100644--- a/kernel/util/openai_headers_test.go+++ b/kernel/util/openai_headers_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/openai_models_test.go b/kernel/util/openai_models_test.goindex 447d58925a..b70108225b 100644--- a/kernel/util/openai_models_test.go+++ b/kernel/util/openai_models_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/openai_multimodal_test.go b/kernel/util/openai_multimodal_test.goindex ff7aaa56f4..5255829d87 100644--- a/kernel/util/openai_multimodal_test.go+++ b/kernel/util/openai_multimodal_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/openai_reasoning.go b/kernel/util/openai_reasoning.goindex 2362bb3b69..b866a43547 100644--- a/kernel/util/openai_reasoning.go+++ b/kernel/util/openai_reasoning.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/openai_reasoning_test.go b/kernel/util/openai_reasoning_test.goindex 22e52fe319..bf3f8532f1 100644--- a/kernel/util/openai_reasoning_test.go+++ b/kernel/util/openai_reasoning_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/openai_sampling_test.go b/kernel/util/openai_sampling_test.goindex 1273489264..74bf80630c 100644--- a/kernel/util/openai_sampling_test.go+++ b/kernel/util/openai_sampling_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/operation_watchdog.go b/kernel/util/operation_watchdog.goindex 3f13a28886..3289706cd2 100644--- a/kernel/util/operation_watchdog.go+++ b/kernel/util/operation_watchdog.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/operation_watchdog_test.go b/kernel/util/operation_watchdog_test.goindex df90df5f74..e757eaa755 100644--- a/kernel/util/operation_watchdog_test.go+++ b/kernel/util/operation_watchdog_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/os.go b/kernel/util/os.goindex e21ecc6466..db85d81f52 100644--- a/kernel/util/os.go+++ b/kernel/util/os.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build !ios && !androiddiff --git a/kernel/util/os_mobile.go b/kernel/util/os_mobile.goindex f417808023..d67efb5fea 100644--- a/kernel/util/os_mobile.go+++ b/kernel/util/os_mobile.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build ios || androiddiff --git a/kernel/util/pandoc.go b/kernel/util/pandoc.goindex 6907f9849e..6b9c441b5e 100644--- a/kernel/util/pandoc.go+++ b/kernel/util/pandoc.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/pandoc_test.go b/kernel/util/pandoc_test.goindex ed9559d453..e63bdabda8 100644--- a/kernel/util/pandoc_test.go+++ b/kernel/util/pandoc_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/path.go b/kernel/util/path.goindex e31437322f..5aa1dc8e8c 100644--- a/kernel/util/path.go+++ b/kernel/util/path.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/path_alias_test.go b/kernel/util/path_alias_test.goindex 2700298360..fec1a2eee8 100644--- a/kernel/util/path_alias_test.go+++ b/kernel/util/path_alias_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/path_device_namespace_windows_test.go b/kernel/util/path_device_namespace_windows_test.goindex fd6672e115..d0a7cf04fc 100644--- a/kernel/util/path_device_namespace_windows_test.go+++ b/kernel/util/path_device_namespace_windows_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build windowsdiff --git a/kernel/util/path_guard.go b/kernel/util/path_guard.goindex 773b081a40..b67705f1bc 100644--- a/kernel/util/path_guard.go+++ b/kernel/util/path_guard.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/path_guard_test.go b/kernel/util/path_guard_test.goindex 828079fad6..b92857a7a6 100644--- a/kernel/util/path_guard_test.go+++ b/kernel/util/path_guard_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/path_html_asset_test.go b/kernel/util/path_html_asset_test.goindex 523984f3fd..0fe07d4cc8 100644--- a/kernel/util/path_html_asset_test.go+++ b/kernel/util/path_html_asset_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/path_namespace_test.go b/kernel/util/path_namespace_test.goindex 9ec36e4ea6..95687a93f2 100644--- a/kernel/util/path_namespace_test.go+++ b/kernel/util/path_namespace_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/path_platform_workspace_test.go b/kernel/util/path_platform_workspace_test.goindex 3f10794d97..54b17deddf 100644--- a/kernel/util/path_platform_workspace_test.go+++ b/kernel/util/path_platform_workspace_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/path_test.go b/kernel/util/path_test.goindex cd30d98817..ceb8b51b86 100644--- a/kernel/util/path_test.go+++ b/kernel/util/path_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/performance.go b/kernel/util/performance.goindex 9088d64588..2a8657674f 100644--- a/kernel/util/performance.go+++ b/kernel/util/performance.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/performance_test.go b/kernel/util/performance_test.goindex 9eb48e6e88..6408798f75 100644--- a/kernel/util/performance_test.go+++ b/kernel/util/performance_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/plugin_development.go b/kernel/util/plugin_development.goindex 44966f4c57..188dbe4ec3 100644--- a/kernel/util/plugin_development.go+++ b/kernel/util/plugin_development.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/plugin_development_test.go b/kernel/util/plugin_development_test.goindex 4c091fceed..ac547dc579 100644--- a/kernel/util/plugin_development_test.go+++ b/kernel/util/plugin_development_test.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/plugin_project.go b/kernel/util/plugin_project.goindex 9a07b02741..a44498c360 100644--- a/kernel/util/plugin_project.go+++ b/kernel/util/plugin_project.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/plugin_project_prepare.go b/kernel/util/plugin_project_prepare.goindex 452a25b907..eb9410a17f 100644--- a/kernel/util/plugin_project_prepare.go+++ b/kernel/util/plugin_project_prepare.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/plugin_project_replan.go b/kernel/util/plugin_project_replan.goindex ee9750742c..b87c3daac1 100644--- a/kernel/util/plugin_project_replan.go+++ b/kernel/util/plugin_project_replan.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/plugin_project_source.go b/kernel/util/plugin_project_source.goindex 9a4b0eef4a..3fc13d11a9 100644--- a/kernel/util/plugin_project_source.go+++ b/kernel/util/plugin_project_source.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/plugin_project_test.go b/kernel/util/plugin_project_test.goindex 969fa583d8..360ad99549 100644--- a/kernel/util/plugin_project_test.go+++ b/kernel/util/plugin_project_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/preflight_write.go b/kernel/util/preflight_write.goindex f11e567cc9..35fc36ddf7 100644--- a/kernel/util/preflight_write.go+++ b/kernel/util/preflight_write.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/preflight_write_test.go b/kernel/util/preflight_write_test.goindex 6500f911cd..59009f7676 100644--- a/kernel/util/preflight_write_test.go+++ b/kernel/util/preflight_write_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/publish_file.go b/kernel/util/publish_file.goindex dee76a7286..b16379fb21 100644--- a/kernel/util/publish_file.go+++ b/kernel/util/publish_file.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/publish_file_other.go b/kernel/util/publish_file_other.goindex 0f8fbfdb21..d8c60d1195 100644--- a/kernel/util/publish_file_other.go+++ b/kernel/util/publish_file_other.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build !windowspackage utildiff --git a/kernel/util/publish_file_test.go b/kernel/util/publish_file_test.goindex 72bea3a9f5..140be841cf 100644--- a/kernel/util/publish_file_test.go+++ b/kernel/util/publish_file_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/publish_file_windows.go b/kernel/util/publish_file_windows.goindex c8b655f351..76c09c4af0 100644--- a/kernel/util/publish_file_windows.go+++ b/kernel/util/publish_file_windows.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/publish_file_windows_test.go b/kernel/util/publish_file_windows_test.goindex 81faa53e3f..a0805d243d 100644--- a/kernel/util/publish_file_windows_test.go+++ b/kernel/util/publish_file_windows_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build windowspackage util_testdiff --git a/kernel/util/real_path_other.go b/kernel/util/real_path_other.goindex 921e946cbd..1d01a8ef21 100644--- a/kernel/util/real_path_other.go+++ b/kernel/util/real_path_other.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build !windowsdiff --git a/kernel/util/real_path_windows.go b/kernel/util/real_path_windows.goindex d38249df79..cac373edc8 100644--- a/kernel/util/real_path_windows.go+++ b/kernel/util/real_path_windows.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build windowsdiff --git a/kernel/util/rerank_test.go b/kernel/util/rerank_test.goindex d66876ec76..bffa019f1a 100644--- a/kernel/util/rerank_test.go+++ b/kernel/util/rerank_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/result.go b/kernel/util/result.goindex 37ab12ce53..2d3284740d 100644--- a/kernel/util/result.go+++ b/kernel/util/result.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/rhy.go b/kernel/util/rhy.goindex 8db20d1572..e863a99e6b 100644--- a/kernel/util/rhy.go+++ b/kernel/util/rhy.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/rune.go b/kernel/util/rune.goindex 8b550afa65..98a272b9e0 100644--- a/kernel/util/rune.go+++ b/kernel/util/rune.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/runtime.go b/kernel/util/runtime.goindex c6628855a0..b8deca2964 100644--- a/kernel/util/runtime.go+++ b/kernel/util/runtime.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/runtime_filesys.go b/kernel/util/runtime_filesys.goindex e531e2ce6c..287757b192 100644--- a/kernel/util/runtime_filesys.go+++ b/kernel/util/runtime_filesys.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/runtime_filesys_test.go b/kernel/util/runtime_filesys_test.goindex e26edff283..bd52d00ef2 100644--- a/kernel/util/runtime_filesys_test.go+++ b/kernel/util/runtime_filesys_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/runtime_info.go b/kernel/util/runtime_info.goindex 6416cedf4e..be53a1c12b 100644--- a/kernel/util/runtime_info.go+++ b/kernel/util/runtime_info.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/runtime_test.go b/kernel/util/runtime_test.goindex 65c9d532b3..eba5210b88 100644--- a/kernel/util/runtime_test.go+++ b/kernel/util/runtime_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/sanitize_svg_test.go b/kernel/util/sanitize_svg_test.goindex d6796f7cbf..8cb4b31c7b 100644--- a/kernel/util/sanitize_svg_test.go+++ b/kernel/util/sanitize_svg_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/session.go b/kernel/util/session.goindex ffd6acac08..e814d443a9 100644--- a/kernel/util/session.go+++ b/kernel/util/session.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/session_test.go b/kernel/util/session_test.goindex 2b16cb64c1..939446f730 100644--- a/kernel/util/session_test.go+++ b/kernel/util/session_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/shared_cache_test.go b/kernel/util/shared_cache_test.goindex d5bf7325cb..5e127b69c5 100644--- a/kernel/util/shared_cache_test.go+++ b/kernel/util/shared_cache_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/skill.go b/kernel/util/skill.goindex 4f8c2e5c7c..4361835403 100644--- a/kernel/util/skill.go+++ b/kernel/util/skill.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/skill_manage.go b/kernel/util/skill_manage.goindex 5bc7e82028..46f5a27af1 100644--- a/kernel/util/skill_manage.go+++ b/kernel/util/skill_manage.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/skill_manage_test.go b/kernel/util/skill_manage_test.goindex b6af8ed849..5762318962 100644--- a/kernel/util/skill_manage_test.go+++ b/kernel/util/skill_manage_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/skill_manage_text_test.go b/kernel/util/skill_manage_text_test.goindex 0d5c7c090a..a18beedacb 100644--- a/kernel/util/skill_manage_text_test.go+++ b/kernel/util/skill_manage_text_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/skill_test.go b/kernel/util/skill_test.goindex 1d0fc8c927..3a92aabafb 100644--- a/kernel/util/skill_test.go+++ b/kernel/util/skill_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/sort.go b/kernel/util/sort.goindex 31acfe8cfd..1eeb3ee90d 100644--- a/kernel/util/sort.go+++ b/kernel/util/sort.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/sqlite_cache.go b/kernel/util/sqlite_cache.goindex b74957da03..aec089e306 100644--- a/kernel/util/sqlite_cache.go+++ b/kernel/util/sqlite_cache.go@@ -1,4 +1,4 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org// SPDX-License-Identifier: AGPL-3.0-or-laterdiff --git a/kernel/util/sqlite_cache_test.go b/kernel/util/sqlite_cache_test.goindex 535486e1fb..b750ff8f19 100644--- a/kernel/util/sqlite_cache_test.go+++ b/kernel/util/sqlite_cache_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/system_proxy.go b/kernel/util/system_proxy.goindex fc5aef96cf..bab4809208 100644--- a/kernel/util/system_proxy.go+++ b/kernel/util/system_proxy.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/system_proxy_darwin.go b/kernel/util/system_proxy_darwin.goindex 3741b2b61f..8286844ac7 100644--- a/kernel/util/system_proxy_darwin.go+++ b/kernel/util/system_proxy_darwin.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build darwin && !iosdiff --git a/kernel/util/system_proxy_linux.go b/kernel/util/system_proxy_linux.goindex 3f89400442..3ee1a6f7fd 100644--- a/kernel/util/system_proxy_linux.go+++ b/kernel/util/system_proxy_linux.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build linux && !androidpackage utildiff --git a/kernel/util/system_proxy_linux_integration_test.go b/kernel/util/system_proxy_linux_integration_test.goindex 05158e8b8a..c4939089f8 100644--- a/kernel/util/system_proxy_linux_integration_test.go+++ b/kernel/util/system_proxy_linux_integration_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build linux && !androidpackage utildiff --git a/kernel/util/system_proxy_linux_test.go b/kernel/util/system_proxy_linux_test.goindex e4ffab7c85..88a963bb3b 100644--- a/kernel/util/system_proxy_linux_test.go+++ b/kernel/util/system_proxy_linux_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+//go:build linux && !androidpackage utildiff --git a/kernel/util/system_proxy_macos.go b/kernel/util/system_proxy_macos.goindex a6398f2140..02285db295 100644--- a/kernel/util/system_proxy_macos.go+++ b/kernel/util/system_proxy_macos.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/system_proxy_macos_integration_test.go b/kernel/util/system_proxy_macos_integration_test.goindex 6894300073..21fbd7146a 100644--- a/kernel/util/system_proxy_macos_integration_test.go+++ b/kernel/util/system_proxy_macos_integration_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/system_proxy_macos_test.go b/kernel/util/system_proxy_macos_test.goindex 0ea1ddb4a0..d2f075aa6a 100644--- a/kernel/util/system_proxy_macos_test.go+++ b/kernel/util/system_proxy_macos_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/system_proxy_other.go b/kernel/util/system_proxy_other.goindex 5899b62fa0..d4bea6a3bc 100644--- a/kernel/util/system_proxy_other.go+++ b/kernel/util/system_proxy_other.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build !windows && (!linux || android) && (!darwin || ios)diff --git a/kernel/util/system_proxy_test.go b/kernel/util/system_proxy_test.goindex 21f6a032a8..cdba2236cf 100644--- a/kernel/util/system_proxy_test.go+++ b/kernel/util/system_proxy_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/system_proxy_windows.go b/kernel/util/system_proxy_windows.goindex 24c54beed2..56d69aedf9 100644--- a/kernel/util/system_proxy_windows.go+++ b/kernel/util/system_proxy_windows.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-later//go:build windowsdiff --git a/kernel/util/text_file.go b/kernel/util/text_file.goindex 4be91bc0fe..254175f321 100644--- a/kernel/util/text_file.go+++ b/kernel/util/text_file.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/text_file_error_test.go b/kernel/util/text_file_error_test.goindex 94ecb0af7b..cc79a327c7 100644--- a/kernel/util/text_file_error_test.go+++ b/kernel/util/text_file_error_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/text_file_links_other.go b/kernel/util/text_file_links_other.goindex 73c7c830c2..5525e6d786 100644--- a/kernel/util/text_file_links_other.go+++ b/kernel/util/text_file_links_other.go@@ -1,8 +1,8 @@-//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-later++//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windowspackage utildiff --git a/kernel/util/text_file_links_unix.go b/kernel/util/text_file_links_unix.goindex f27b08035a..7ce2d7b8d1 100644--- a/kernel/util/text_file_links_unix.go+++ b/kernel/util/text_file_links_unix.go@@ -1,8 +1,8 @@-//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-later++//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solarispackage utildiff --git a/kernel/util/text_file_links_windows.go b/kernel/util/text_file_links_windows.goindex 96fc342ea4..a5dc3f65a1 100644--- a/kernel/util/text_file_links_windows.go+++ b/kernel/util/text_file_links_windows.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/text_file_test.go b/kernel/util/text_file_test.goindex b69815d11b..e0717c0527 100644--- a/kernel/util/text_file_test.go+++ b/kernel/util/text_file_test.go@@ -1,6 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/text_file_unix_test.go b/kernel/util/text_file_unix_test.goindex 09afa821e2..a921f56306 100644--- a/kernel/util/text_file_unix_test.go+++ b/kernel/util/text_file_unix_test.go@@ -1,8 +1,8 @@-//go:build linux || darwin || freebsd || openbsd || netbsd--// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-// Licensed under the GNU Affero General Public License, version 3 or later.+// SPDX-License-Identifier: AGPL-3.0-or-later++//go:build linux || darwin || freebsd || openbsd || netbsdpackage utildiff --git a/kernel/util/time.go b/kernel/util/time.goindex b3988fba15..74691e778d 100644--- a/kernel/util/time.go+++ b/kernel/util/time.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/time_test.go b/kernel/util/time_test.goindex f04f81f48f..e8201eeed3 100644--- a/kernel/util/time_test.go+++ b/kernel/util/time_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/tls.go b/kernel/util/tls.goindex eb4be75393..682cc8638c 100644--- a/kernel/util/tls.go+++ b/kernel/util/tls.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/tls_cert_manager.go b/kernel/util/tls_cert_manager.goindex 85f323454f..172f6c2061 100644--- a/kernel/util/tls_cert_manager.go+++ b/kernel/util/tls_cert_manager.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/tls_cert_manager_test.go b/kernel/util/tls_cert_manager_test.goindex 16b471e581..fc2f8c23eb 100644--- a/kernel/util/tls_cert_manager_test.go+++ b/kernel/util/tls_cert_manager_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/tooloutput.go b/kernel/util/tooloutput.goindex 518c551c8e..9e5b50b4df 100644--- a/kernel/util/tooloutput.go+++ b/kernel/util/tooloutput.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/tracked_file.go b/kernel/util/tracked_file.goindex 744b36f41d..8fdb9937d0 100644--- a/kernel/util/tracked_file.go+++ b/kernel/util/tracked_file.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/tracked_file_test.go b/kernel/util/tracked_file_test.goindex 07df0d5fa4..a20867eb1a 100644--- a/kernel/util/tracked_file_test.go+++ b/kernel/util/tracked_file_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/transport.go b/kernel/util/transport.goindex 5a6f37082c..5f00683474 100644--- a/kernel/util/transport.go+++ b/kernel/util/transport.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/transport_test.go b/kernel/util/transport_test.goindex 88b7e6a73d..c26cb61439 100644--- a/kernel/util/transport_test.go+++ b/kernel/util/transport_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/web_timeout.go b/kernel/util/web_timeout.goindex 51c76693e2..d9988ac9d4 100644--- a/kernel/util/web_timeout.go+++ b/kernel/util/web_timeout.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package util// NormalizeWebTimeout 统一网页搜索和抓取的超时秒数。diff --git a/kernel/util/web_timeout_test.go b/kernel/util/web_timeout_test.goindex c39d4f1781..e845febd03 100644--- a/kernel/util/web_timeout_test.go+++ b/kernel/util/web_timeout_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/webfetch.go b/kernel/util/webfetch.goindex ab4477c01e..44a84bb650 100644--- a/kernel/util/webfetch.go+++ b/kernel/util/webfetch.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/webfetch_test.go b/kernel/util/webfetch_test.goindex ef3e54df0c..aa6bb66514 100644--- a/kernel/util/webfetch_test.go+++ b/kernel/util/webfetch_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/websearch.go b/kernel/util/websearch.goindex 09b4a577c2..1fcf1f28f7 100644--- a/kernel/util/websearch.go+++ b/kernel/util/websearch.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/websearch_test.go b/kernel/util/websearch_test.goindex a7d9dfec26..fe3a3353fb 100644--- a/kernel/util/websearch_test.go+++ b/kernel/util/websearch_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/websocket.go b/kernel/util/websocket.goindex 7fbbb1126d..0b5fad77a3 100644--- a/kernel/util/websocket.go+++ b/kernel/util/websocket.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/websocket_notification_test.go b/kernel/util/websocket_notification_test.goindex d0f5a213f2..effe7ec49d 100644--- a/kernel/util/websocket_notification_test.go+++ b/kernel/util/websocket_notification_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/websocket_serialization_test.go b/kernel/util/websocket_serialization_test.goindex aa8920456d..7b9a60fa41 100644--- a/kernel/util/websocket_serialization_test.go+++ b/kernel/util/websocket_serialization_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport "testing"diff --git a/kernel/util/websocket_test.go b/kernel/util/websocket_test.goindex 2fffe13532..2989c370a4 100644--- a/kernel/util/websocket_test.go+++ b/kernel/util/websocket_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/working.go b/kernel/util/working.goindex a88ea06603..b92bdbc493 100644--- a/kernel/util/working.go+++ b/kernel/util/working.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/working_home_test.go b/kernel/util/working_home_test.goindex 995e58e7f2..87ab889ff6 100644--- a/kernel/util/working_home_test.go+++ b/kernel/util/working_home_test.go@@ -1,10 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/working_mobile.go b/kernel/util/working_mobile.goindex 2f07ba5124..3b64807a24 100644--- a/kernel/util/working_mobile.go+++ b/kernel/util/working_mobile.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/working_mobile_test.go b/kernel/util/working_mobile_test.goindex c7bbb54607..fcf95c23b9 100644--- a/kernel/util/working_mobile_test.go+++ b/kernel/util/working_mobile_test.go@@ -1,18 +1,6 @@-// SiYuan - From thought to insight, with agents+// SiYuan - https://github.com/siyuan-note/siyuan// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.+// SPDX-License-Identifier: AGPL-3.0-or-laterpackage utildiff --git a/kernel/util/working_workspace_test.go b/kernel/util/working_workspace_test.goindex 7bb53b1241..ed9d6141c1 100644--- a/kernel/util/working_workspace_test.go+++ b/kernel/util/working_workspace_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/workspace_drive.go b/kernel/util/workspace_drive.goindex 6a344dc779..65ab752531 100644--- a/kernel/util/workspace_drive.go+++ b/kernel/util/workspace_drive.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/workspace_drive_test.go b/kernel/util/workspace_drive_test.goindex 0c3be3c785..d5bf077661 100644--- a/kernel/util/workspace_drive_test.go+++ b/kernel/util/workspace_drive_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/workspace_exit.go b/kernel/util/workspace_exit.goindex fca79b4842..6aa9bd610b 100644--- a/kernel/util/workspace_exit.go+++ b/kernel/util/workspace_exit.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/workspace_exit_test.go b/kernel/util/workspace_exit_test.goindex 54dac181c9..c03855d4ae 100644--- a/kernel/util/workspace_exit_test.go+++ b/kernel/util/workspace_exit_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/workspace_storage.go b/kernel/util/workspace_storage.goindex 4a63fbb845..b00c0e2da3 100644--- a/kernel/util/workspace_storage.go+++ b/kernel/util/workspace_storage.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/kernel/util/workspace_storage_test.go b/kernel/util/workspace_storage_test.goindex 5beba263d5..b7ac0e48a4 100644--- a/kernel/util/workspace_storage_test.go+++ b/kernel/util/workspace_storage_test.go@@ -1,3 +1,7 @@+// SiYuan - https://github.com/siyuan-note/siyuan+// Copyright (c) 2020-present, b3log.org+// SPDX-License-Identifier: AGPL-3.0-or-later+package utilimport (diff --git a/scripts/apply-license-headers.mjs b/scripts/apply-license-headers.mjsnew file mode 100644index 0000000000..3c269e98b7--- /dev/null+++ b/scripts/apply-license-headers.mjs@@ -0,0 +1,58 @@+// 按统一规则处理文件头:内核 Go 源码补上三行文件头,其他语言的源码删掉既有文件头。+// 幂等:已符合的文件不会被改写。+import {writeFileSync} from "node:fs";+import {join} from "node:path";+import {+ listRemovalScopeFiles, listSourceFiles, planHeader, planRemoval, readSource, repoRoot,+} from "./license-header.mjs";++const dryRun = process.argv.includes("--dry-run");++const summary = {insert: [], rewrite: [], keep: [], skip: [], remove: []};++for (const file of listSourceFiles()) {+ const text = readSource(file);+ const plan = planHeader(file, text);+ summary[plan.action].push(plan.action === "skip" ? {file, warning: plan.warning} : {file});+ if (plan.action === "keep" || plan.action === "skip") {+ continue;+ }+ if (!dryRun) {+ writeFileSync(join(repoRoot, file), plan.text, "utf8");+ }+}++for (const file of listRemovalScopeFiles()) {+ const text = readSource(file);+ const plan = planRemoval(file, text);+ if (!plan.remove) {+ continue;+ }+ summary.remove.push({file});+ if (!dryRun) {+ writeFileSync(join(repoRoot, file), plan.text, "utf8");+ }+}++console.log(dryRun ? "=== 试运行,未写入任何文件 ===" : "=== 已写入 ===");+for (const action of ["insert", "rewrite", "remove", "keep", "skip"]) {+ console.log(`${action.padEnd(10)}${summary[action].length}`);+}++for (const action of ["insert", "rewrite", "remove", "keep"]) {+ if (!summary[action].length) {+ continue;+ }+ console.log(`\n=== ${action}(${summary[action].length})===`);+ for (const item of summary[action]) {+ console.log(" " + item.file);+ }+}++if (summary.skip.length) {+ console.log(`\n=== 需人工确认(${summary.skip.length})===`);+ for (const item of summary.skip) {+ console.log(` ${item.file}\n ${item.warning}`);+ }+ process.exitCode = 1;+}diff --git a/scripts/check-license-headers.mjs b/scripts/check-license-headers.mjsnew file mode 100644index 0000000000..93ede1a024--- /dev/null+++ b/scripts/check-license-headers.mjs@@ -0,0 +1,41 @@+// 校验文件头规则:内核 Go 源码必须带三行文件头,其他语言的源码不得带本项目文件头。+// 纳入范围与例外在 license-header.mjs 中声明。+import {headerLines, listRemovalScopeFiles, listSourceFiles, planHeader, planRemoval, readSource} from "./license-header.mjs";++const violations = [];++for (const file of listSourceFiles()) {+ const text = readSource(file);+ const plan = planHeader(file, text);+ if (plan.action === "keep") {+ continue;+ }+ if (plan.action === "skip") {+ violations.push(`${file}:${plan.warning}`);+ continue;+ }++ // 报出第一处偏离,附上应有的三行,便于直接定位。+ const actual = text.replace(/^\uFEFF/, "").replace(/\r\n/g, "\n").split("\n");+ const detail = headerLines()+ .map((line, index) => ` 期望 ${line}\n 实际 ${actual[index] ?? "(文件结束)"}`)+ .join("\n");+ violations.push(`${file}:缺少或不规范的文件头\n${detail}`);+}++for (const file of listRemovalScopeFiles()) {+ if (planRemoval(file, readSource(file)).remove) {+ violations.push(`${file}:其他语言的源码不声明本项目文件头,请删除首部许可注释`);+ }+}++if (violations.length) {+ console.error("文件头校验失败,请运行 node scripts/apply-license-headers.mjs 修正:");+ for (const violation of violations) {+ console.error(" " + violation);+ }+ console.error(`共 ${violations.length} 个文件`);+ process.exit(1);+}++console.log("文件头校验通过");diff --git a/scripts/license-header.mjs b/scripts/license-header.mjsnew file mode 100644index 0000000000..0587bab588--- /dev/null+++ b/scripts/license-header.mjs@@ -0,0 +1,324 @@+// 内核 Go 源码的统一文件头。apply-license-headers.mjs 用它改写,+// check-license-headers.mjs 用它校验,两处共用本文件的定义。+import {execFileSync} from "node:child_process";+import {readFileSync} from "node:fs";+import {dirname, join, resolve} from "node:path";+import {fileURLToPath} from "node:url";++export const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");++// 头部三行,其后固定跟一个空行。+const HEADER_TEXT = [+ "SiYuan - https://github.com/siyuan-note/siyuan",+ "Copyright (c) 2020-present, b3log.org",+ "SPDX-License-Identifier: AGPL-3.0-or-later",+];++// 派生自其他项目、持有自己许可的子树。它们既不加本项目文件头,也不允许残留,+// 否则会覆盖上游的许可声明。+export const THIRD_PARTY_PREFIXES = [+ "kernel/plugin/encoding/", // Apache-2.0,grafana/sobek-webapi-encoding+ "kernel/heif/internal/h265heic/", // MIT,roticv/h265+];++// Electron 主进程入口是桌面端唯一随安装包分发的可读源码,单独保留文件头。+export const KEPT_NON_GO_HEADERS = new Set(["app/electron/main.js"]);++const inThirdParty = file => THIRD_PARTY_PREFIXES.some(prefix => file.startsWith(prefix));++export const isInScope = file =>+ (file.startsWith("kernel/") && file.endsWith(".go") && !inThirdParty(file)) ||+ KEPT_NON_GO_HEADERS.has(file);++// listSourceFiles 返回仓库内跟踪的、需要带文件头的文件,顺序稳定。+export const listSourceFiles = () =>+ execFileSync("git", ["ls-files", "-z"], {cwd: repoRoot, encoding: "utf8", maxBuffer: 64 * 1024 * 1024})+ .split("\0")+ .filter(Boolean)+ .filter(isInScope)+ .sort();++// headerLines 返回该文件应具备的文件头行,统一用行注释。+export const headerLines = () => HEADER_TEXT.map(line => "// " + line);++// 头部行去掉注释符后的纯文本,用于识别既有头部属于本项目还是另一套许可。+// 同时兼容行注释、井号注释与块注释的三种前缀,删除非 Go 文件头时也走这里。+const stripComment = line => {+ let text = line.trim();+ text = text.replace(/^\/\*+!?/, "").replace(/\*\/$/, "");+ text = text.replace(/^\/\//, "").replace(/^#/, "");+ text = text.replace(/^\*\s?/, "");+ return text.trim();+};++// 既有头部的正文有多种折行。这里把它拼成一段规范文本,被收缩的每一行都必须是它的子串,+// 折行位置不同也照样命中。+const HEADER_BODY = [+ "This program is free software: you can redistribute it and/or modify",+ "it under the terms of the GNU Affero General Public License as published by",+ "the Free Software Foundation, either version 3 of the License, or",+ "(at your option) any later version.",+ "This program is distributed in the hope that it will be useful,",+ "but WITHOUT ANY WARRANTY; without even the implied warranty of",+ "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the",+ "GNU Affero General Public License for more details.",+ "You should have received a copy of the GNU Affero General Public License",+ "along with this program. If not, see <https://www.gnu.org/licenses/>.",+].join(" ").replace(/\s+/g, " ").toLowerCase();++// 头部开头的署名行与本项目特有的一行式声明。+const HEADER_SIGNATURE = [+ /^SiYuan - /i,+ /^Copyright \((?:c|C)\) \d{4}/,+ /^Licensed under the GNU Affero General Public License/i,+ /^SPDX-License-Identifier: AGPL-3\.0-or-later$/i,+];++// isHeaderLine 判断某一行是否属于既有文件头:空注释行、署名行,或规范正文的子串。+export const isHeaderLine = line => {+ const text = stripComment(line);+ if ("" === text) {+ return true;+ }+ if (HEADER_SIGNATURE.some(pattern => pattern.test(text))) {+ return true;+ }+ // 旧头部的折行位置、行内空格与许可链接的协议都不统一,比较前先抹平。+ return HEADER_BODY.includes(text.replace(/\s+/g, " ").replace("http://", "https://").toLowerCase());+};++// 收缩后仍出现的许可文本说明旧头部没有完整吃掉,需要人工确认。+const STALE_LICENSE = /GNU Affero General Public License|SPDX-License-Identifier|Licensed under|Copyright \((?:c|C)\) \d{4}/i;++const BUILD_TAG = /^\/\/go:build |^\/\/ \+build /;++// readHead 切出文件开头的可改写区域:注释块与 build tag 都在这里,+// 到第一个真正的代码行(package)之前为止。+const readHead = lines => {+ let index = 0;+ let inBlock = false;+ while (index < lines.length) {+ const line = lines[index];+ if (inBlock) {+ index++;+ if (line.includes("*/")) {+ inBlock = false;+ }+ continue;+ }+ if (line.trim() === "" || line.startsWith("//")) {+ index++;+ continue;+ }+ if (line.startsWith("/*")) {+ index++;+ inBlock = !line.includes("*/");+ continue;+ }+ break;+ }+ return {end: index, head: lines.slice(0, index)};+};++// planHeader 计算该文件改写后的内容。返回 {text, action, warning}:+// action 为 keep(已符合)、rewrite(替换既有头部)、insert(新增头部)、skip(需人工确认)。+// 按 UTF-8 BOM 与 CRLF 还原原始书写习惯,避免只为改文件头就重写整份文件的换行符。+export const planHeader = (file, text) => {+ const bom = text.startsWith("\uFEFF") ? "\uFEFF" : "";+ const crlf = text.includes("\r\n");+ const source = (bom ? text.slice(1) : text).replace(/\r\n/g, "\n");+ const lines = source.split("\n");+ const {end, head} = readHead(lines);++ // build tag 一律提到头部之后单独成段,避免被旧头部或空行位置带偏。+ const removed = new Set();+ const buildTags = [];+ head.forEach((line, offset) => {+ if (BUILD_TAG.test(line)) {+ buildTags.push(line);+ removed.add(offset);+ }+ });++ // 头部区域按空行切成若干注释组,第一组匹配既有文件头形态的即被收缩。+ const groups = [];+ let current = [];+ head.forEach((line, offset) => {+ if (line.trim() === "") {+ if (current.length) {+ groups.push(current);+ }+ current = [];+ return;+ }+ current.push({line, index: offset});+ });+ if (current.length) {+ groups.push(current);+ }++ let headerGroup = null;+ for (const group of groups) {+ if (group.some(entry => removed.has(entry.index))) {+ continue;+ }+ const blob = group.map(entry => entry.line).join("\n");+ const looksLikeHeader = /SPDX-License-Identifier|GNU Affero General Public License/.test(blob) ||+ /^\/\/\s*(?:SiYuan -|Copyright \((?:c|C)\) \d{4})/.test(group[0].line);+ if (looksLikeHeader) {+ headerGroup = group;+ break;+ }+ }++ if (headerGroup) {+ // 从组首逐行吃掉头部,剩余行(包文档、说明注释)保留。+ let consumed = 0;+ while (consumed < headerGroup.length && isHeaderLine(headerGroup[consumed].line)) {+ consumed++;+ }+ for (let i = 0; i < consumed; i++) {+ removed.add(headerGroup[i].index);+ }+ const stale = headerGroup.slice(consumed).filter(entry => STALE_LICENSE.test(stripComment(entry.line)));+ if (stale.length) {+ return {action: "skip", text, warning: `收缩后仍残留许可文本:${stale[0].line.trim()}`};+ }+ }++ const kept = [];+ for (let index = 0; index < end; index++) {+ if (removed.has(index)) {+ continue;+ }+ kept.push(lines[index]);+ }+ // 保留注释与后续代码之间原本是否空行,避免凭空插入或删除空行。+ const blankBeforeBody = head.length > 0 && head[head.length - 1].trim() === "";+ while (kept.length && kept[0].trim() === "") {+ kept.shift();+ }+ while (kept.length && kept[kept.length - 1].trim() === "") {+ kept.pop();+ }++ const output = [...headerLines()];+ output.push("");+ if (buildTags.length) {+ output.push(...buildTags);+ output.push("");+ }+ if (kept.length) {+ output.push(...kept);+ if (blankBeforeBody) {+ output.push("");+ }+ }+ output.push(...lines.slice(end));++ const body = output.join("\n");+ const next = bom + (crlf ? body.replace(/\n/g, "\r\n") : body);+ let action = "keep";+ if (next !== text) {+ action = headerGroup ? "rewrite" : "insert";+ }+ return {action, text: next, warning: ""};+};++// 只有内核 Go 源码声明许可文件头。其他语言的源码不加文件头,已存在的要删掉,+// 只有内核 Go 源码声明许可文件头,其他语言的源码不加文件头,已存在的要删掉,+// 避免同一仓库里两套相互矛盾的约定。+const REMOVAL_SUFFIXES = new Set([".ts", ".tsx", ".js", ".mjs", ".cjs", ".scss", ".css", ".py", ".ps1", ".sh", ".html", ".vue"]);++// 构建产物与上游二进制目录不参与检查。+const REMOVAL_EXCLUDED_PREFIXES = ["app/stage/", "app/pandoc/"];++const suffixOf = file => file.slice(file.lastIndexOf(".")).toLowerCase();++// isRemovalScope 覆盖所有不允许带本项目文件头的文件:非 Go 源码,以及第三方子树里的+// 任何源码。漏掉后者会让上游的许可声明被本项目声明覆盖。+export const isRemovalScope = file => {+ if (inThirdParty(file)) {+ return true;+ }+ return !file.startsWith("kernel/") &&+ !KEPT_NON_GO_HEADERS.has(file) &&+ REMOVAL_SUFFIXES.has(suffixOf(file)) &&+ !REMOVAL_EXCLUDED_PREFIXES.some(prefix => file.startsWith(prefix));+};++// 本项目许可头的识别特征。只认 AGPL 与本项目署名,第三方子树里的 Apache-2.0、MIT 等+// 其他 SPDX 声明不会被当成待删文件头。+const OUR_LICENSE = /SPDX-License-Identifier: AGPL-3\.0-or-later|GNU Affero General Public License|^SiYuan - |b3log\.org|SiYuan Community/m;++// listRemovalScopeFiles 返回仓库内跟踪的、不允许带本项目文件头的文件。+export const listRemovalScopeFiles = () =>+ execFileSync("git", ["ls-files", "-z"], {cwd: repoRoot, encoding: "utf8", maxBuffer: 64 * 1024 * 1024})+ .split("\0")+ .filter(Boolean)+ .filter(isRemovalScope)+ .sort();++// planRemoval 计算该文件删除许可文件头后的内容。返回 {remove, text}:+// remove 为 true 表示首部注释组是本项目许可头,已从结果中去掉。+export const planRemoval = (file, text) => {+ const bom = text.startsWith("\uFEFF") ? "\uFEFF" : "";+ const crlf = text.includes("\r\n");+ const source = (bom ? text.slice(1) : text).replace(/\r\n/g, "\n");+ const lines = source.split("\n");++ let index = lines[0] && lines[0].startsWith("#!") ? 1 : 0;+ const start = index;++ // 只取首个注释组:空行之后的内容属于说明注释,不在删除范围。+ const group = [];+ let inBlock = false;+ while (index < lines.length) {+ const line = lines[index];+ if (inBlock) {+ group.push(line);+ index++;+ if (line.includes("*/")) {+ inBlock = false;+ }+ continue;+ }+ if (line.trim() === "") {+ break;+ }+ if (line.startsWith("//") || line.startsWith("#")) {+ group.push(line);+ index++;+ continue;+ }+ if (line.startsWith("/*")) {+ group.push(line);+ index++;+ inBlock = !line.includes("*/");+ continue;+ }+ break;+ }+ if (!group.length || !OUR_LICENSE.test(group.join("\n"))) {+ return {remove: false, text};+ }++ let consumed = 0;+ while (consumed < group.length && isHeaderLine(group[consumed])) {+ consumed++;+ }+ if (0 === consumed) {+ return {remove: false, text};+ }++ // 文件头之后紧跟的空行一并去掉,避免文件以空行开头。+ let cursor = start + consumed;+ while (cursor < lines.length && lines[cursor].trim() === "") {+ cursor++;+ }++ const body = [...lines.slice(0, start), ...lines.slice(cursor)].join("\n");+ return {remove: true, text: bom + (crlf ? body.replace(/\n/g, "\r\n") : body)};+};++export const readSource = file => readFileSync(join(repoRoot, file), "utf8");