@shiqianjiang/ceru-plugin-cli 0.2.6 → 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 +59 -11
  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 +71 -71
  10. package/schemas/config.schema.json +131 -0
  11. package/templates/connected-library/js/package.json +22 -22
  12. package/templates/connected-library/ts/package.json +22 -22
  13. package/templates/guest-adapter/js/package.json +22 -22
  14. package/templates/guest-adapter/ts/package.json +22 -22
  15. package/templates/importer/js/package.json +22 -22
  16. package/templates/importer/ts/package.json +22 -22
  17. package/templates/react/js/package.json +26 -26
  18. package/templates/react/ts/package.json +26 -26
  19. package/templates/snapshot.json +1 -1
  20. package/templates/source/js/package.json +22 -22
  21. package/templates/source/ts/package.json +22 -22
  22. package/templates/vue/js/package.json +23 -23
  23. package/templates/vue/ts/package.json +23 -23
  24. package/templates/vue-tsx/js/package.json +23 -23
  25. package/templates/vue-tsx/ts/package.json +23 -23
  26. package/templates/web-dist/js/package.json +22 -22
  27. package/templates/web-dist/ts/package.json +22 -22
  28. package/templates/web-surface/js/ceru.plugin.json +31 -2
  29. package/templates/web-surface/js/package.json +22 -22
  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 +22 -22
  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,71 +1,71 @@
1
- {
2
- "name": "@shiqianjiang/ceru-plugin-cli",
3
- "version": "0.2.6",
4
- "description": "TypeScript scaffolding, single-file build, watch, validation, signing and issuance for Ceru plugins",
5
- "type": "module",
6
- "main": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.js",
12
- "default": "./dist/index.js"
13
- }
14
- },
15
- "bin": {
16
- "ceru-plugin": "dist/bin.js"
17
- },
18
- "files": [
19
- "dist",
20
- "assets",
21
- "schemas",
22
- "templates",
23
- "README.md",
24
- "LICENSE",
25
- "ASSET_LICENSE",
26
- "NOTICE"
27
- ],
28
- "license": "MIT AND AGPL-3.0-only",
29
- "author": "澜音团队",
30
- "engines": {
31
- "node": ">=22.12.0"
32
- },
33
- "dependencies": {
34
- "@babel/core": "^7.29.7",
35
- "@shiqianjiang/ceru-plugin-issuer": "0.2.4",
36
- "@shiqianjiang/ceru-plugin-sdk": "0.2.4",
37
- "@vue/babel-plugin-jsx": "^2.0.1",
38
- "@vue/compiler-sfc": "3.5.43",
39
- "axios": "^1.20.0",
40
- "esbuild": "^0.28.2",
41
- "lodash-es": "^4.18.1",
42
- "parse5": "^8.0.1",
43
- "react": "19.3.0",
44
- "react-dom": "19.3.0",
45
- "semver": "^7.7.0",
46
- "socket.io-client": "^4.8.3",
47
- "typescript": "~5.9.3",
48
- "vue": "3.5.43",
49
- "vue-tsc": "^3.3.11",
50
- "ws": "^8.21.3"
51
- },
52
- "publishConfig": {
53
- "access": "public",
54
- "registry": "https://registry.npmjs.org/"
55
- },
56
- "repository": {
57
- "type": "git",
58
- "url": "git+https://github.com/CeruMusic/CeruMusic-Plugin-Cli.git",
59
- "directory": "packages/cli"
60
- },
61
- "bugs": {
62
- "url": "https://github.com/CeruMusic/CeruMusic-Plugin-Cli/issues"
63
- },
64
- "homepage": "https://github.com/CeruMusic/CeruMusic-Plugin-Cli#readme",
65
- "keywords": [
66
- "ceru-music",
67
- "plugin",
68
- "typescript",
69
- "electron"
70
- ]
71
- }
1
+ {
2
+ "name": "@shiqianjiang/ceru-plugin-cli",
3
+ "version": "0.3.1",
4
+ "description": "TypeScript scaffolding, single-file build, watch, validation, signing and issuance for Ceru plugins",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "bin": {
16
+ "ceru-plugin": "dist/bin.js"
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "assets",
21
+ "schemas",
22
+ "templates",
23
+ "README.md",
24
+ "LICENSE",
25
+ "ASSET_LICENSE",
26
+ "NOTICE"
27
+ ],
28
+ "license": "MIT AND AGPL-3.0-only",
29
+ "author": "澜音团队",
30
+ "engines": {
31
+ "node": ">=22.12.0"
32
+ },
33
+ "dependencies": {
34
+ "@babel/core": "^7.29.7",
35
+ "@shiqianjiang/ceru-plugin-issuer": "0.3.1",
36
+ "@shiqianjiang/ceru-plugin-sdk": "0.3.1",
37
+ "@vue/babel-plugin-jsx": "^2.0.1",
38
+ "@vue/compiler-sfc": "3.5.43",
39
+ "axios": "^1.20.0",
40
+ "esbuild": "^0.28.2",
41
+ "lodash-es": "^4.18.1",
42
+ "parse5": "^8.0.1",
43
+ "react": "19.3.0",
44
+ "react-dom": "19.3.0",
45
+ "semver": "^7.7.0",
46
+ "socket.io-client": "^4.8.3",
47
+ "typescript": "~5.9.3",
48
+ "vue": "3.5.43",
49
+ "vue-tsc": "^3.3.11",
50
+ "ws": "^8.21.3"
51
+ },
52
+ "publishConfig": {
53
+ "access": "public",
54
+ "registry": "https://registry.npmjs.org/"
55
+ },
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "git+https://github.com/CeruMusic/CeruMusic-Plugin-Cli.git",
59
+ "directory": "packages/cli"
60
+ },
61
+ "bugs": {
62
+ "url": "https://github.com/CeruMusic/CeruMusic-Plugin-Cli/issues"
63
+ },
64
+ "homepage": "https://github.com/CeruMusic/CeruMusic-Plugin-Cli#readme",
65
+ "keywords": [
66
+ "ceru-music",
67
+ "plugin",
68
+ "typescript",
69
+ "electron"
70
+ ]
71
+ }
@@ -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": [
@@ -221,6 +303,11 @@
221
303
  "type": "string",
