@shiqianjiang/ceru-plugin-cli 0.3.7 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Ceru Plugin CLI
2
2
 
3
+ 0.3.9 修复 Windows 下方向键选择失灵:连续提问不再反复切换原始模式,避免输入被行编辑缓冲吞掉。
4
+
5
+ 0.3.8 的 `init` 与 `npm create ceru-plugin` 改用方向键选择模板与语言,选项自带模板说明,目录非空就地提示重填,Ctrl+C 可取消,创建后打印 `cd`/`npm` 步骤卡片。非交互终端保持原来的纯文本输出。
6
+
3
7
  0.3.5 的 `playlistSections` 把原生音乐库内容放入 Host 现有本地/云歌单页。开发工作台提供相同的区块预览与 `sectionId` 导航;CLI 的 `--version` 读取当前包版本。
4
8
 
5
9
  0.3.3 支持原生 Surface、账号退出菜单、登录弹框关闭及浏览器公共播放服务。
package/dist/index.js CHANGED
@@ -2,10 +2,11 @@ import { parseArgs } from 'node:util';
2
2
  import { readFileSync } from 'node:fs';
3
3
  import { readFile, stat } from 'node:fs/promises';
4
4
  import { resolve, extname } from 'node:path';
5
- import { createInterface } from 'node:readline/promises';
6
5
  import { createTemplate, generateSigningKeys, parseJsonStrict, PreparedIssuer, readArtifact, signArtifact, } from '@shiqianjiang/ceru-plugin-issuer';
7
6
  import { buildProject, scaffoldProject, TEMPLATES, writeAtomic } from './project.js';
8
7
  import { runDev } from './dev.js';
8
+ import { printInitSummary, promptInit } from './init.js';
9
+ import { PromptCancelled } from './tui.js';
9
10
  export { buildProject, loadProject, scaffoldProject, TEMPLATES } from './project.js';
10
11
  const VERSION = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version;
11
12
  const HELP = 'Ceru Plugin CLI ' +
@@ -81,42 +82,28 @@ export async function runCli(argv = process.argv.slice(2)) {
81
82
  };
