@shiqianjiang/ceru-plugin-cli 0.3.15 → 3.0.0

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.
Files changed (302) hide show
  1. package/README.md +26 -7
  2. package/assets/compatibility.json +18 -0
  3. package/dist/compatibility.d.ts +24 -0
  4. package/dist/compatibility.js +119 -0
  5. package/dist/component.d.ts +6 -0
  6. package/dist/component.js +60 -0
  7. package/dist/dev-music.d.ts +19 -0
  8. package/dist/dev-music.js +81 -0
  9. package/dist/dev-plugin-services.d.ts +10 -0
  10. package/dist/dev-plugin-services.js +67 -0
  11. package/dist/dev.d.ts +1 -9
  12. package/dist/dev.js +53 -713
  13. package/dist/frameworks.d.ts +5 -2
  14. package/dist/frameworks.js +43 -6
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.js +54 -23
  17. package/dist/init.js +3 -3
  18. package/dist/migrate.d.ts +3 -0
  19. package/dist/migrate.js +109 -0
  20. package/dist/project.d.ts +5 -2
  21. package/dist/project.js +131 -43
  22. package/dist/test-hooks.d.ts +1 -0
  23. package/dist/test-hooks.js +209 -0
  24. package/dist/test-services.d.ts +4 -0
  25. package/dist/test-services.js +54 -0
  26. package/dist/watch-vue-types.d.ts +17 -0
  27. package/dist/watch-vue-types.js +145 -0
  28. package/package.json +10 -6
  29. package/schemas/config.schema.json +954 -452
  30. package/templates/account-qrcode/js/.vscode/extensions.json +3 -0
  31. package/templates/account-qrcode/js/.vscode/launch.json +19 -0
  32. package/templates/account-qrcode/js/.vscode/settings.json +20 -0
  33. package/templates/account-qrcode/js/.vscode/tasks.json +43 -0
  34. package/templates/account-qrcode/js/README.md +15 -0
  35. package/templates/account-qrcode/js/_gitignore +6 -0
  36. package/templates/account-qrcode/js/ceru-plugin.code-workspace +8 -0
  37. package/templates/account-qrcode/js/ceru.plugin.json +62 -0
  38. package/templates/account-qrcode/js/package.json +24 -0
  39. package/templates/account-qrcode/js/src/Login.vue +25 -0
  40. package/templates/account-qrcode/js/src/index.js +25 -0
  41. package/templates/account-qrcode/js/src/login-html.js +23 -0
  42. package/templates/account-qrcode/js/tsconfig.json +17 -0
  43. package/templates/account-qrcode/ts/.vscode/extensions.json +3 -0
  44. package/templates/account-qrcode/ts/.vscode/launch.json +19 -0
  45. package/templates/account-qrcode/ts/.vscode/settings.json +20 -0
  46. package/templates/account-qrcode/ts/.vscode/tasks.json +43 -0
  47. package/templates/account-qrcode/ts/README.md +15 -0
  48. package/templates/account-qrcode/ts/_gitignore +6 -0
  49. package/templates/account-qrcode/ts/ceru-plugin.code-workspace +8 -0
  50. package/templates/account-qrcode/ts/ceru.plugin.json +62 -0
  51. package/templates/account-qrcode/ts/package.json +24 -0
  52. package/templates/account-qrcode/ts/src/Login.vue +25 -0
  53. package/templates/account-qrcode/ts/src/index.ts +25 -0
  54. package/templates/account-qrcode/ts/src/login-html.ts +23 -0
  55. package/templates/account-qrcode/ts/tsconfig.json +17 -0
  56. package/templates/connected-library/js/.vscode/launch.json +12 -29
  57. package/templates/connected-library/js/.vscode/tasks.json +2 -3
  58. package/templates/connected-library/js/README.md +26 -12
  59. package/templates/connected-library/js/ceru.plugin.json +122 -50
  60. package/templates/connected-library/js/package.json +5 -5
  61. package/templates/connected-library/js/src/index.js +46 -5
  62. package/templates/connected-library/js/src/settings.js +28 -0
  63. package/templates/connected-library/ts/.vscode/launch.json +12 -29
  64. package/templates/connected-library/ts/.vscode/tasks.json +2 -3
  65. package/templates/connected-library/ts/README.md +26 -12
  66. package/templates/connected-library/ts/ceru.plugin.json +122 -50
  67. package/templates/connected-library/ts/package.json +5 -5
  68. package/templates/connected-library/ts/src/index.ts +46 -5
  69. package/templates/connected-library/ts/src/settings.ts +28 -0
  70. package/templates/encrypted-source/README.md +86 -0
  71. package/templates/encrypted-source/js/.prettierrc.json +5 -0
  72. package/templates/encrypted-source/js/.vscode/ceru.code-snippets +55 -0
  73. package/templates/encrypted-source/js/.vscode/extensions.json +3 -0
  74. package/templates/encrypted-source/js/.vscode/launch.json +15 -0
  75. package/templates/encrypted-source/js/.vscode/settings.json +20 -0
  76. package/templates/encrypted-source/js/.vscode/tasks.json +40 -0
  77. package/templates/encrypted-source/js/DEMO.md +77 -0
  78. package/templates/encrypted-source/js/README.md +13 -0
  79. package/templates/encrypted-source/js/_gitignore +6 -0
  80. package/templates/encrypted-source/js/ceru-plugin.code-workspace +8 -0
  81. package/templates/encrypted-source/js/ceru.plugin.json +95 -0
  82. package/templates/encrypted-source/js/package.json +26 -0
  83. package/templates/encrypted-source/js/resources/xor-byte.wasm +0 -0
  84. package/templates/encrypted-source/js/resources/xor-byte.wat +5 -0
  85. package/templates/encrypted-source/js/src/demo.js +200 -0
  86. package/templates/encrypted-source/js/src/fixtures.js +118 -0
  87. package/templates/encrypted-source/js/src/index.js +4 -0
  88. package/templates/encrypted-source/js/tests/demo.test.mjs +357 -0
  89. package/templates/encrypted-source/js/tsconfig.json +16 -0
  90. package/templates/encrypted-source/ts/.prettierrc.json +5 -0
  91. package/templates/encrypted-source/ts/.vscode/ceru.code-snippets +55 -0
  92. package/templates/encrypted-source/ts/.vscode/extensions.json +3 -0
  93. package/templates/encrypted-source/ts/.vscode/launch.json +15 -0
  94. package/templates/encrypted-source/ts/.vscode/settings.json +20 -0
  95. package/templates/encrypted-source/ts/.vscode/tasks.json +40 -0
  96. package/templates/encrypted-source/ts/DEMO.md +77 -0
  97. package/templates/encrypted-source/ts/README.md +13 -0
  98. package/templates/encrypted-source/ts/_gitignore +6 -0
  99. package/templates/encrypted-source/ts/ceru-plugin.code-workspace +8 -0
  100. package/templates/encrypted-source/ts/ceru.plugin.json +95 -0
  101. package/templates/encrypted-source/ts/package.json +26 -0
  102. package/templates/encrypted-source/ts/resources/xor-byte.wasm +0 -0
  103. package/templates/encrypted-source/ts/resources/xor-byte.wat +5 -0
  104. package/templates/encrypted-source/ts/src/demo.ts +212 -0
  105. package/templates/encrypted-source/ts/src/fixtures.ts +125 -0
  106. package/templates/encrypted-source/ts/src/index.ts +4 -0
  107. package/templates/encrypted-source/ts/tests/demo.test.mjs +357 -0
  108. package/templates/encrypted-source/ts/tsconfig.json +17 -0
  109. package/templates/guest-adapter/js/.vscode/launch.json +12 -29
  110. package/templates/guest-adapter/js/.vscode/tasks.json +2 -3
  111. package/templates/guest-adapter/js/README.md +10 -10
  112. package/templates/guest-adapter/js/ceru.plugin.json +67 -62
  113. package/templates/guest-adapter/js/package.json +5 -5
  114. package/templates/guest-adapter/js/src/index.js +1 -1
  115. package/templates/guest-adapter/js/src/settings.js +8 -0
  116. package/templates/guest-adapter/ts/.vscode/launch.json +12 -29
  117. package/templates/guest-adapter/ts/.vscode/tasks.json +2 -3
  118. package/templates/guest-adapter/ts/README.md +10 -10
  119. package/templates/guest-adapter/ts/ceru.plugin.json +67 -62
  120. package/templates/guest-adapter/ts/package.json +5 -5
  121. package/templates/guest-adapter/ts/src/index.ts +1 -1
  122. package/templates/guest-adapter/ts/src/settings.ts +8 -0
  123. package/templates/importer/js/.vscode/launch.json +12 -29
  124. package/templates/importer/js/.vscode/tasks.json +2 -3
  125. package/templates/importer/js/README.md +10 -10
  126. package/templates/importer/js/ceru.plugin.json +23 -21
  127. package/templates/importer/js/package.json +5 -5
  128. package/templates/importer/ts/.vscode/launch.json +12 -29
  129. package/templates/importer/ts/.vscode/tasks.json +2 -3
  130. package/templates/importer/ts/README.md +10 -10
  131. package/templates/importer/ts/ceru.plugin.json +23 -21
  132. package/templates/importer/ts/package.json +5 -5
  133. package/templates/page-extension/js/.vscode/extensions.json +3 -0
  134. package/templates/page-extension/js/.vscode/launch.json +19 -0
  135. package/templates/page-extension/js/.vscode/settings.json +20 -0
  136. package/templates/page-extension/js/.vscode/tasks.json +43 -0
  137. package/templates/page-extension/js/README.md +9 -0
  138. package/templates/page-extension/js/_gitignore +6 -0
  139. package/templates/page-extension/js/ceru-plugin.code-workspace +8 -0
  140. package/templates/page-extension/js/ceru.plugin.json +94 -0
  141. package/templates/page-extension/js/package.json +24 -0
  142. package/templates/page-extension/js/src/Open.vue +6 -0
  143. package/templates/page-extension/js/src/Search.vue +62 -0
  144. package/templates/page-extension/js/src/index.js +54 -0
  145. package/templates/page-extension/js/tsconfig.json +17 -0
  146. package/templates/page-extension/ts/.vscode/extensions.json +3 -0
  147. package/templates/page-extension/ts/.vscode/launch.json +19 -0
  148. package/templates/page-extension/ts/.vscode/settings.json +20 -0
  149. package/templates/page-extension/ts/.vscode/tasks.json +43 -0
  150. package/templates/page-extension/ts/README.md +9 -0
  151. package/templates/page-extension/ts/_gitignore +6 -0
  152. package/templates/page-extension/ts/ceru-plugin.code-workspace +8 -0
  153. package/templates/page-extension/ts/ceru.plugin.json +94 -0
  154. package/templates/page-extension/ts/package.json +24 -0
  155. package/templates/page-extension/ts/src/Open.vue +6 -0
  156. package/templates/page-extension/ts/src/Search.vue +62 -0
  157. package/templates/page-extension/ts/src/index.ts +54 -0
  158. package/templates/page-extension/ts/tsconfig.json +17 -0
  159. package/templates/playback-hook/js/.prettierrc.json +5 -0
  160. package/templates/playback-hook/js/.vscode/extensions.json +3 -0
  161. package/templates/playback-hook/js/.vscode/launch.json +19 -0
  162. package/templates/playback-hook/js/.vscode/settings.json +20 -0
  163. package/templates/playback-hook/js/.vscode/tasks.json +50 -0
  164. package/templates/playback-hook/js/README.md +24 -0
  165. package/templates/playback-hook/js/_gitignore +6 -0
  166. package/templates/playback-hook/js/ceru-plugin.code-workspace +8 -0
  167. package/templates/playback-hook/js/ceru.plugin.json +36 -0
  168. package/templates/playback-hook/js/package.json +23 -0
  169. package/templates/playback-hook/js/src/index.js +25 -0
  170. package/templates/playback-hook/js/tests/hooks.json +316 -0
  171. package/templates/playback-hook/js/tsconfig.json +16 -0
  172. package/templates/playback-hook/ts/.prettierrc.json +5 -0
  173. package/templates/playback-hook/ts/.vscode/extensions.json +3 -0
  174. package/templates/playback-hook/ts/.vscode/launch.json +19 -0
  175. package/templates/playback-hook/ts/.vscode/settings.json +20 -0
  176. package/templates/playback-hook/ts/.vscode/tasks.json +50 -0
  177. package/templates/playback-hook/ts/README.md +24 -0
  178. package/templates/playback-hook/ts/_gitignore +6 -0
  179. package/templates/playback-hook/ts/ceru-plugin.code-workspace +8 -0
  180. package/templates/playback-hook/ts/ceru.plugin.json +36 -0
  181. package/templates/playback-hook/ts/package.json +23 -0
  182. package/templates/playback-hook/ts/src/index.ts +25 -0
  183. package/templates/playback-hook/ts/tests/hooks.json +316 -0
  184. package/templates/playback-hook/ts/tsconfig.json +16 -0
  185. package/templates/player-skin/js/.vscode/extensions.json +3 -0
  186. package/templates/player-skin/js/.vscode/launch.json +19 -0
  187. package/templates/player-skin/js/.vscode/settings.json +20 -0
  188. package/templates/player-skin/js/.vscode/tasks.json +43 -0
  189. package/templates/player-skin/js/README.md +11 -0
  190. package/templates/player-skin/js/_gitignore +6 -0
  191. package/templates/player-skin/js/assets/studio-preview.svg +15 -0
  192. package/templates/player-skin/js/ceru-plugin.code-workspace +8 -0
  193. package/templates/player-skin/js/ceru.plugin.json +77 -0
  194. package/templates/player-skin/js/package.json +24 -0
  195. package/templates/player-skin/js/src/Artwork.vue +9 -0
  196. package/templates/player-skin/js/src/Background.vue +15 -0
  197. package/templates/player-skin/js/src/BuiltinLyrics.vue +15 -0
  198. package/templates/player-skin/js/src/Lyrics.vue +28 -0
  199. package/templates/player-skin/js/tsconfig.json +17 -0
  200. package/templates/player-skin/ts/.vscode/extensions.json +3 -0
  201. package/templates/player-skin/ts/.vscode/launch.json +19 -0
  202. package/templates/player-skin/ts/.vscode/settings.json +20 -0
  203. package/templates/player-skin/ts/.vscode/tasks.json +43 -0
  204. package/templates/player-skin/ts/README.md +11 -0
  205. package/templates/player-skin/ts/_gitignore +6 -0
  206. package/templates/player-skin/ts/assets/studio-preview.svg +15 -0
  207. package/templates/player-skin/ts/ceru-plugin.code-workspace +8 -0
  208. package/templates/player-skin/ts/ceru.plugin.json +77 -0
  209. package/templates/player-skin/ts/package.json +24 -0
  210. package/templates/player-skin/ts/src/Artwork.vue +9 -0
  211. package/templates/player-skin/ts/src/Background.vue +15 -0
  212. package/templates/player-skin/ts/src/BuiltinLyrics.vue +15 -0
  213. package/templates/player-skin/ts/src/Lyrics.vue +28 -0
  214. package/templates/player-skin/ts/tsconfig.json +17 -0
  215. package/templates/react/js/.vscode/launch.json +12 -29
  216. package/templates/react/js/.vscode/tasks.json +2 -3
  217. package/templates/react/js/README.md +10 -10
  218. package/templates/react/js/ceru.plugin.json +27 -22
  219. package/templates/react/js/package.json +5 -5
  220. package/templates/react/js/src/index.js +1 -1
  221. package/templates/react/ts/.vscode/launch.json +12 -29
  222. package/templates/react/ts/.vscode/tasks.json +2 -3
  223. package/templates/react/ts/README.md +10 -10
  224. package/templates/react/ts/ceru.plugin.json +27 -22
  225. package/templates/react/ts/package.json +5 -5
  226. package/templates/react/ts/src/index.ts +1 -1
  227. package/templates/snapshot.json +152 -6
  228. package/templates/source/js/.vscode/launch.json +12 -29
  229. package/templates/source/js/.vscode/tasks.json +2 -3
  230. package/templates/source/js/README.md +12 -10
  231. package/templates/source/js/ceru.plugin.json +44 -26
  232. package/templates/source/js/package.json +5 -5
  233. package/templates/source/js/src/index.js +10 -8
  234. package/templates/source/ts/.vscode/launch.json +12 -29
  235. package/templates/source/ts/.vscode/tasks.json +2 -3
  236. package/templates/source/ts/README.md +12 -10
  237. package/templates/source/ts/ceru.plugin.json +44 -26
  238. package/templates/source/ts/package.json +5 -5
  239. package/templates/source/ts/src/index.ts +10 -8
  240. package/templates/vue/js/.vscode/launch.json +12 -29
  241. package/templates/vue/js/.vscode/tasks.json +2 -3
  242. package/templates/vue/js/README.md +10 -10
  243. package/templates/vue/js/ceru.plugin.json +27 -22
  244. package/templates/vue/js/package.json +5 -5
  245. package/templates/vue/js/src/index.js +1 -1
  246. package/templates/vue/ts/.vscode/launch.json +12 -29
  247. package/templates/vue/ts/.vscode/tasks.json +2 -3
  248. package/templates/vue/ts/README.md +10 -10
  249. package/templates/vue/ts/ceru.plugin.json +27 -22
  250. package/templates/vue/ts/package.json +5 -5
  251. package/templates/vue/ts/src/index.ts +1 -1
  252. package/templates/vue-tsx/js/.vscode/launch.json +12 -29
  253. package/templates/vue-tsx/js/.vscode/tasks.json +2 -3
  254. package/templates/vue-tsx/js/README.md +10 -10
  255. package/templates/vue-tsx/js/ceru.plugin.json +27 -22
  256. package/templates/vue-tsx/js/package.json +5 -5
  257. package/templates/vue-tsx/js/src/index.js +1 -1
  258. package/templates/vue-tsx/ts/.vscode/launch.json +12 -29
  259. package/templates/vue-tsx/ts/.vscode/tasks.json +2 -3
  260. package/templates/vue-tsx/ts/README.md +10 -10
  261. package/templates/vue-tsx/ts/ceru.plugin.json +27 -22
  262. package/templates/vue-tsx/ts/package.json +5 -5
  263. package/templates/vue-tsx/ts/src/index.ts +1 -1
  264. package/templates/web-dist/js/.vscode/launch.json +12 -29
  265. package/templates/web-dist/js/.vscode/tasks.json +2 -3
  266. package/templates/web-dist/js/README.md +10 -10
  267. package/templates/web-dist/js/ceru.plugin.json +27 -22
  268. package/templates/web-dist/js/package.json +5 -5
  269. package/templates/web-dist/js/src/index.js +1 -1
  270. package/templates/web-dist/ts/.vscode/launch.json +12 -29
  271. package/templates/web-dist/ts/.vscode/tasks.json +2 -3
  272. package/templates/web-dist/ts/README.md +10 -10
  273. package/templates/web-dist/ts/ceru.plugin.json +27 -22
  274. package/templates/web-dist/ts/package.json +5 -5
  275. package/templates/web-dist/ts/src/index.ts +1 -1
  276. package/templates/web-surface/js/.vscode/launch.json +12 -29
  277. package/templates/web-surface/js/.vscode/tasks.json +2 -3
  278. package/templates/web-surface/js/README.md +10 -10
  279. package/templates/web-surface/js/ceru.plugin.json +35 -35
  280. package/templates/web-surface/js/package.json +5 -5
  281. package/templates/web-surface/js/src/index.js +1 -1
  282. package/templates/web-surface/ts/.vscode/launch.json +12 -29
  283. package/templates/web-surface/ts/.vscode/tasks.json +2 -3
  284. package/templates/web-surface/ts/README.md +10 -10
  285. package/templates/web-surface/ts/ceru.plugin.json +35 -35
  286. package/templates/web-surface/ts/package.json +5 -5
  287. package/templates/web-surface/ts/src/index.ts +1 -1
  288. package/assets/core-contracts.js +0 -1
  289. package/assets/electron-app/main.cjs +0 -1
  290. package/assets/electron-app/package.json +0 -8
  291. package/assets/electron.cjs +0 -42
  292. package/assets/index.html +0 -94
  293. package/assets/native-view.js +0 -197
  294. package/assets/playground.js +0 -883
  295. package/assets/sandbox.js +0 -67
  296. package/assets/style.css +0 -337
  297. package/dist/socket-broker.d.ts +0 -23
  298. package/dist/socket-broker.js +0 -229
  299. package/templates/connected-library/js/ui/settings.json +0 -24
  300. package/templates/connected-library/ts/ui/settings.json +0 -24
  301. package/templates/guest-adapter/js/ui/settings.json +0 -14
  302. package/templates/guest-adapter/ts/ui/settings.json +0 -14