222
304
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
223
305
  },
306
+ "description": {
307
+ "type": "string",
308
+ "minLength": 1,
309
+ "maxLength": 4096
310
+ },
224
311
  "slot": {
225
312
  "enum": [
226
313
  "playlist.import",
@@ -704,6 +791,11 @@
704
791
  "minLength": 1,
705
792
  "maxLength": 4096
706
793
  },
794
+ "description": {
795
+ "type": "string",
796
+ "minLength": 1,
797
+ "maxLength": 4096
798
+ },
707
799
  "action": {
708
800
  "type": "string",
709
801
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
@@ -802,6 +894,45 @@
802
894
  "minLength": 1,
803
895
  "maxLength": 4096
804
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
+ },
805
936
  "bootstrap": {
806
937
  "type": "string",
807
938
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"
@@ -1,22 +1,22 @@
1
- {
2
- "name": "js",
3
- "version": "0.1.0",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "dev": "ceru-plugin dev",
8
- "build": "ceru-plugin build",
9
- "typecheck": "tsc --noEmit",
10
- "validate": "ceru-plugin validate dist/plugin.js",
11
- "preview": "ceru-plugin preview dist/plugin.js"
12
- },
13
- "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.4"
15
- },
16
- "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.6",
18
- "typescript": "~5.9.3",
19
- "electron": "^44.4.2",
20
- "prettier": "^3.6.2"
21
- }
22
- }
1
+ {
2
+ "name": "js",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "ceru-plugin dev",
8
+ "build": "ceru-plugin build",
9
+ "typecheck": "tsc --noEmit",
10
+ "validate": "ceru-plugin validate dist/plugin.js",
11
+ "preview": "ceru-plugin preview dist/plugin.js"
12
+ },
13
+ "dependencies": {
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
+ },
16
+ "devDependencies": {
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
+ "typescript": "~5.9.3",
19
+ "electron": "^44.4.2",
20
+ "prettier": "^3.6.2"
21
+ }
22
+ }
@@ -1,22 +1,22 @@
1
- {
2
- "name": "ts",
3
- "version": "0.1.0",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "dev": "ceru-plugin dev",
8
- "build": "ceru-plugin build",
9
- "typecheck": "tsc --noEmit",
10
- "validate": "ceru-plugin validate dist/plugin.js",
11
- "preview": "ceru-plugin preview dist/plugin.js"
12
- },
13
- "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.4"
15
- },
16
- "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.6",
18
- "typescript": "~5.9.3",
19
- "electron": "^44.4.2",
20
- "prettier": "^3.6.2"
21
- }
22
- }
1
+ {
2
+ "name": "ts",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "ceru-plugin dev",
8
+ "build": "ceru-plugin build",
9
+ "typecheck": "tsc --noEmit",
10
+ "validate": "ceru-plugin validate dist/plugin.js",
11
+ "preview": "ceru-plugin preview dist/plugin.js"
12
+ },
13
+ "dependencies": {
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
+ },
16
+ "devDependencies": {
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
+ "typescript": "~5.9.3",
19
+ "electron": "^44.4.2",
20
+ "prettier": "^3.6.2"
21
+ }
22
+ }
@@ -1,22 +1,22 @@
1
- {
2
- "name": "js",
3
- "version": "0.1.0",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "dev": "ceru-plugin dev",
8
- "build": "ceru-plugin build",
9
- "typecheck": "tsc --noEmit",
10
- "validate": "ceru-plugin validate dist/plugin.js",
11
- "preview": "ceru-plugin preview dist/plugin.js"
12
- },
13
- "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.4"
15
- },
16
- "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.6",
18
- "typescript": "~5.9.3",
19
- "electron": "^44.4.2",
20
- "prettier": "^3.6.2"
21
- }
22
- }
1
+ {
2
+ "name": "js",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "ceru-plugin dev",
8
+ "build": "ceru-plugin build",
9
+ "typecheck": "tsc --noEmit",
10
+ "validate": "ceru-plugin validate dist/plugin.js",
11
+ "preview": "ceru-plugin preview dist/plugin.js"
12
+ },
13
+ "dependencies": {
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
+ },
16
+ "devDependencies": {
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
+ "typescript": "~5.9.3",
19
+ "electron": "^44.4.2",
20
+ "prettier": "^3.6.2"
21
+ }
22
+ }
@@ -1,22 +1,22 @@
1
- {
2
- "name": "ts",
3
- "version": "0.1.0",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "dev": "ceru-plugin dev",
8
- "build": "ceru-plugin build",
9
- "typecheck": "tsc --noEmit",
10
- "validate": "ceru-plugin validate dist/plugin.js",
11
- "preview": "ceru-plugin preview dist/plugin.js"
12
- },
13
- "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.4"
15
- },
16
- "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.6",
18
- "typescript": "~5.9.3",
19
- "electron": "^44.4.2",
20
- "prettier": "^3.6.2"
21
- }
22
- }
1
+ {
2
+ "name": "ts",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "ceru-plugin dev",
8
+ "build": "ceru-plugin build",
9
+ "typecheck": "tsc --noEmit",
10
+ "validate": "ceru-plugin validate dist/plugin.js",
11
+ "preview": "ceru-plugin preview dist/plugin.js"
12
+ },
13
+ "dependencies": {
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
+ },
16
+ "devDependencies": {
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
+ "typescript": "~5.9.3",
19
+ "electron": "^44.4.2",
20
+ "prettier": "^3.6.2"
21
+ }
22
+ }
@@ -1,22 +1,22 @@
1
- {
2
- "name": "js",
3
- "version": "0.1.0",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "dev": "ceru-plugin dev",
8
- "build": "ceru-plugin build",
9
- "typecheck": "tsc --noEmit",
10
- "validate": "ceru-plugin validate dist/plugin.js",
11
- "preview": "ceru-plugin preview dist/plugin.js"
12
- },
13
- "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.2.4"
15
- },
16
- "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.2.6",
18
- "typescript": "~5.9.3",
19
- "electron": "^44.4.2",
20
- "prettier": "^3.6.2"
21
- }
22
- }
1
+ {
2
+ "name": "js",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "ceru-plugin dev",
8
+ "build": "ceru-plugin build",
9
+ "typecheck": "tsc --noEmit",
10
+ "validate": "ceru-plugin validate dist/plugin.js",
11
+ "preview": "ceru-plugin preview dist/plugin.js"
12
+ },
13
+ "dependencies": {
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.1"
15
+ },
16
+ "devDependencies": {
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.1",
18
+ "typescript": "~5.9.3",
19
+ "electron": "^44.4.2",
20
+ "prettier": "^3.6.2"
21
+ }
22
+ }