@solazah/solazah-runtime 0.1.1 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solazah/solazah-runtime",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "main": "index.cjs",
5
5
  "module": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -48,12 +48,12 @@ export default class Plugin {
48
48
  */
49
49
  reloadPlugin: (pluginId: string) => Promise<any>;
50
50
  /**
51
- * 安装指定插件。先执行 npm install,再解析 manifest.json 写入 DB 并注册命令;
51
+ * 安装指定插件。先从市场下载插件包并校验后装到本地,再解析 manifest.json 写入 DB 并注册命令;
52
52
  * 若插件已安装则仅同步最新的 manifest 字段到 DB,并发布 PluginUpdatedEvent。
53
53
  *
54
- * @param name 插件名称(npm 包名)或本地开发目录的绝对路径。
54
+ * @param name 插件名称(包名)或本地开发目录的绝对路径。
55
55
  * @returns Promise<void>。
56
- * @throws 未直接抛错;npm install 失败或 manifest.json 缺失时记录错误并静默返回。
56
+ * @throws 下载 / 校验 / 安装失败或 manifest.json 缺失时抛出,由调用方提示用户。
57
57
  */
58
58
  installPlugin: (name: string) => Promise<any>;
59
59
  }
package/types/Sync.d.ts CHANGED
@@ -11,6 +11,8 @@ export interface SyncStatusDto {
11
11
  peers: number;
12
12
  /** 当前同步命名空间 = 账号 ID(消毒为路径安全),即 COS 分区目录名。用于核对多设备是否同一账号。 */
13
13
  namespace: string | null;
14
+ /** 是否为付费会员。跨设备同步是会员功能。 */
15
+ member: boolean;
14
16
  }
15
17
  export interface SyncCosConfig {
16
18
  bucket: string;