82
83
  if (command === 'init') {
83
84
  let destination = positionals[1];
84
- if (!destination && process.stdin.isTTY) {
85
- const rl = createInterface({ input: process.stdin, output: process.stdout });
86
- try {
87
- destination = (await rl.question('项目目录 [my-ceru-plugin]: ')).trim() || 'my-ceru-plugin';
88
- }
89
- finally {
90
- rl.close();
91
- }
92
- }
93
- if (!destination)
94
- throw new Error('Specify a project directory');
95
85
  let template = flags.template;
96
86
  let language = flags.lang;
97
- if (process.stdin.isTTY && (!template || !language)) {
98
- const rl = createInterface({ input: process.stdin, output: process.stdout });
87
+ const interactive = Boolean(process.stdin.isTTY && process.stdout.isTTY);
88
+ if (interactive && (!destination || !template || !language)) {
99
89
  try {
100
- if (!template) {
101
- console.log(TEMPLATES.map((name, i) => String(i + 1) + '. ' + name).join('\n'));
102
- const answer = (await rl.question('选择模板 [1]: ')).trim() || '1';
103
- template = /^\d+$/.test(answer) ? TEMPLATES[Number(answer) - 1] : answer;
104
- if (!template)
105
- throw new Error('Invalid template selection');
106
- }
107
- if (!language)
108
- language = (await rl.question('语言 ts / js [ts]: ')).trim() || 'ts';
90
+ const answers = await promptInit({ input: process.stdin, output: process.stdout }, { destination, template, language }, VERSION);
91
+ destination = answers.destination;
92
+ template = answers.template;
93
+ language = answers.language;
109
94
  }
110
- finally {
111
- rl.close();
95
+ catch (error) {
96
+ if (error instanceof PromptCancelled) {
97
+ process.exitCode = 130;
98
+ return;
99
+ }
100
+ throw error;
112
101
  }
113
102
  }
103
+ if (!destination)
104
+ throw new Error('Specify a project directory');
114
105
  const path = await scaffoldProject(destination, { template, language });
115
- console.log('Created ' +
116
- path +
117
- '\n\nNext:\n cd ' +
118
- JSON.stringify(path) +
119
- '\n npm install\n npm run build\n\nShare only dist/plugin.js. A v2-compatible Host is required.');
106
+ printInitSummary(process.stdout, path, interactive);
120
107
  return;
121
108
  }
122
109
  if (command === 'build') {
package/dist/init.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { type TuiOutput, type TuiStreams } from './tui.js';
2
+ export interface InitAnswers {
3
+ destination?: string;
4
+ template?: string;
5
+ language?: string;
6
+ }
7
+ export declare function promptInit(streams: TuiStreams, defaults: InitAnswers, version: string): Promise<Required<InitAnswers>>;
8
+ export declare function printInitSummary(output: TuiOutput, path: string, interactive: boolean): void;
package/dist/init.js ADDED
@@ -0,0 +1,71 @@
1
+ // init 交互向导:目录、模板、语言三个问题,以及创建后的结果卡片。
2
+ // 只在交互终端启用;非交互路径继续用 index.ts 的纯文本输出,保证脚本可用。
3
+ import { readdir } from 'node:fs/promises';
4
+ import { resolve } from 'node:path';
5
+ import { TEMPLATE_INFO, TEMPLATES } from './project.js';
6
+ import { createStyle, promptSelect, promptText } from './tui.js';
7
+ const LANGUAGES = [
8
+ { value: 'ts', label: 'TypeScript', hint: '构建前做类型检查' },
9
+ { value: 'js', label: 'JavaScript', hint: '不检查类型,直接构建' },
10
+ ];
11
+ export async function promptInit(streams, defaults, version) {
12
+ const style = createStyle(streams.output);
13
+ streams.output.write('\n ' +
14
+ style.bold(style.accent('澜音插件脚手架')) +
15
+ ' ' +
16
+ style.dim('v' + version) +
17
+ '\n ' +
18
+ style.dim('生成单文件插件工程 · TypeScript / JavaScript · Vue / React') +
19
+ '\n\n');
20
+ const destination = defaults.destination ??
21
+ (await promptText(streams, {
22
+ message: '插件目录',
23
+ initial: 'my-ceru-plugin',
24
+ validate: async (value) => {
25
+ if (!value)
26
+ return '请输入目录名';
27
+ try {
28
+ if ((await readdir(resolve(value))).length)
29
+ return '目标目录非空:' + resolve(value);
30
+ }
31
+ catch {
32
+ // 目录不存在时会新建,直接通过。
33
+ }
34
+ return undefined;
35
+ },
36
+ }));
37
+ const template = defaults.template ??
38
+ (await promptSelect(streams, {
39
+ message: '选择模板',
40
+ choices: TEMPLATES.map((name) => ({ value: name, label: name, hint: TEMPLATE_INFO[name] })),
41
+ }));
42
+ const language = defaults.language ??
43
+ (await promptSelect(streams, {
44
+ message: '选择语言',
45
+ choices: LANGUAGES,
46
+ }));
47
+ return { destination, template, language };
48
+ }
49
+ export function printInitSummary(output, path, interactive) {
50
+ if (!interactive) {
51
+ output.write('Created ' +
52
+ path +
53
+ '\n\nNext:\n cd ' +
54
+ JSON.stringify(path) +
55
+ '\n npm install\n npm run build\n\nShare only dist/plugin.js. A v2-compatible Host is required.\n');
56
+ return;
57
+ }
58
+ const style = createStyle(output);
59
+ const steps = [
60
+ ['cd ' + JSON.stringify(path), ''],
61
+ ['npm install', '安装模板依赖'],
62
+ ['npm run dev', '启动 Electron 调试工作台'],
63
+ ['npm run build', '产出 dist/plugin.js'],
64
+ ];
65
+ const width = Math.max(...steps.map(([command]) => command.length));
66
+ output.write('\n ' + style.success('✔') + ' ' + style.bold('已创建') + ' ' + style.accent(path) + '\n');
67
+ output.write('\n ' + style.bold('下一步') + '\n');
68
+ for (const [command, note] of steps)
69
+ output.write(' ' + style.accent(command.padEnd(width)) + (note ? ' ' + style.dim(note) : '') + '\n');
70
+ output.write('\n ' + style.dim('只分发 dist/plugin.js;安装需要 v2 兼容的澜音 Host。') + '\n\n');
71
+ }
package/dist/project.d.ts CHANGED
@@ -31,6 +31,7 @@ export declare function buildProject(project?: string, options?: {
31
31
  }>;
32
32
  export declare const TEMPLATES: readonly ["source", "connected-library", "importer", "guest-adapter", "web-surface", "vue", "vue-tsx", "react", "web-dist"];
33
33
  export type TemplateName = (typeof TEMPLATES)[number];
34
+ export declare const TEMPLATE_INFO: Record<TemplateName, string>;
34
35
  export declare function scaffoldProject(destination: string, options?: {
35
36
  template?: string;
36
37
  language?: string;
package/dist/project.js CHANGED
@@ -494,6 +494,18 @@ export const TEMPLATES = [
494
494
  'react',
495
495
  'web-dist',
496
496
  ];
497
+ // 与根 README 的模板表保持一致;Record 保证新增模板必须补说明。
498
+ export const TEMPLATE_INFO = {
499
+ source: '本地搜索 demo、标准 Provider、结构化解析结果',
500
+ 'connected-library': '连接表单与状态更新 demo',
501
+ importer: '曲目去重与导入计划预览',
502
+ 'guest-adapter': '父插件与 Guest bootstrap 的边界',
503
+ 'web-surface': '普通 DOM 页面',
504
+ vue: 'Vue 单文件组件、scoped CSS',
505
+ 'vue-tsx': 'Vue TSX 组件',
506
+ react: 'React TSX/JSX、Hooks',
507
+ 'web-dist': '封装已构建的本地 index.html、脚本和样式',
508
+ };
497
509
  export async function scaffoldProject(destination, options = {}) {
498
510
  const template = options.template ?? 'source';
499
511
  const language = options.language ?? 'ts';
package/dist/tui.d.ts ADDED
@@ -0,0 +1,51 @@
1
+ export interface TuiInput {
2
+ isTTY?: boolean;
3
+ setRawMode?(mode: boolean): void;
4
+ resume?(): void;
5
+ on(event: string, listener: (...args: any[]) => void): unknown;
6
+ off(event: string, listener: (...args: any[]) => void): unknown;
7
+ }
8
+ export interface TuiOutput {
9
+ isTTY?: boolean;
10
+ columns?: number;
11
+ hasColors?(count?: number): boolean;
12
+ write(chunk: string): unknown;
13
+ }
14
+ export interface TuiStreams {
15
+ input: TuiInput;
16
+ output: TuiOutput;
17
+ }
18
+ export interface Key {
19
+ name?: string;
20
+ ctrl?: boolean;
21
+ meta?: boolean;
22
+ }
23
+ export declare class PromptCancelled extends Error {
24
+ constructor();
25
+ }
26
+ export interface Style {
27
+ bold(text: string): string;
28
+ dim(text: string): string;
29
+ accent(text: string): string;
30
+ success(text: string): string;
31
+ error(text: string): string;
32
+ }
33
+ export declare function createStyle(output: TuiOutput): Style;
34
+ export interface TextOptions {
35
+ message: string;
36
+ /** 直接回车时采用的值,显示为灰色占位。 */
37
+ initial?: string;
38
+ validate?(value: string): string | undefined | Promise<string | undefined>;
39
+ }
40
+ export declare function promptText(streams: TuiStreams, options: TextOptions): Promise<string>;
41
+ export interface Choice<T> {
42
+ value: T;
43
+ label: string;
44
+ hint?: string;
45
+ }
46
+ export interface SelectOptions<T> {
47
+ message: string;
48
+ choices: Choice<T>[];
49
+ initial?: number;
50
+ }
51
+ export declare function promptSelect<T>(streams: TuiStreams, options: SelectOptions<T>): Promise<T>;
package/dist/tui.js ADDED
@@ -0,0 +1,295 @@
1
+ // 无依赖的终端界面基础件:颜色降级、行内输入、方向键选择与取消处理。
2
+ // 仅由 init 向导在 TTY 中调用,调用方负责判断是否具备交互条件。
3
+ // 颜色按 NO_COLOR / FORCE_COLOR / 终端能力降级,非 TTY 输出退化为纯文本。
4
+ import { emitKeypressEvents } from 'node:readline';
5
+ export class PromptCancelled extends Error {
6
+ constructor() {
7
+ super('Prompt cancelled');
8
+ this.name = 'PromptCancelled';
9
+ }
10
+ }
11
+ const CLEAR_LINE = '\r\u001b[2K';
12
+ const CLEAR_DOWN = '\u001b[0J';
13
+ const RESET = '\u001b[0m';
14
+ // 终端显示宽度:忽略 ANSI 序列,全角字符按两列计。
15
+ function displayWidth(text) {
16
+ let width = 0;
17
+ for (const char of text.replace(/\u001b\[[0-9;]*[A-Za-z]/g, '')) {
18
+ const code = char.codePointAt(0) ?? 0;
19
+ const wide = (code >= 0x1100 && code <= 0x115f) ||
20
+ (code >= 0x2e80 && code <= 0xa4cf) ||
21
+ (code >= 0xac00 && code <= 0xd7a3) ||
22
+ (code >= 0xf900 && code <= 0xfaff) ||
23
+ (code >= 0xfe30 && code <= 0xfe6f) ||
24
+ (code >= 0xff00 && code <= 0xff60) ||
25
+ (code >= 0xffe0 && code <= 0xffe6);
26
+ width += wide ? 2 : 1;
27
+ }
28
+ return width;
29
+ }
30
+ // 窄终端下截断长文本,避免行内重绘错位。
31
+ function clampText(text, max) {
32
+ if (max === undefined || displayWidth(text) <= max)
33
+ return text;
34
+ let result = '';
35
+ for (const char of text) {
36
+ if (displayWidth(result + char) > max - 1)
37
+ break;
38
+ result += char;
39
+ }
40
+ return result + '…';
41
+ }
42
+ // 16 色码,以及 256 色终端上更柔和的等价色。
43
+ const PALETTE = {
44
+ 16: { accent: '36', success: '32', error: '31', dim: '90' },
45
+ 256: { accent: '38;5;45', success: '38;5;42', error: '38;5;203', dim: '38;5;245' },
46
+ };
47
+ function colorDepth(output) {
48
+ if ('NO_COLOR' in process.env)
49
+ return 0;
50
+ const forced = process.env.FORCE_COLOR;
51
+ if (forced === '0')
52
+ return 0;
53
+ if (forced)
54
+ return forced === '1' ? 16 : 256;
55
+ if (!output.isTTY || process.env.TERM === 'dumb')
56
+ return 0;
57
+ return output.hasColors?.(256) ? 256 : 16;
58
+ }
59
+ export function createStyle(output) {
60
+ const depth = colorDepth(output);
61
+ const codes = depth === 256 ? PALETTE[256] : PALETTE[16];
62
+ const paint = (code) => (text) => depth === 0 ? text : '\u001b[' + code + 'm' + text + RESET;
63
+ return {
64
+ bold: paint('1'),
65
+ dim: paint(codes.dim),
66
+ accent: paint(codes.accent),
67
+ success: paint(codes.success),
68
+ error: paint(codes.error),
69
+ };
70
+ }
71
+ // 原始模式按“会话”切换:一次向导里只进出一次,prompt 之间保持不变。
72
+ // Windows 上 libuv 每次切换控制台模式都会重启读取;会话中反复 toggle 或 pause
73
+ // 会让下一次输入落进行模式缓冲(方向键被行编辑吃掉,只剩回车有效)。
74
+ let rawSession;
75
+ let rawRestore;
76
+ function leaveRawMode() {
77
+ const input = rawSession;
78
+ if (!input)
79
+ return;
80
+ rawSession = undefined;
81
+ process.off('exit', leaveRawMode);
82
+ if (input.isTTY === true && typeof input.setRawMode === 'function')
83
+ input.setRawMode(false);
84
+ }
85
+ // 提问之间的间隙不立刻退出原始模式:连续 prompt 沿用同一次 raw 会话。
86
+ function leaveRawModeSoon() {
87
+ if (!rawSession || rawRestore)
88
+ return;
89
+ rawRestore = setImmediate(() => {
90
+ rawRestore = undefined;
91
+ leaveRawMode();
92
+ });
93
+ }
94
+ function enterRawMode(input) {
95
+ if (rawRestore) {
96
+ clearImmediate(rawRestore);
97
+ rawRestore = undefined;
98
+ // 同一次会话:原始模式还没退出,直接接着用。
99
+ if (rawSession === input)
100
+ return;
101
+ }
102
+ else if (rawSession === input) {
103
+ return;
104
+ }
105
+ leaveRawMode();
106
+ rawSession = input;
107
+ if (input.isTTY === true && typeof input.setRawMode === 'function')
108
+ input.setRawMode(true);
109
+ input.resume?.();
110
+ process.once('exit', leaveRawMode);
111
+ }
112
+ // 接管按键:进入原始模式并监听 keypress;返回的清理函数恢复终端状态。
113
+ function listen(streams, onKey) {
114
+ const { input } = streams;
115
+ emitKeypressEvents(input);
116
+ enterRawMode(input);
117
+ const handler = (text, key) => onKey(typeof text === 'string' ? text : '', key ?? {});
118
+ input.on('keypress', handler);
119
+ let closed = false;
120
+ const close = () => {
121
+ if (closed)
122
+ return;
123
+ closed = true;
124
+ input.off('keypress', handler);
125
+ leaveRawModeSoon();
126
+ };
127
+ return close;
128
+ }
129
+ export async function promptText(streams, options) {
130
+ const style = createStyle(streams.output);
131
+ const suffix = options.initial ? ' ' + style.dim('(' + options.initial + ')') : '';
132
+ const head = ' ' +
133
+ style.accent('?') +
134
+ ' ' +
135
+ style.bold(options.message) +
136
+ suffix +
137
+ ' ' +
138
+ style.accent('›') +
139
+ ' ';
140
+ let value = '';
141
+ const write = (line) => streams.output.write(CLEAR_LINE + line);
142
+ // 已输入内容占满一行时不再覆盖本行,避免折行残影。
143
+ const collapse = (line) => streams.output.write((streams.output.columns === undefined || displayWidth(head + value) < streams.output.columns
144
+ ? CLEAR_LINE
145
+ : '\n') + line);
146
+ return await new Promise((resolve, reject) => {
147
+ let settled = false;
148
+ let stop = () => { };
149
+ const finish = (done) => {
150
+ if (settled)
151
+ return;
152
+ settled = true;
153
+ stop();
154
+ done();
155
+ };
156
+ const cancel = () => finish(() => {
157
+ collapse(' ' + style.error('■') + ' ' + style.dim('已取消') + '\n');
158
+ reject(new PromptCancelled());
159
+ });
160
+ const submit = async () => {
161
+ const answer = (value.trim() || options.initial || '').trim();
162
+ let problem;
163
+ try {
164
+ problem = await options.validate?.(answer);
165
+ }
166
+ catch (error) {
167
+ problem = error instanceof Error ? error.message : String(error);
168
+ }
169
+ if (problem) {
170
+ value = '';
171
+ streams.output.write('\n' + ' ' + style.error('✖') + ' ' + style.dim(problem) + '\n' + head);
172
+ return;
173
+ }
174
+ finish(() => {
175
+ collapse(' ' +
176
+ style.success('✔') +
177
+ ' ' +
178
+ style.dim(options.message) +
179
+ ' ' +
180
+ style.bold(answer) +
181
+ '\n');
182
+ resolve(answer);
183
+ });
184
+ };
185
+ stop = listen(streams, (text, key) => {
186
+ if (key.ctrl && key.name === 'c')
187
+ return cancel();
188
+ if (key.name === 'escape')
189
+ return cancel();
190
+ if (key.name === 'return' || key.name === 'enter') {
191
+ void submit();
192
+ return;
193
+ }
194
+ if (key.name === 'backspace') {
195
+ value = Array.from(value).slice(0, -1).join('');
196
+ write(head + value);
197
+ return;
198
+ }
199
+ if (key.ctrl && key.name === 'u') {
200
+ value = '';
201
+ write(head + value);
202
+ return;
203
+ }
204
+ if (!text || key.ctrl || key.meta || /[\u0000-\u001f\u007f]/.test(text))
205
+ return;
206
+ value += text;
207
+ write(head + value);
208
+ });
209
+ write(head + value);
210
+ });
211
+ }
212
+ export async function promptSelect(streams, options) {
213
+ const style = createStyle(streams.output);
214
+ const choices = options.choices;
215
+ if (!choices.length)
216
+ throw new Error('promptSelect requires at least one choice');
217
+ const width = Math.max(...choices.map((choice) => choice.label.length));
218
+ let active = Math.min(Math.max(options.initial ?? 0, 0), choices.length - 1);
219
+ const columns = streams.output.columns;
220
+ const message = ' ' + style.accent('?') + ' ' + style.bold(options.message);
221
+ const hint = '↑/↓ 移动 · 数字键跳转 · Enter 确认 · Ctrl+C 取消';
222
+ const head = columns !== undefined && displayWidth(message + ' ' + hint) >= columns
223
+ ? message
224
+ : message + ' ' + style.dim(hint);
225
+ const hintWidth = columns === undefined ? undefined : columns - 6 - String(choices.length).length - width;
226
+ const rows = () => choices.map((choice, index) => {
227
+ const current = index === active;
228
+ const label = choice.label.padEnd(width);
229
+ const note = choice.hint && (hintWidth ?? 4) >= 4 ? clampText(choice.hint, hintWidth) : '';
230
+ return (' ' +
231
+ (current ? style.accent('❯') : ' ') +
232
+ ' ' +
233
+ style.dim(String(index + 1) + '.') +
234
+ ' ' +
235
+ (current ? style.bold(style.accent(label)) : label) +
236
+ (note ? ' ' + style.dim(note) : ''));
237
+ });
238
+ let drawn = false;
239
+ const draw = () => {
240
+ if (drawn)
241
+ streams.output.write('\u001b[' + choices.length + 'A');
242
+ streams.output.write(rows()
243
+ .map((row) => CLEAR_LINE + row + '\n')
244
+ .join(''));
245
+ drawn = true;
246
+ };
247
+ streams.output.write(head + '\n');
248
+ draw();
249
+ return await new Promise((resolve, reject) => {
250
+ let settled = false;
251
+ let stop = () => { };
252
+ const finish = (done) => {
253
+ if (settled)
254
+ return;
255
+ settled = true;
256
+ stop();
257
+ streams.output.write('\u001b[' + (choices.length + 1) + 'A' + CLEAR_DOWN);
258
+ done();
259
+ };
260
+ const cancel = () => finish(() => {
261
+ streams.output.write(' ' + style.error('■') + ' ' + style.dim('已取消') + '\n');
262
+ reject(new PromptCancelled());
263
+ });
264
+ const confirm = (index) => finish(() => {
265
+ streams.output.write(' ' +
266
+ style.success('✔') +
267
+ ' ' +
268
+ style.dim(options.message) +
269
+ ' ' +
270
+ style.bold(choices[index].label) +
271
+ '\n');
272
+ resolve(choices[index].value);
273
+ });
274
+ const move = (delta) => {
275
+ active = (active + delta + choices.length) % choices.length;
276
+ draw();
277
+ };
278
+ stop = listen(streams, (text, key) => {
279
+ if (key.ctrl && key.name === 'c')
280
+ return cancel();
281
+ if (key.name === 'escape')
282
+ return cancel();
283
+ if (key.name === 'up' || key.name === 'k')
284
+ return move(-1);
285
+ if (key.name === 'down' || key.name === 'j')
286
+ return move(1);
287
+ if (key.name === 'return' || key.name === 'enter')
288
+ return confirm(active);
289
+ if (/^[1-9]$/.test(text) && Number(text) <= choices.length) {
290
+ active = Number(text) - 1;
291
+ draw();
292
+ }
293
+ });
294
+ });
295
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shiqianjiang/ceru-plugin-cli",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
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.3.7",
36
- "@shiqianjiang/ceru-plugin-sdk": "0.3.7",
35
+ "@shiqianjiang/ceru-plugin-issuer": "0.3.9",
36
+ "@shiqianjiang/ceru-plugin-sdk": "0.3.9",
37
37
  "@vue/babel-plugin-jsx": "^2.0.1",
38
38
  "@vue/compiler-sfc": "3.5.43",
39
39
  "axios": "^1.20.0",
@@ -11,10 +11,10 @@
11
11
  "preview": "ceru-plugin preview dist/plugin.js"
12
12
  },
13
13
  "dependencies": {
14
- "@shiqianjiang/ceru-plugin-sdk": "^0.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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:eab907f677ceca9786ddac50ef9934912dfc492ba5cd2143547f6c6b66a4cfac",
4
+ "digest": "sha256:6ab25f0b47a8d0ff00c4ce5d7bda8fd01c1405b30fe6db12a166556774771935",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
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.3.6"
14
+ "@shiqianjiang/ceru-plugin-sdk": "^0.3.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@shiqianjiang/ceru-plugin-cli": "^0.3.6",
17
+ "@shiqianjiang/ceru-plugin-cli": "^0.3.9",
18
18
  "typescript": "~5.9.3",
19
19
  "electron": "^44.4.2",
20
20
  "prettier": "^3.6.2"