@shiqianjiang/ceru-plugin-cli 0.2.5 → 0.3.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.
Files changed (33) hide show
  1. package/README.md +6 -0
  2. package/assets/core-contracts.js +1 -1
  3. package/assets/index.html +94 -94
  4. package/assets/playground.js +64 -12
  5. package/assets/sandbox.js +21 -21
  6. package/dist/dev.js +7 -13
  7. package/dist/storage.d.ts +12 -0
  8. package/dist/storage.js +65 -0
  9. package/package.json +3 -3
  10. package/schemas/config.schema.json +209 -0
  11. package/templates/connected-library/js/package.json +2 -2
  12. package/templates/connected-library/ts/package.json +2 -2
  13. package/templates/guest-adapter/js/package.json +2 -2
  14. package/templates/guest-adapter/ts/package.json +2 -2
  15. package/templates/importer/js/package.json +2 -2
  16. package/templates/importer/ts/package.json +2 -2
  17. package/templates/react/js/package.json +2 -2
  18. package/templates/react/ts/package.json +2 -2
  19. package/templates/snapshot.json +1 -1
  20. package/templates/source/js/package.json +2 -2
  21. package/templates/source/ts/package.json +2 -2
  22. package/templates/vue/js/package.json +2 -2
  23. package/templates/vue/ts/package.json +2 -2
  24. package/templates/vue-tsx/js/package.json +2 -2
  25. package/templates/vue-tsx/ts/package.json +2 -2
  26. package/templates/web-dist/js/package.json +2 -2
  27. package/templates/web-dist/ts/package.json +2 -2
  28. package/templates/web-surface/js/ceru.plugin.json +31 -2
  29. package/templates/web-surface/js/package.json +2 -2
  30. package/templates/web-surface/js/src/index.js +7 -0
  31. package/templates/web-surface/ts/ceru.plugin.json +31 -2
  32. package/templates/web-surface/ts/package.json +2 -2
  33. package/templates/web-surface/ts/src/index.ts +7 -0
package/dist/dev.js CHANGED
@@ -13,6 +13,7 @@ import { randomBytes, createHash } from 'node:crypto';
13
13
  import { spawn } from 'node:child_process';
14
14
  import { readArtifact, parseJsonStrict, resolveArtifactConfig, } from '@shiqianjiang/ceru-plugin-issuer';
15
15
  import { buildProject } from './project.js';
16
+ import { DevelopmentStorage } from './storage.js';
16
17
  const asset = (name) => fileURLToPath(new URL('../assets/' + name, import.meta.url));
