@shiqianjiang/ceru-plugin-core 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ceru Music contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/NOTICE ADDED
@@ -0,0 +1 @@
1
+ Development preview icons and static images in assets/catalog.json originate from CeruMusic resources and src/renderer/src/assets. They retain the source project AGPL-3.0-only license and original notices. Platform names and marks identify their respective services. These preview assets are not embedded into generated user plugins. Tooling source is separately licensed under MIT.
package/README.md CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  Ceru Music v2 的 Host 无关 Core。它读取单文件 artifact,校验 manifest,接收插件注册的 Provider、Action 和歌单 Importer,并在结果返回应用前执行统一的数据契约校验。
4
4
 
5
- Core 不实现 Electron、播放器、歌单数据库或账号登录。宿主通过 `CoreHostAdapter` 提供 sandbox、HTTP、权限和 UI 服务;CeruMusic 的 Electron Host 与开发 Host 使用同一边界。
5
+ Core 提供 `./node` 纯 Node worker 运行环境、`./electron` 可见页面沙箱、`./network` HTTP 代理和 `./sockets` 连接管理。后台逻辑不依赖 DOM;可见页面单独运行。播放器、歌单、账号和授权界面由澜音现有服务提供。
6
+
7
+ Node VM 内只运行本领域的 SDK 与打包后的插件,跨边界使用 JSON,删除原生桥引用并禁用字符串代码生成;worker 设内存、运行时限和消息额度。公网请求由用户按组授权,内网另行授权。此隔离不应宣称是针对所有 V8 漏洞的安全保证。
8
+
9
+ 歌词统一使用 SDK `CrLyric`(`format: 'crlyric'`、`version: 1`、毫秒时间轴)。`lyricConverters` 插件负责导入各种歌词和导出 LRC/增强 LRC/YRC;Core 不包含歌词解析器。音质顺序由 Provider 的 `qualities` 数组定义,从低到高。
6
10
 
7
11
  ```ts
8
12
  const core = await PluginCore.load(bytes, {