@@ -11,7 +11,7 @@
11
11
  "type": "object",
12
12
  "properties": {
13
13
  "manifestVersion": {
14
- "const": 2
14
+ "const": 3
15
15
  },
16
16
  "id": {
17
17
  "type": "string",
@@ -59,18 +59,11 @@
59
59
  "type": "object",
60
60
  "properties": {
61
61
  "hostApi": {
62
- "type": "string",
63
- "minLength": 1,
64
- "maxLength": 4096
62
+ "const": "^3.0.0"
65
63
  },
66
64
  "logicRuntime": {
67
65
  "const": "ceru-js@1"
68
66
  },
69
- "uiSchema": {
70
- "type": "string",
71
- "minLength": 1,
72
- "maxLength": 4096
73
- },
74
67
  "libraries": {
75
68
  "type": "object",
76
69
  "properties": {
@@ -100,15 +93,16 @@
100
93
  ],
101
94
  "additionalProperties": false
102
95
  },
103
- "modules": {
96
+ "entry": {
104
97
  "type": "object",
105
98
  "properties": {
106
99
  "logic": {
107
100
  "type": "object",
108
101
  "properties": {
109
- "entry": {
102
+ "module": {
110
103
  "type": "string",
111
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
104
+ "minLength": 1,
105
+ "maxLength": 4096
112
106
  },
113
107
  "activation": {
114
108
  "type": "array",
@@ -122,16 +116,17 @@
122
116
  }
123
117
  },
124
118
  "required": [
125
- "entry"
119
+ "module"
126
120
  ],
127
121
  "additionalProperties": false
128
122
  },
129
123
  "share": {
130
124
  "type": "object",
131
125
  "properties": {
132
- "entry": {
126
+ "module": {
133
127
  "type": "string",
134
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
128
+ "minLength": 1,
129
+ "maxLength": 4096
135
130
  },
136
131
  "configKeys": {
137
132
  "type": "array",
@@ -159,11 +154,11 @@
159
154
  }
160
155
  },
161
156
  "required": [
162
- "entry"
157
+ "module"
163
158
  ],
164
159
  "additionalProperties": false
165
160
  },
166
- "surfaces": {
161
+ "views": {
167
162
  "type": "array",
168
163
  "maxItems": 64,
169
164
  "items": {
@@ -175,14 +170,15 @@
175
170
  },
176
171
  "kind": {
177
172
  "enum": [
178
- "schema",
173
+ "component",
179
174
  "web",
180
175
  "native"
181
176
  ]
182
177
  },
183
- "entry": {
178
+ "module": {
184
179
  "type": "string",
185
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
180
+ "minLength": 1,
181
+ "maxLength": 4096
186
182
  },
187
183
  "title": {
188
184
  "type": "string",
@@ -236,7 +232,73 @@
236
232
  "required": [
237
233
  "id",
238
234
  "kind",
239
- "entry"
235
+ "module"
236
+ ],
237
+ "additionalProperties": false
238
+ }
239
+ },
240
+ "server": {
241
+ "type": "object",
242
+ "properties": {
243
+ "module": {
244
+ "type": "string",
245
+ "minLength": 1,
246
+ "maxLength": 4096
247
+ },
248
+ "runtime": {
249
+ "enum": [
250
+ "sandbox",
251
+ "node"
252
+ ]
253
+ },
254
+ "port": {
255
+ "type": "integer",
256
+ "minimum": 0,
257
+ "maximum": 65535
258
+ },
259
+ "lan": {
260
+ "type": "boolean"
261
+ }
262
+ },
263
+ "required": [
264
+ "module",
265
+ "runtime"
266
+ ],
267
+ "additionalProperties": false
268
+ },
269
+ "native": {
270
+ "type": "array",
271
+ "maxItems": 128,
272
+ "items": {
273
+ "type": "object",
274
+ "properties": {
275
+ "name": {
276
+ "type": "string",
277
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*\\.node$",
278
+ "maxLength": 128
279
+ },
280
+ "platforms": {
281
+ "type": "object",
282
+ "minProperties": 1,
283
+ "propertyNames": {
284
+ "enum": [
285
+ "win32-x64",
286
+ "win32-arm64",
287
+ "darwin-x64",
288
+ "darwin-arm64",
289
+ "linux-x64",
290
+ "linux-arm64"
291
+ ]
292
+ },
293
+ "additionalProperties": {
294
+ "type": "string",
295
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
296
+ }
297
+ }
298
+ },
299
+ "required": [
300
+ "name",
301
+ "platforms"
240
302
  ],
241
303
  "additionalProperties": false
242
304
  }
@@ -245,7 +307,7 @@
245
307
  "required": [],
246
308
  "additionalProperties": false
247
309
  },
248
- "contributes": {
310
+ "provides": {
249
311
  "type": "object",
250
312
  "properties": {
251
313
  "lyricConverters": {
@@ -288,7 +350,7 @@
288
350
  "additionalProperties": false
289
351
  }
290
352
  },
291
- "menus": {
353
+ "importers": {
292
354
  "type": "array",
293
355
  "maxItems": 64,
294
356
  "items": {
@@ -303,22 +365,130 @@
303
365
  "minLength": 1,
304
366
  "maxLength": 4096
305
367
  },
306
- "commandId": {
368
+ "description": {
369
+ "type": "string",
370
+ "minLength": 1,
371
+ "maxLength": 4096
372
+ },
373
+ "placeholder": {
374
+ "type": "string",
375
+ "minLength": 1,
376
+ "maxLength": 4096
377
+ },
378
+ "providerId": {
307
379
  "type": "string",
308
380
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
309
381
  },
310
- "description": {
382
+ "examples": {
383
+ "type": "array",
384
+ "maxItems": 16,
385
+ "items": {
386
+ "type": "object",
387
+ "properties": {
388
+ "label": {
389
+ "type": "string",
390
+ "minLength": 1,
391
+ "maxLength": 4096
392
+ },
393
+ "value": {
394
+ "type": "string",
395
+ "minLength": 1,
396
+ "maxLength": 4096
397
+ }
398
+ },
399
+ "required": [
400
+ "label",
401
+ "value"
402
+ ],
403
+ "additionalProperties": false
404
+ }
405
+ },
406
+ "instructions": {
407
+ "type": "array",
408
+ "items": {
409
+ "type": "string",
410
+ "minLength": 1,
411
+ "maxLength": 4096
412
+ },
413
+ "maxItems": 128,
414
+ "uniqueItems": true
415
+ }
416
+ },
417
+ "required": [
418
+ "id",
419
+ "title"
420
+ ],
421
+ "additionalProperties": false
422
+ }
423
+ },
424
+ "providers": {
425
+ "type": "array",
426
+ "maxItems": 64,
427
+ "items": {
428
+ "type": "object",
429
+ "properties": {
430
+ "id": {
431
+ "type": "string",
432
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
433
+ },
434
+ "name": {
311
435
  "type": "string",
312
436
  "minLength": 1,
313
437
  "maxLength": 4096
314
438
  },
315
- "slot": {
439
+ "protocols": {
440
+ "type": "array",
441
+ "items": {
442
+ "type": "string",
443
+ "minLength": 1,
444
+ "maxLength": 4096
445
+ },
446
+ "maxItems": 128,
447
+ "uniqueItems": true
448
+ },
449
+ "qualities": {
450
+ "type": "array",
451
+ "items": {
452
+ "type": "string",
453
+ "minLength": 1,
454
+ "maxLength": 4096
455
+ },
456
+ "maxItems": 128,
457
+ "uniqueItems": true
458
+ },
459
+ "when": {
460
+ "type": "object",
461
+ "properties": {
462
+ "loggedIn": {
463
+ "type": "boolean"
464
+ },
465
+ "selectedSource": {
466
+ "type": "string",
467
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
468
+ },
469
+ "predicate": {
470
+ "type": "string",
471
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
472
+ },
473
+ "combine": {
474
+ "enum": [
475
+ "all",
476
+ "any"
477
+ ]
478
+ }
479
+ },
480
+ "required": [],
481
+ "additionalProperties": false
482
+ },
483
+ "beforeSelect": {
484
+ "type": "string",
485
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
486
+ },
487
+ "connectionMode": {
316
488
  "enum": [
317
- "playlist.import",
318
- "playlist.actions",
319
- "track.actions",
320
- "player.actions",
321
- "search.tools"
489
+ "none",
490
+ "single",
491
+ "multiple"
322
492
  ]
323
493
  },
324
494
  "icon": {
@@ -331,8 +501,34 @@
331
501
  },
332
502
  "name": {
333
503
  "type": "string",
334
- "minLength": 1,
335
- "maxLength": 4096
504
+ "examples": [
505
+ "platform.tx",
506
+ "platform.kg",
507
+ "platform.kw",
508
+ "platform.wy",
509
+ "platform.mg",
510
+ "platform.local",
511
+ "platform.all",
512
+ "search",
513
+ "music-note",
514
+ "library",
515
+ "cloud",
516
+ "server",
517
+ "import",
518
+ "chart",
519
+ "settings",
520
+ "play",
521
+ "pause",
522
+ "download",
523
+ "share",
524
+ "account",
525
+ "heart",
526
+ "refresh",
527
+ "close",
528
+ "add",
529
+ "info"
530
+ ],
531
+ "description": "Host built-in icon name; no icon file is embedded into the plugin."
336
532
  }
337
533
  },
338
534
  "required": [
@@ -359,37 +555,17 @@
359
555
  "additionalProperties": false
360
556
  }
361
557
  ]
362
- },
363
- "when": {
364
- "type": "object",
365
- "properties": {
366
- "kinds": {
367
- "type": "array",
368
- "items": {
369
- "enum": [
370
- "track",
371
- "playlist"
372
- ]
373
- }
374
- },
375
- "loggedIn": {
376
- "type": "boolean"
377
- }
378
- },
379
- "required": [],
380
- "additionalProperties": false
381
558
  }
382
559
  },
383
560
  "required": [
384
561
  "id",
385
- "slot",
386
- "title",
387
- "commandId"
562
+ "name",
563
+ "protocols"
388
564
  ],
389
565
  "additionalProperties": false
390
566
  }
391
567
  },
392
- "accountItems": {
568
+ "guestAdapters": {
393
569
  "type": "array",
394
570
  "maxItems": 16,
395
571
  "items": {
@@ -399,69 +575,87 @@
399
575
  "type": "string",
400
576
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
401
577
  },
402
- "title": {
578
+ "format": {
403
579
  "type": "string",
404
580
  "minLength": 1,
405
581
  "maxLength": 4096
406
582
  },
407
- "view": {
408
- "type": "string",
409
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
410
- },
411
- "action": {
412
- "type": "string",
413
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
414
- },
415
- "logoutAction": {
416
- "type": "string",
417
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
418
- }
419
- },
420
- "required": [
421
- "id",
422
- "title",
423
- "view",
424
- "action"
425
- ],
426
- "additionalProperties": false
427
- }
428
- },
429
- "playlistSections": {
430
- "type": "array",
431
- "maxItems": 32,
432
- "items": {
433
- "type": "object",
434
- "properties": {
435
- "id": {
583
+ "compatibilityProfile": {
436
584
  "type": "string",
437
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
585
+ "minLength": 1,
586
+ "maxLength": 4096
438
587
  },
439
588
  "title": {
440
589
  "type": "string",
441
590
  "minLength": 1,
442
591
  "maxLength": 4096
443
592
  },
444
- "view": {
445
- "type": "string",
446
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
447
- },
448
- "order": {
449
- "type": "integer",
450
- "minimum": -1000,
451
- "maximum": 1000
593
+ "extensions": {
594
+ "type": "array",
595
+ "items": {
596
+ "type": "string",
597
+ "minLength": 1,
598
+ "maxLength": 4096
599
+ },
600
+ "maxItems": 128,
601
+ "uniqueItems": true
602
+ },
603
+ "badge": {
604
+ "type": "object",
605
+ "properties": {
606
+ "label": {
607
+ "type": "string",
608
+ "minLength": 1,
609
+ "maxLength": 24
610
+ },
611
+ "backgroundColor": {
612
+ "type": "string",
613
+ "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
614
+ },
615
+ "textColor": {
616
+ "type": "string",
617
+ "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
618
+ }
619
+ },
620
+ "required": [
621
+ "label",
622
+ "backgroundColor",
623
+ "textColor"
624
+ ],
625
+ "additionalProperties": false
626
+ },
627
+ "bootstrap": {
628
+ "type": "string",
629
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
630
+ },
631
+ "runtime": {
632
+ "const": "ceru-js@1"
633
+ },
634
+ "projectableProtocols": {
635
+ "type": "array",
636
+ "items": {
637
+ "type": "string",
638
+ "minLength": 1,
639
+ "maxLength": 4096
640
+ },
641
+ "maxItems": 128,
642
+ "uniqueItems": true
452
643
  }
453
644
  },
454
645
  "required": [
455
646
  "id",
456
- "title",
457
- "view"
647
+ "format",
648
+ "compatibilityProfile",
649
+ "bootstrap",
650
+ "runtime",
651
+ "projectableProtocols"
458
652
  ],
459
653
  "additionalProperties": false
460
654
  }
461
655
  },
462
- "homeSections": {
656
+ "actions": {
463
657
  "type": "array",
464
- "maxItems": 32,
658
+ "maxItems": 128,
465
659
  "items": {
466
660
  "type": "object",
467
661
  "properties": {
@@ -474,12 +668,76 @@
474
668
  "minLength": 1,
475
669
  "maxLength": 4096
476
670
  },
477
- "kind": {
478
- "enum": [
479
- "playlists",
480
- "charts",
481
- "custom"
482
- ]
671
+ "description": {
672
+ "type": "string",
673
+ "minLength": 1,
674
+ "maxLength": 4096
675
+ },
676
+ "view": {
677
+ "type": "string",
678
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
679
+ }
680
+ },
681
+ "required": [
682
+ "id",
683
+ "title"
684
+ ],
685
+ "additionalProperties": false
686
+ }
687
+ },
688
+ "services": {
689
+ "type": "array",
690
+ "maxItems": 128,
691
+ "items": {
692
+ "type": "object",
693
+ "properties": {
694
+ "id": {
695
+ "type": "string",
696
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
697
+ },
698
+ "version": {
699
+ "type": "string",
700
+ "minLength": 1,
701
+ "maxLength": 4096
702
+ },
703
+ "methods": {
704
+ "type": "array",
705
+ "items": {
706
+ "type": "string",
707
+ "minLength": 1,
708
+ "maxLength": 4096
709
+ },
710
+ "maxItems": 128,
711
+ "uniqueItems": true
712
+ },
713
+ "description": {
714
+ "type": "string",
715
+ "minLength": 1,
716
+ "maxLength": 4096
717
+ }
718
+ },
719
+ "required": [
720
+ "id",
721
+ "version",
722
+ "methods"
723
+ ],
724
+ "additionalProperties": false
725
+ }
726
+ },
727
+ "accounts": {
728
+ "type": "array",
729
+ "maxItems": 128,
730
+ "items": {
731
+ "type": "object",
732
+ "properties": {
733
+ "id": {
734
+ "type": "string",
735
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
736
+ },
737
+ "title": {
738
+ "type": "string",
739
+ "minLength": 1,
740
+ "maxLength": 4096
483
741
  },
484
742
  "icon": {
485
743
  "oneOf": [
@@ -491,8 +749,34 @@
491
749
  },
492
750
  "name": {
493
751
  "type": "string",
494
- "minLength": 1,
495
- "maxLength": 4096
752
+ "examples": [
753
+ "platform.tx",
754
+ "platform.kg",
755
+ "platform.kw",
756
+ "platform.wy",
757
+ "platform.mg",
758
+ "platform.local",
759
+ "platform.all",
760
+ "search",
761
+ "music-note",
762
+ "library",
763
+ "cloud",
764
+ "server",
765
+ "import",
766
+ "chart",
767
+ "settings",
768
+ "play",
769
+ "pause",
770
+ "download",
771
+ "share",
772
+ "account",
773
+ "heart",
774
+ "refresh",
775
+ "close",
776
+ "add",
777
+ "info"
778
+ ],
779
+ "description": "Host built-in icon name; no icon file is embedded into the plugin."
496
780
  }
497
781
  },
498
782
  "required": [
@@ -520,11 +804,38 @@
520
804
  }
521
805
  ]
522
806
  },
523
- "view": {
524
- "type": "string",
525
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
807
+ "multiple": {
808
+ "type": "boolean"
526
809
  },
527
- "providerIds": {
810
+ "loginMethods": {
811
+ "type": "array",
812
+ "maxItems": 128,
813
+ "items": {
814
+ "enum": [
815
+ "qrcode",
816
+ "browser",
817
+ "form",
818
+ "oauth"
819
+ ]
820
+ },
821
+ "uniqueItems": true,
822
+ "minItems": 1
823
+ },
824
+ "capabilities": {
825
+ "type": "array",
826
+ "maxItems": 128,
827
+ "items": {
828
+ "enum": [
829
+ "profile",
830
+ "likes",
831
+ "playlists",
832
+ "history",
833
+ "recommend"
834
+ ]
835
+ },
836
+ "uniqueItems": true
837
+ },
838
+ "providers": {
528
839
  "type": "array",
529
840
  "items": {
530
841
  "type": "string",
@@ -534,23 +845,29 @@
534
845
  "maxItems": 128,
535
846
  "uniqueItems": true
536
847
  },
537
- "order": {
538
- "type": "integer",
539
- "minimum": -1000,
540
- "maximum": 1000
848
+ "view": {
849
+ "type": "string",
850
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
541
851
  }
542
852
  },
543
853
  "required": [
544
854
  "id",
545
855
  "title",
546
- "kind"
856
+ "loginMethods"
547
857
  ],
548
858
  "additionalProperties": false
549
859
  }
550
- },
551
- "uiExtensions": {
860
+ }
861
+ },
862
+ "required": [],
863
+ "additionalProperties": false
864
+ },
865
+ "ui": {
866
+ "type": "object",
867
+ "properties": {
868
+ "pages": {
552
869
  "type": "array",
553
- "maxItems": 64,
870
+ "maxItems": 128,
554
871
  "items": {
555
872
  "type": "object",
556
873
  "properties": {
@@ -558,112 +875,258 @@
558
875
  "type": "string",
559
876
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
560
877
  },
561
- "slot": {
562
- "enum": [
563
- "home.header",
564
- "home.content.before",
565
- "home.content.after",
566
- "search.source-selector.after",
567
- "playlist.header.actions",
568
- "playlist.item.actions",
569
- "player.actions",
570
- "settings.sections"
571
- ]
878
+ "title": {
879
+ "type": "string",
880
+ "minLength": 1,
881
+ "maxLength": 4096
572
882
  },
573
- "mode": {
883
+ "mount": {
574
884
  "enum": [
575
- "append",
576
- "prepend",
577
- "wrap",
578
- "replace"
885
+ "sidebar",
886
+ "settings",
887
+ "home-tab",
888
+ "playlist-section"
579
889
  ]
580
890
  },
581
891
  "view": {
582
892
  "type": "string",
583
893
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
584
894
  },
585
- "order": {
586
- "type": "integer",
587
- "minimum": -1000,
588
- "maximum": 1000
589
- },
590
- "when": {
591
- "type": "object",
592
- "properties": {
593
- "loggedIn": {
594
- "type": "boolean"
595
- },
596
- "route": {
597
- "type": "string",
598
- "minLength": 1,
599
- "maxLength": 4096
600
- }
601
- },
602
- "required": [],
603
- "additionalProperties": false
604
- }
605
- },
606
- "required": [
607
- "id",
608
- "slot",
609
- "mode",
610
- "view"
611
- ],
612
- "additionalProperties": false
613
- }
614
- },
615
- "styles": {
616
- "type": "array",
617
- "maxItems": 64,
618
- "items": {
619
- "type": "object",
620
- "properties": {
621
- "id": {
622
- "type": "string",
623
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
624
- },
625
- "resource": {
626
- "type": "string",
627
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
895
+ "icon": {
896
+ "oneOf": [
897
+ {
898
+ "type": "object",
899
+ "properties": {
900
+ "kind": {
901
+ "const": "host"
902
+ },
903
+ "name": {
904
+ "type": "string",
905
+ "examples": [
906
+ "platform.tx",
907
+ "platform.kg",
908
+ "platform.kw",
909
+ "platform.wy",
910
+ "platform.mg",
911
+ "platform.local",
912
+ "platform.all",
913
+ "search",
914
+ "music-note",
915
+ "library",
916
+ "cloud",
917
+ "server",
918
+ "import",
919
+ "chart",
920
+ "settings",
921
+ "play",
922
+ "pause",
923
+ "download",
924
+ "share",
925
+ "account",
926
+ "heart",
927
+ "refresh",
928
+ "close",
929
+ "add",
930
+ "info"
931
+ ],
932
+ "description": "Host built-in icon name; no icon file is embedded into the plugin."
933
+ }
934
+ },
935
+ "required": [
936
+ "kind",
937
+ "name"
938
+ ],
939
+ "additionalProperties": false
940
+ },
941
+ {
942
+ "type": "object",
943
+ "properties": {
944
+ "kind": {
945
+ "const": "asset"
946
+ },
947
+ "resource": {
948
+ "type": "string",
949
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
950
+ }
951
+ },
952
+ "required": [
953
+ "kind",
954
+ "resource"
955
+ ],
956
+ "additionalProperties": false
957
+ }
958
+ ]
628
959
  },
629
- "scope": {
960
+ "group": {
630
961
  "enum": [
631
- "surface",
632
- "slot",
633
- "application"
962
+ "discover",
963
+ "library",
964
+ "tools"
634
965
  ]
635
966
  },
636
- "slots": {
967
+ "order": {
968
+ "type": "integer"
969
+ },
970
+ "when": {
971
+ "type": "object",
972
+ "properties": {
973
+ "loggedIn": {
974
+ "type": "boolean"
975
+ },
976
+ "selectedSource": {
977
+ "type": "string",
978
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
979
+ },
980
+ "predicate": {
981
+ "type": "string",
982
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
983
+ },
984
+ "combine": {
985
+ "enum": [
986
+ "all",
987
+ "any"
988
+ ]
989
+ }
990
+ },
991
+ "required": [],
992
+ "additionalProperties": false
993
+ }
994
+ },
995
+ "required": [
996
+ "id",
997
+ "title",
998
+ "mount",
999
+ "view"
1000
+ ],
1001
+ "additionalProperties": false
1002
+ }
1003
+ },
1004
+ "regions": {
1005
+ "type": "array",
1006
+ "maxItems": 128,
1007
+ "items": {
1008
+ "type": "object",
1009
+ "properties": {
1010
+ "region": {
1011
+ "type": "string",
1012
+ "minLength": 1,
1013
+ "maxLength": 4096
1014
+ },
1015
+ "view": {
1016
+ "type": "string",
1017
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
1018
+ }
1019
+ },
1020
+ "required": [
1021
+ "region",
1022
+ "view"
1023
+ ],
1024
+ "additionalProperties": false
1025
+ }
1026
+ },
1027
+ "skins": {
1028
+ "type": "array",
1029
+ "maxItems": 128,
1030
+ "items": {
1031
+ "type": "object",
1032
+ "properties": {
1033
+ "id": {
1034
+ "type": "string",
1035
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
1036
+ },
1037
+ "title": {
1038
+ "type": "string",
1039
+ "minLength": 1,
1040
+ "maxLength": 4096
1041
+ },
1042
+ "preview": {
1043
+ "oneOf": [
1044
+ {
1045
+ "type": "object",
1046
+ "properties": {
1047
+ "kind": {
1048
+ "const": "host"
1049
+ },
1050
+ "name": {
1051
+ "type": "string",
1052
+ "examples": [
1053
+ "platform.tx",
1054
+ "platform.kg",
1055
+ "platform.kw",
1056
+ "platform.wy",
1057
+ "platform.mg",
1058
+ "platform.local",
1059
+ "platform.all",
1060
+ "search",
1061
+ "music-note",
1062
+ "library",
1063
+ "cloud",
1064
+ "server",
1065
+ "import",
1066
+ "chart",
1067
+ "settings",
1068
+ "play",
1069
+ "pause",
1070
+ "download",
1071
+ "share",
1072
+ "account",
1073
+ "heart",
1074
+ "refresh",
1075
+ "close",
1076
+ "add",
1077
+ "info"
1078
+ ],
1079
+ "description": "Host built-in icon name; no icon file is embedded into the plugin."
1080
+ }
1081
+ },
1082
+ "required": [
1083
+ "kind",
1084
+ "name"
1085
+ ],
1086
+ "additionalProperties": false
1087
+ },
1088
+ {
1089
+ "type": "object",
1090
+ "properties": {
1091
+ "kind": {
1092
+ "const": "asset"
1093
+ },
1094
+ "resource": {
1095
+ "type": "string",
1096
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
1097
+ }
1098
+ },
1099
+ "required": [
1100
+ "kind",
1101
+ "resource"
1102
+ ],
1103
+ "additionalProperties": false
1104
+ }
1105
+ ]
1106
+ },
1107
+ "regions": {
637
1108
  "type": "array",
638
- "maxItems": 16,
639
1109
  "items": {
640
- "enum": [
641
- "home.header",
642
- "home.content.before",
643
- "home.content.after",
644
- "search.source-selector.after",
645
- "playlist.header.actions",
646
- "playlist.item.actions",
647
- "player.actions",
648
- "settings.sections"
649
- ]
650
- }
1110
+ "type": "string",
1111
+ "minLength": 1,
1112
+ "maxLength": 4096
1113
+ },
1114
+ "maxItems": 128,
1115
+ "uniqueItems": true
651
1116
  },
652
- "order": {
653
- "type": "integer",
654
- "minimum": -1000,
655
- "maximum": 1000
1117
+ "settings": {
1118
+ "type": "object"
656
1119
  }
657
1120
  },
658
1121
  "required": [
659
1122
  "id",
660
- "resource",
661
- "scope"
1123
+ "title",
1124
+ "regions"
662
1125
  ],
663
1126
  "additionalProperties": false
664
1127
  }
665
1128
  },
666
- "playlistImporters": {
1129
+ "menus": {
667
1130
  "type": "array",
668
1131
  "maxItems": 64,
669
1132
  "items": {
@@ -678,65 +1141,121 @@
678
1141
  "minLength": 1,
679
1142
  "maxLength": 4096
680
1143
  },
681
- "description": {
1144
+ "commandId": {
682
1145
  "type": "string",
683
- "minLength": 1,
684
- "maxLength": 4096
1146
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
685
1147
  },
686
- "placeholder": {
1148
+ "description": {
687
1149
  "type": "string",
688
1150
  "minLength": 1,
689
1151
  "maxLength": 4096
690
1152
  },
691
- "providerId": {
692
- "type": "string",
693
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
1153
+ "slot": {
1154
+ "enum": [
1155
+ "playlist.import",
1156
+ "playlist.actions",
1157
+ "track.actions",
1158
+ "player.actions",
1159
+ "search.tools"
1160
+ ]
694
1161
  },
695
- "examples": {
696
- "type": "array",
697
- "maxItems": 16,
698
- "items": {
699
- "type": "object",
700
- "properties": {
701
- "label": {
702
- "type": "string",
703
- "minLength": 1,
704
- "maxLength": 4096
1162
+ "icon": {
1163
+ "oneOf": [
1164
+ {
1165
+ "type": "object",
1166
+ "properties": {
1167
+ "kind": {
1168
+ "const": "host"
1169
+ },
1170
+ "name": {
1171
+ "type": "string",
1172
+ "examples": [
1173
+ "platform.tx",
1174
+ "platform.kg",
1175
+ "platform.kw",
1176
+ "platform.wy",
1177
+ "platform.mg",
1178
+ "platform.local",
1179
+ "platform.all",
1180
+ "search",
1181
+ "music-note",
1182
+ "library",
1183
+ "cloud",
1184
+ "server",
1185
+ "import",
1186
+ "chart",
1187
+ "settings",
1188
+ "play",
1189
+ "pause",
1190
+ "download",
1191
+ "share",
1192
+ "account",
1193
+ "heart",
1194
+ "refresh",
1195
+ "close",
1196
+ "add",
1197
+ "info"
1198
+ ],
1199
+ "description": "Host built-in icon name; no icon file is embedded into the plugin."
1200
+ }
705
1201
  },
706
- "value": {
707
- "type": "string",
708
- "minLength": 1,
709
- "maxLength": 4096
710
- }
1202
+ "required": [
1203
+ "kind",
1204
+ "name"
1205
+ ],
1206
+ "additionalProperties": false
711
1207
  },
712
- "required": [
713
- "label",
714
- "value"
715
- ],
716
- "additionalProperties": false
717
- }
1208
+ {
1209
+ "type": "object",
1210
+ "properties": {
1211
+ "kind": {
1212
+ "const": "asset"
1213
+ },
1214
+ "resource": {
1215
+ "type": "string",
1216
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
1217
+ }
1218
+ },
1219
+ "required": [
1220
+ "kind",
1221
+ "resource"
1222
+ ],
1223
+ "additionalProperties": false
1224
+ }
1225
+ ]
718
1226
  },
719
- "instructions": {
720
- "type": "array",
721
- "items": {
722
- "type": "string",
723
- "minLength": 1,
724
- "maxLength": 4096
725
- },
726
- "maxItems": 128,
727
- "uniqueItems": true
1227
+ "when": {
1228
+ "type": "object",
1229
+ "properties": {
1230
+ "kinds": {
1231
+ "type": "array",
1232
+ "items": {
1233
+ "enum": [
1234
+ "track",
1235
+ "playlist"
1236
+ ]
1237
+ }
1238
+ },
1239
+ "loggedIn": {
1240
+ "type": "boolean"
1241
+ }
1242
+ },
1243
+ "required": [],
1244
+ "additionalProperties": false
728
1245
  }
729
1246
  },
730
1247
  "required": [
731
1248
  "id",
732
- "title"
1249
+ "slot",
1250
+ "title",
1251
+ "commandId"
733
1252
  ],
734
1253
  "additionalProperties": false
735
1254
  }
736
1255
  },
737
- "providers": {
1256
+ "homeSections": {
738
1257
  "type": "array",
739
- "maxItems": 64,
1258
+ "maxItems": 32,
740
1259
  "items": {
741
1260
  "type": "object",
742
1261
  "properties": {
@@ -744,36 +1263,15 @@
744
1263
  "type": "string",
745
1264
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
746
1265
  },
747
- "name": {
1266
+ "title": {
748
1267
  "type": "string",
749
1268
  "minLength": 1,
750
1269
  "maxLength": 4096
751
1270
  },
752
- "protocols": {
753
- "type": "array",
754
- "items": {
755
- "type": "string",
756
- "minLength": 1,
757
- "maxLength": 4096
758
- },
759
- "maxItems": 128,
760
- "uniqueItems": true
761
- },
762
- "qualities": {
763
- "type": "array",
764
- "items": {
765
- "type": "string",
766
- "minLength": 1,
767
- "maxLength": 4096
768
- },
769
- "maxItems": 128,
770
- "uniqueItems": true
771
- },
772
- "connectionMode": {
1271
+ "kind": {
773
1272
  "enum": [
774
- "none",
775
- "single",
776
- "multiple"
1273
+ "playlists",
1274
+ "charts"
777
1275
  ]
778
1276
  },
779
1277
  "icon": {
@@ -840,19 +1338,34 @@
840
1338
  "additionalProperties": false
841
1339
  }
842
1340
  ]
1341
+ },
1342
+ "providerIds": {
1343
+ "type": "array",
1344
+ "items": {
1345
+ "type": "string",
1346
+ "minLength": 1,
1347
+ "maxLength": 4096
1348
+ },
1349
+ "maxItems": 128,
1350
+ "uniqueItems": true
1351
+ },
1352
+ "order": {
1353
+ "type": "integer",
1354
+ "minimum": -1000,
1355
+ "maximum": 1000
843
1356
  }
844
1357
  },
845
1358
  "required": [
846
1359
  "id",
847
- "name",
848
- "protocols"
1360
+ "title",
1361
+ "kind"
849
1362
  ],
850
1363
  "additionalProperties": false
851
1364
  }
852
1365
  },
853
- "commands": {
1366
+ "slots": {
854
1367
  "type": "array",
855
- "maxItems": 128,
1368
+ "maxItems": 64,
856
1369
  "items": {
857
1370
  "type": "object",
858
1371
  "properties": {
@@ -860,34 +1373,61 @@
860
1373
  "type": "string",
861
1374
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
862
1375
  },
863
- "title": {
864
- "type": "string",
865
- "minLength": 1,
866
- "maxLength": 4096
867
- },
868
- "description": {
869
- "type": "string",
870
- "minLength": 1,
871
- "maxLength": 4096
1376
+ "slot": {
1377
+ "enum": [
1378
+ "home.header",
1379
+ "home.content.before",
1380
+ "home.content.after",
1381
+ "search.source-selector.after",
1382
+ "playlist.header.actions",
1383
+ "playlist.item.actions",
1384
+ "player.actions",
1385
+ "settings.sections"
1386
+ ]
872
1387
  },
873
- "action": {
874
- "type": "string",
875
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
1388
+ "mode": {
1389
+ "enum": [
1390
+ "append",
1391
+ "prepend",
1392
+ "wrap",
1393
+ "replace"
1394
+ ]
876
1395
  },
877
1396
  "view": {
878
1397
  "type": "string",
879
1398
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
1399
+ },
1400
+ "order": {
1401
+ "type": "integer",
1402
+ "minimum": -1000,
1403
+ "maximum": 1000
1404
+ },
1405
+ "when": {
1406
+ "type": "object",
1407
+ "properties": {
1408
+ "loggedIn": {
1409
+ "type": "boolean"
1410
+ },
1411
+ "route": {
1412
+ "type": "string",
1413
+ "minLength": 1,
1414
+ "maxLength": 4096
1415
+ }
1416
+ },
1417
+ "required": [],
1418
+ "additionalProperties": false
880
1419
  }
881
1420
  },
882
1421
  "required": [
883
1422
  "id",
884
- "title",
885
- "action"
1423
+ "slot",
1424
+ "mode",
1425
+ "view"
886
1426
  ],
887
1427
  "additionalProperties": false
888
1428
  }
889
1429
  },
890
- "sidebarItems": {
1430
+ "styles": {
891
1431
  "type": "array",
892
1432
  "maxItems": 64,
893
1433
  "items": {
@@ -897,124 +1437,172 @@
897
1437
  "type": "string",
898
1438
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
899
1439
  },
900
- "group": {
1440
+ "resource": {
901
1441
  "type": "string",
902
1442
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
903
1443
  },
904
- "title": {
905
- "type": "string",
906
- "minLength": 1,
907
- "maxLength": 4096
1444
+ "scope": {
1445
+ "enum": [
1446
+ "surface",
1447
+ "slot",
1448
+ "application"
1449
+ ]
908
1450
  },
909
- "view": {
910
- "type": "string",
911
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
1451
+ "slots": {
1452
+ "type": "array",
1453
+ "maxItems": 16,
1454
+ "items": {
1455
+ "enum": [
1456
+ "home.header",
1457
+ "home.content.before",
1458
+ "home.content.after",
1459
+ "search.source-selector.after",
1460
+ "playlist.header.actions",
1461
+ "playlist.item.actions",
1462
+ "player.actions",
1463
+ "settings.sections"
1464
+ ]
1465
+ }
1466
+ },
1467
+ "order": {
1468
+ "type": "integer",
1469
+ "minimum": -1000,
1470
+ "maximum": 1000
912
1471
  }
913
1472
  },
914
1473
  "required": [
915
1474
  "id",
916
- "group",
917
- "title",
918
- "view"
1475
+ "resource",
1476
+ "scope"
919
1477
  ],
920
1478
  "additionalProperties": false
921
1479
  }
922
- },
923
- "settingsPages": {
1480
+ }
1481
+ },
1482
+ "required": [],
1483
+ "additionalProperties": false
1484
+ },
1485
+ "uses": {
1486
+ "type": "object",
1487
+ "properties": {
1488
+ "plugins": {
924
1489
  "type": "array",
925
- "maxItems": 64,
1490
+ "maxItems": 128,
926
1491
  "items": {
927
1492
  "type": "object",
928
1493
  "properties": {
929
- "id": {
1494
+ "pluginId": {
930
1495
  "type": "string",
931
1496
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
932
1497
  },
933
- "title": {
1498
+ "service": {
1499
+ "type": "string",
1500
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
1501
+ },
1502
+ "version": {
934
1503
  "type": "string",
935
1504
  "minLength": 1,
936
1505
  "maxLength": 4096
937
1506
  },
938
- "view": {
939
- "type": "string",
940
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
1507
+ "optional": {
1508
+ "type": "boolean"
941
1509
  }
942
1510
  },
943
1511
  "required": [
944
- "id",
945
- "title",
946
- "view"
1512
+ "pluginId",
1513
+ "service",
1514
+ "version"
947
1515
  ],
948
1516
  "additionalProperties": false
949
1517
  }
950
1518
  },
951
- "guestAdapters": {
1519
+ "permissions": {
952
1520
  "type": "array",
953
- "maxItems": 16,
1521
+ "maxItems": 64,
954
1522
  "items": {
955
1523
  "type": "object",
956
1524
  "properties": {
957
- "id": {
1525
+ "key": {
958
1526
  "type": "string",
959
1527
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
960
1528
  },
961
- "format": {
962
- "type": "string",
963
- "minLength": 1,
964
- "maxLength": 4096
1529
+ "name": {
1530
+ "enum": [
1531
+ "account.profile",
1532
+ "downloads.manage",
1533
+ "localMusic.read",
1534
+ "localMusic.write",
1535
+ "settings.read",
1536
+ "settings.write",
1537
+ "window.control",
1538
+ "hotkeys.register",
1539
+ "rooms.read",
1540
+ "rooms.control",
1541
+ "ai.use",
1542
+ "devices.control",
1543
+ "ui.styles.global",
1544
+ "network.request",
1545
+ "network.socket",
1546
+ "network.private",
1547
+ "network.discovery",
1548
+ "network.serve",
1549
+ "network.serve.lan",
1550
+ "streams.transform",
1551
+ "runtime.trusted",
1552
+ "credentials.use",
1553
+ "credentials.read",
1554
+ "credentials.capture",
1555
+ "library.read",
1556
+ "library.write",
1557
+ "library.delete",
1558
+ "player.read",
1559
+ "route.read",
1560
+ "navigation.intercept",
1561
+ "music.read",
1562
+ "music.control",
1563
+ "player.control",
1564
+ "player.intercept",
1565
+ "account.intercept",
1566
+ "library.intercept",
1567
+ "search.intercept",
1568
+ "search.read",
1569
+ "links.read",
1570
+ "notifications.read",
1571
+ "window.read",
1572
+ "window.intercept",
1573
+ "lyrics.intercept",
1574
+ "downloads.intercept",
1575
+ "sharing.intercept",
1576
+ "links.intercept",
1577
+ "notifications.intercept",
1578
+ "playback.fallback.hold",
1579
+ "files.read",
1580
+ "files.write",
1581
+ "downloads.create",
1582
+ "clipboard.read",
1583
+ "clipboard.write",
1584
+ "notifications.system",
1585
+ "external.open",
1586
+ "background.run",
1587
+ "services.consume",
1588
+ "sharing.publish",
1589
+ "sharing.revoke",
1590
+ "guests.manage",
1591
+ "guests.run"
1592
+ ]
965
1593
  },
966
- "compatibilityProfile": {
967
- "type": "string",
968
- "minLength": 1,
969
- "maxLength": 4096
1594
+ "scope": {
1595
+ "type": "object"
970
1596
  },
971
- "title": {
1597
+ "reason": {
972
1598
  "type": "string",
973
1599
  "minLength": 1,
974
1600
  "maxLength": 4096
975
1601
  },
976
- "extensions": {
977
- "type": "array",
978
- "items": {
979
- "type": "string",
980
- "minLength": 1,
981
- "maxLength": 4096
982
- },
983
- "maxItems": 128,
984
- "uniqueItems": true
985
- },
986
- "badge": {
987
- "type": "object",
988
- "properties": {
989
- "label": {
990
- "type": "string",
991
- "minLength": 1,
992
- "maxLength": 24
993
- },
994
- "backgroundColor": {
995
- "type": "string",
996
- "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
997
- },
998
- "textColor": {
999
- "type": "string",
1000
- "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1001
- }
1002
- },
1003
- "required": [
1004
- "label",
1005
- "backgroundColor",
1006
- "textColor"
1007
- ],
1008
- "additionalProperties": false
1009
- },
1010
- "bootstrap": {
1011
- "type": "string",
1012
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
1013
- },
1014
- "runtime": {
1015
- "const": "ceru-js@1"
1602
+ "optional": {
1603
+ "type": "boolean"
1016
1604
  },
1017
- "projectableProtocols": {
1605
+ "requiredFor": {
1018
1606
  "type": "array",
1019
1607
  "items": {
1020
1608
  "type": "string",
@@ -1026,12 +1614,9 @@
1026
1614
  }
1027
1615
  },
1028
1616
  "required": [
1029
- "id",
1030
- "format",
1031
- "compatibilityProfile",
1032
- "bootstrap",
1033
- "runtime",
1034
- "projectableProtocols"
1617
+ "key",
1618
+ "name",
1619
+ "reason"
1035
1620
  ],
1036
1621
  "additionalProperties": false
1037
1622
  }
@@ -1040,88 +1625,6 @@
1040
1625
  "required": [],
1041
1626
  "additionalProperties": false
1042
1627
  },
1043
- "permissions": {
1044
- "type": "array",
1045
- "maxItems": 64,
1046
- "items": {
1047
- "type": "object",
1048
- "properties": {
1049
- "key": {
1050
- "type": "string",
1051
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
1052
- },
1053
- "name": {
1054
- "enum": [
1055
- "account.profile",
1056
- "downloads.manage",
1057
- "localMusic.read",
1058
- "localMusic.write",
1059
- "settings.read",
1060
- "settings.write",
1061
- "window.control",
1062
- "hotkeys.register",
1063
- "rooms.read",
1064
- "rooms.control",
1065
- "ai.use",
1066
- "devices.control",
1067
- "ui.styles.global",
1068
- "network.request",
1069
- "network.socket",
1070
- "network.private",
1071
- "network.discovery",
1072
- "credentials.use",
1073
- "credentials.read",
1074
- "library.read",
1075
- "library.write",
1076
- "library.delete",
1077
- "player.read",
1078
- "player.control",
1079
- "playback.fallback.hold",
1080
- "files.read",
1081
- "files.write",
1082
- "downloads.create",
1083
- "clipboard.read",
1084
- "clipboard.write",
1085
- "notifications.system",
1086
- "external.open",
1087
- "background.run",
1088
- "services.consume",
1089
- "sharing.publish",
1090
- "sharing.revoke",
1091
- "guests.manage",
1092
- "guests.run"
1093
- ]
1094
- },
1095
- "scope": {
1096
- "type": "object"
1097
- },
1098
- "reason": {
1099
- "type": "string",
1100
- "minLength": 1,
1101
- "maxLength": 4096
1102
- },
1103
- "optional": {
1104
- "type": "boolean"
1105
- },
1106
- "requiredFor": {
1107
- "type": "array",
1108
- "items": {
1109
- "type": "string",
1110
- "minLength": 1,
1111
- "maxLength": 4096
1112
- },
1113
- "maxItems": 128,
1114
- "uniqueItems": true
1115
- }
1116
- },
1117
- "required": [
1118
- "key",
1119
- "name",
1120
- "reason"
1121
- ],
1122
- "additionalProperties": false
1123
- }
1124
- },
1125
1628
  "guestPolicy": {
1126
1629
  "type": "object",
1127
1630
  "properties": {
@@ -1182,7 +1685,7 @@
1182
1685
  "name",
1183
1686
  "version",
1184
1687
  "engines",
1185
- "modules"
1688
+ "entry"
1186
1689
  ],
1187
1690
  "additionalProperties": false
1188
1691
  },
@@ -1272,8 +1775,7 @@
1272
1775
  }
1273
1776
  },
1274
1777
  "required": [
1275
- "manifest",
1276
- "entries"
1778
+ "manifest"
1277
1779
  ],
1278
1780
  "additionalProperties": false
1279
1781
  }