17
18
  function mergeConfig(base, override) {
18
19
  const result = structuredClone(base);
@@ -237,7 +238,7 @@ export async function runDev(project, options = {}) {
237
238
  const effectiveConfig = () => mergeConfig(resolveArtifactConfig(artifact.header), configOverride);
238
239
  const sockets = new SocketBroker();
239
240
  const operations = new Map();
240
- const storage = new Map();
241
+ let storage = new DevelopmentStorage(root, artifact.header.manifest.id);
241
242
  const rebuild = async () => {
242
243
  if (running) {
243
244
  dirty = true;
@@ -249,6 +250,7 @@ export async function runDev(project, options = {}) {
249
250
  try {
250
251
  build = await prepare();
251
252
  artifact = readArtifact(await readFile(build.path));
253
+ storage = new DevelopmentStorage(root, artifact.header.manifest.id);
252
254
  revision++;
253
255
  error = null;
254
256
  sockets.closeAll();
@@ -428,18 +430,10 @@ export async function runDev(project, options = {}) {
428
430
  });
429
431
  return;
430
432
  }
431
- if (input.method === 'storage.get') {
432
- json(200, { value: storage.get(data.key) ?? null });
433
- return;
434
- }
435
- if (input.method === 'storage.set') {
436
- storage.set(String(data.key), data.value);
437
- json(200, { value: null });
438
- return;
439
- }
440
- if (input.method === 'storage.delete') {
441
- storage.delete(String(data.key));
442
- json(200, { value: null });
433
+ if (['storage.get', 'storage.set', 'storage.delete'].includes(input.method)) {
434
+ json(200, {
435
+ value: await storage.invoke(input.method.slice(8), data.key, data.value),
436
+ });
443
437
  return;
444
438
  }
445
439
  if (input.method === 'permissions.query') {
@@ -0,0 +1,12 @@
1
+ /** Private development data; persists across preview restarts and never enters the artifact. */
2
+ export declare class DevelopmentStorage {
3
+ private readonly pluginId;
4
+ private values;
5
+ private initialized?;
6
+ private writes;
7
+ private readonly path;
8
+ constructor(root: string, pluginId: string);
9
+ private initialize;
10
+ private key;
11
+ invoke(method: 'get' | 'set' | 'delete', ref: unknown, value?: unknown): Promise<unknown>;
12
+ }
@@ -0,0 +1,65 @@
1
+ import { mkdir, readFile, writeFile, rename } from 'node:fs/promises';
2
+ import { resolve } from 'node:path';
3
+ import { createHash, randomUUID } from 'node:crypto';
4
+ /** Private development data; persists across preview restarts and never enters the artifact. */
5
+ export class DevelopmentStorage {
6
+ pluginId;
7
+ values = new Map();
8
+ initialized;
9
+ writes = Promise.resolve();
10
+ path;
11
+ constructor(root, pluginId) {
12
+ this.pluginId = pluginId;
13
+ this.path = resolve(root, '.ceru-dev/storage', createHash('sha256').update(pluginId).digest('hex') + '.json');
14
+ }
15
+ initialize() {
16
+ return (this.initialized ??= (async () => {
17
+ try {
18
+ const values = JSON.parse(await readFile(this.path, 'utf8'));
19
+ if (!Array.isArray(values))
20
+ throw new Error('Invalid development storage');
21
+ this.values = new Map(values);
22
+ }
23
+ catch (error) {
24
+ if (error.code !== 'ENOENT')
25
+ throw error;
26
+ }
27
+ })());
28
+ }
29
+ key(value) {
30
+ if (value?.pluginId && value.pluginId !== this.pluginId)
31
+ throw new Error('Cross-plugin storage requires an installed Host');
32
+ const key = typeof value === 'string' ? value : value?.key;
33
+ if (typeof key !== 'string' || !key || key.length > 256)
34
+ throw new Error('Invalid storage key');
35
+ return key;
36
+ }
37
+ async invoke(method, ref, value) {
38
+ await this.initialize();
39
+ const key = this.key(ref);
40
+ if (method === 'get') {
41
+ await this.writes;
42
+ return structuredClone(this.values.get(key) ?? null);
43
+ }
44
+ const job = this.writes
45
+ .catch(() => { })
46
+ .then(async () => {
47
+ const next = new Map(this.values);
48
+ if (method === 'set')
49
+ next.set(key, value);
50
+ else
51
+ next.delete(key);
52
+ const data = JSON.stringify([...next]);
53
+ if (Buffer.byteLength(data) > 10 * 1024 * 1024)
54
+ throw new Error('Storage exceeds 10 MiB');
55
+ await mkdir(resolve(this.path, '..'), { recursive: true });
56
+ const temporary = this.path + '.' + randomUUID() + '.tmp';
57
+ await writeFile(temporary, data, { mode: 0o600 });
58
+ await rename(temporary, this.path);
59
+ this.values = next;
60
+ return null;
61
+ });
62
+ this.writes = job.catch(() => { });
63
+ return job;
64
+ }
65
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shiqianjiang/ceru-plugin-cli",
3
- "version": "0.2.5",
3
+ "version": "0.3.1",
4
4
  "description": "TypeScript scaffolding, single-file build, watch, validation, signing and issuance for Ceru plugins",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/core": "^7.29.7",
35
- "@shiqianjiang/ceru-plugin-issuer": "0.2.3",
36
- "@shiqianjiang/ceru-plugin-sdk": "0.2.3",
35
+ "@shiqianjiang/ceru-plugin-issuer": "0.3.1",
36
+ "@shiqianjiang/ceru-plugin-sdk": "0.3.1",
37
37
  "@vue/babel-plugin-jsx": "^2.0.1",
38
38
  "@vue/compiler-sfc": "3.5.43",
39
39
  "axios": "^1.20.0",
@@ -126,6 +126,43 @@
126
126
  ],
127
127
  "additionalProperties": false
128
128
  },
129
+ "share": {
130
+ "type": "object",
131
+ "properties": {
132
+ "entry": {
133
+ "type": "string",
134
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
135
+ },
136
+ "configKeys": {
137
+ "type": "array",
138
+ "items": {
139
+ "type": "string",
140
+ "minLength": 1,
141
+ "maxLength": 4096
142
+ },
143
+ "maxItems": 128,
144
+ "uniqueItems": true
145
+ },
146
+ "guestAdapterId": {
147
+ "type": "string",
148
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
149
+ },
150
+ "guestGlobals": {
151
+ "type": "array",
152
+ "items": {
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "maxLength": 4096
156
+ },
157
+ "maxItems": 128,
158
+ "uniqueItems": true
159
+ }
160
+ },
161
+ "required": [
162
+ "entry"
163
+ ],
164
+ "additionalProperties": false
165
+ },
129
166
  "surfaces": {
130
167
  "type": "array",
131
168
  "maxItems": 64,
@@ -145,6 +182,51 @@
145
182
  "entry": {
146
183
  "type": "string",
147
184
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
185
+ },
186
+ "title": {
187
+ "type": "string",
188
+ "minLength": 1,
189
+ "maxLength": 100
190
+ },
191
+ "presentation": {
192
+ "type": "object",
193
+ "properties": {
194
+ "kind": {
195
+ "const": "drawer"
196
+ },
197
+ "placement": {
198
+ "enum": [
199
+ "left",
200
+ "right",
201
+ "top",
202
+ "bottom"
203
+ ]
204
+ },
205
+ "size": {
206
+ "type": "integer",
207
+ "minimum": 280,
208
+ "maximum": 1200
209
+ }
210
+ },
211
+ "required": [
212
+ "kind"
213
+ ],
214
+ "additionalProperties": false
215
+ },
216
+ "lifecycle": {
217
+ "type": "object",
218
+ "properties": {
219
+ "openAction": {
220
+ "type": "string",
221
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
222
+ },
223
+ "closeAction": {
224
+ "type": "string",
225
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
226
+ }
227
+ },
228
+ "required": [],
229
+ "additionalProperties": false
148
230
  }
149
231
  },
150
232
  "required": [
@@ -162,6 +244,46 @@
162
244
  "contributes": {
163
245
  "type": "object",
164
246
  "properties": {
247
+ "lyricConverters": {
248
+ "type": "array",
249
+ "maxItems": 16,
250
+ "items": {
251
+ "type": "object",
252
+ "properties": {
253
+ "id": {
254
+ "type": "string",
255
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
256
+ },
257
+ "title": {
258
+ "type": "string",
259
+ "minLength": 1,
260
+ "maxLength": 4096
261
+ },
262
+ "formats": {
263
+ "type": "array",
264
+ "items": {
265
+ "enum": [
266
+ "auto",
267
+ "lrc",
268
+ "enhanced-lrc",
269
+ "yrc",
270
+ "qrc",
271
+ "krc",
272
+ "ttml",
273
+ "plain"
274
+ ]
275
+ },
276
+ "uniqueItems": true
277
+ }
278
+ },
279
+ "required": [
280
+ "id",
281
+ "title",
282
+ "formats"
283
+ ],
284
+ "additionalProperties": false
285
+ }
286
+ },
165
287
  "menus": {
166
288
  "type": "array",
167
289
  "maxItems": 64,
@@ -181,6 +303,11 @@
181
303
  "type": "string",
182
304
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
183
305
  },
306
+ "description": {
307
+ "type": "string",
308
+ "minLength": 1,
309
+ "maxLength": 4096
310
+ },
184
311
  "slot": {
185
312
  "enum": [
186
313
  "playlist.import",
@@ -486,6 +613,44 @@
486
613
  "type": "string",
487
614
  "minLength": 1,
488
615
  "maxLength": 4096
616
+ },
617
+ "providerId": {
618
+ "type": "string",
619
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
620
+ },
621
+ "examples": {
622
+ "type": "array",
623
+ "maxItems": 16,
624
+ "items": {
625
+ "type": "object",
626
+ "properties": {
627
+ "label": {
628
+ "type": "string",
629
+ "minLength": 1,
630
+ "maxLength": 4096
631
+ },
632
+ "value": {
633
+ "type": "string",
634
+ "minLength": 1,
635
+ "maxLength": 4096
636
+ }
637
+ },
638
+ "required": [
639
+ "label",
640
+ "value"
641
+ ],
642
+ "additionalProperties": false
643
+ }
644
+ },
645
+ "instructions": {
646
+ "type": "array",
647
+ "items": {
648
+ "type": "string",
649
+ "minLength": 1,
650
+ "maxLength": 4096
651
+ },
652
+ "maxItems": 128,
653
+ "uniqueItems": true
489
654
  }
490
655
  },
491
656
  "required": [
@@ -626,6 +791,11 @@
626
791
  "minLength": 1,
627
792
  "maxLength": 4096
628
793
  },
794
+ "description": {
795
+ "type": "string",
796
+ "minLength": 1,
797
+ "maxLength": 4096
798
+ },
629
799
  "action": {
630
800
  "type": "string",
631
801
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
@@ -724,6 +894,45 @@
724
894
  "minLength": 1,
725
895
  "maxLength": 4096
726
896
  },
897
+ "title": {
898
+ "type": "string",
899
+ "minLength": 1,
900
+ "maxLength": 4096
901
+ },
902
+ "extensions": {
903
+ "type": "array",
904
+ "items": {
905
+ "type": "string",
906
+ "minLength": 1,
907
+ "maxLength": 4096
908
+ },
909
+ "maxItems": 128,
910
+ "uniqueItems": true
911
+ },
912
+ "badge": {
913
+ "type": "object",
914
+ "properties": {
915
+ "label": {
916
+ "type": "string",
917
+ "minLength": 1,
918
+ "maxLength": 24
919
+ },
920
+ "backgroundColor": {
921
+ "type": "string",
922
+ "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
923
+ },
924
+ "textColor": {
925
+ "type": "string",
926
+ "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
927
+ }
928
+ },
929
+ "required": [
930
+ "label",
931
+ "backgroundColor",
932
+ "textColor"
933
+ ],
934
+ "additionalProperties": false
935
+ },
727
936
  "bootstrap": {
728
937
  "type": "string",
729
938
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2"
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2"
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2"
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2"
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2"
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2"
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2",
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 1,
3
3
  "source": "https://github.com/CeruMusic/CeruMusic-Plugin-Template",
4
- "digest": "sha256:7eeb9eec7c3fe051c7f1feed458e2a24124b016eda67bd4636711b5126a28d21",
4
+ "digest": "sha256:4a9b69d1c8c0742faf77ece05955e571b4004276ff4f936766cffea65e0f496f",
5
5
  "files": [
6
6
  "connected-library/js/_gitignore",
7
7
  "connected-library/js/.prettierrc.json",
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2"
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2"
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2",
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2",
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2",
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2",
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2"
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.3"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.5",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2"