floating-live 0.17.0-alpha.0 → 0.17.0-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "floating-live",
3
- "version": "0.17.0-alpha.0",
3
+ "version": "0.17.0-alpha.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
Binary file
package/.yarnrc.yml DELETED
@@ -1,6 +0,0 @@
1
- approvedGitRepositories:
2
- - "**"
3
-
4
- enableScripts: true
5
-
6
- nodeLinker: node-modules
@@ -1,23 +0,0 @@
1
- 错误消息机制
2
-
3
- 嵌套的错误将放入cause中
4
-
5
- 错误属性解析:
6
-
7
- - id: 错误id;
8
- - source?: 错误来源,取决于调用的插件和命令等;
9
- - target?: 引发错误的对象id;
10
-
11
- 例如:
12
-
13
- `#plugin:register_id_missing@plugin/#unnamed 插件注册失败:缺少pluginName字段`
14
- `#plugin:register_id_duplicate@plugin/bilibili 插件注册失败:已存在相同id的插件`
15
- `#credentials:check_failed@platform/acfun 无法获取必要cookie信息`
16
-
17
- 指令
18
-
19
- 错误反馈机制:
20
-
21
- - 客户端发送命令导致错误时,服务端在返回前记录错误触发来源
22
-
23
- - 因用户交互导致错误时,需通过toast机制反馈
package/src/source.md DELETED
@@ -1,29 +0,0 @@
1
- ##### 插件来源(source 字段)
2
-
3
- - managerName
4
- - "plugin:{pluginName}" (插件调用)
5
- - "" (app.emit())
6
-
7
- ##### 客户端/服务端来源(client.name 字段)
8
-
9
- - "electron" (electron 客户端)
10
- - "web:{clinetId}" (网络客户端)
11
- - "server" (服务端)
12
- - "" (自身环境内)
13
-
14
- #### 机制
15
-
16
- - from server/node = source: "plugin:foo"
17
- - to server/node = source: "plugin:foo" client: ""
18
- - to client/browser = source: "plugin:foo" client: "server"
19
- - to client/electron = source: "plugin:foo" client: "server"
20
- - from client/browser = source: "plugin:foo"
21
- - to client/browser = source: "plugin:foo" client: ""
22
- - to server/node = source: "plugin:foo" client: "browser:10000001"
23
-
24
- ctx.callWithOptions(name, options, ...args)
25
- ctx.emitWithOptions(name, detail, options)
26
-
27
- ctx.on()
28
-
29
- client.emit()