@aswless_854771076/ai_short_studio_cli 0.1.146 → 0.1.147
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/dist/commands/art-style/bind.d.ts +14 -0
- package/dist/commands/art-style/bind.js +11 -0
- package/dist/commands/art-style/create.d.ts +12 -0
- package/dist/commands/art-style/create.js +14 -0
- package/dist/commands/art-style/disable.d.ts +14 -0
- package/dist/commands/art-style/disable.js +12 -0
- package/dist/commands/art-style/generate.d.ts +12 -0
- package/dist/commands/art-style/generate.js +12 -0
- package/dist/commands/art-style/preview.d.ts +15 -0
- package/dist/commands/art-style/preview.js +12 -0
- package/dist/commands/art-style/update.d.ts +15 -0
- package/dist/commands/art-style/update.js +12 -0
- package/dist/commands/canvas/voice/bind.d.ts +16 -0
- package/dist/commands/canvas/voice/bind.js +12 -0
- package/dist/commands/canvas/voice/list.d.ts +11 -0
- package/dist/commands/canvas/voice/list.js +10 -0
- package/dist/commands/canvas/voice/unbind.d.ts +15 -0
- package/dist/commands/canvas/voice/unbind.js +12 -0
- package/dist/commands/canvas/voice/upload.d.ts +17 -0
- package/dist/commands/canvas/voice/upload.js +23 -0
- package/dist/domain/vvicat-api.d.ts +11 -0
- package/dist/domain/vvicat-api.js +38 -0
- package/package.json +1 -1
- package/skills/using-vvicat-ai-short-studio-cli/SKILL.md +6 -5
- package/skills/using-vvicat-ai-short-studio-cli/references/video-model-routing.md +10 -0
- package/skills/using-vvicat-ai-short-studio-cli/references/video-prompt-spec.md +32 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class ArtStyleBind extends BaseCommand {
|
|
3
|
+
static flags: {
|
|
4
|
+
project: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
5
|
+
style: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
+
version: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
locale: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
episode: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Flags } from '@oclif/core';
|
|
2
|
+
import { BaseCommand } from '../../base-command.js';
|
|
3
|
+
import { commandApi, projectFlag } from '../../command-helpers.js';
|
|
4
|
+
export default class ArtStyleBind extends BaseCommand {
|
|
5
|
+
static flags = { ...BaseCommand.baseFlags, project: projectFlag, style: Flags.string({ required: true }), version: Flags.integer() };
|
|
6
|
+
async run() {
|
|
7
|
+
const { flags } = await this.parse(ArtStyleBind);
|
|
8
|
+
const { api } = await commandApi(flags);
|
|
9
|
+
this.print(await api.bindArtStyle(flags.project, flags.style, flags.version));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class ArtStyleCreate extends BaseCommand {
|
|
3
|
+
static flags: {
|
|
4
|
+
file: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
5
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
|
+
locale: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
episode: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
};
|
|
11
|
+
run(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Flags } from '@oclif/core';
|
|
2
|
+
import { BaseCommand } from '../../base-command.js';
|
|
3
|
+
import { commandApi, readJsonInput } from '../../command-helpers.js';
|
|
4
|
+
export default class ArtStyleCreate extends BaseCommand {
|
|
5
|
+
static flags = { ...BaseCommand.baseFlags, file: Flags.string({ description: '完整画风 JSON;省略时读取 stdin' }) };
|
|
6
|
+
async run() {
|
|
7
|
+
const { flags } = await this.parse(ArtStyleCreate);
|
|
8
|
+
const { api } = await commandApi(flags);
|
|
9
|
+
const input = await readJsonInput(flags.file);
|
|
10
|
+
if (typeof input.name !== 'string' || typeof input.prompt !== 'string' || !input.visualBible)
|
|
11
|
+
throw new Error('画风必须包含 name、prompt 和 visualBible;请先完成用户确认');
|
|
12
|
+
this.print(await api.createArtStyle(input));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class ArtStyleDisable extends BaseCommand {
|
|
3
|
+
static args: {
|
|
4
|
+
styleId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
|
+
};
|
|
6
|
+
static flags: {
|
|
7
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
locale: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
episode: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Args } from '@oclif/core';
|
|
2
|
+
import { BaseCommand } from '../../base-command.js';
|
|
3
|
+
import { commandApi } from '../../command-helpers.js';
|
|
4
|
+
export default class ArtStyleDisable extends BaseCommand {
|
|
5
|
+
static args = { styleId: Args.string({ required: true }) };
|
|
6
|
+
static flags = { ...BaseCommand.baseFlags };
|
|
7
|
+
async run() {
|
|
8
|
+
const { args, flags } = await this.parse(ArtStyleDisable);
|
|
9
|
+
const { api } = await commandApi(flags);
|
|
10
|
+
this.print(await api.disableArtStyle(args.styleId));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class ArtStyleGenerate extends BaseCommand {
|
|
3
|
+
static flags: {
|
|
4
|
+
file: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
5
|
+
locale: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
episode: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
};
|
|
11
|
+
run(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Flags } from '@oclif/core';
|
|
2
|
+
import { BaseCommand } from '../../base-command.js';
|
|
3
|
+
import { commandApi, readJsonInput } from '../../command-helpers.js';
|
|
4
|
+
export default class ArtStyleGenerate extends BaseCommand {
|
|
5
|
+
static flags = { ...BaseCommand.baseFlags, file: Flags.string({ description: '画风描述 JSON;省略时读取 stdin' }), locale: Flags.string({ options: ['zh', 'en'], default: 'zh' }) };
|
|
6
|
+
async run() {
|
|
7
|
+
const { flags } = await this.parse(ArtStyleGenerate);
|
|
8
|
+
const { api } = await commandApi(flags);
|
|
9
|
+
const input = await readJsonInput(flags.file);
|
|
10
|
+
this.print(await api.generateArtStyle({ ...input, locale: flags.locale }));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class ArtStylePreview extends BaseCommand {
|
|
3
|
+
static args: {
|
|
4
|
+
styleId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
|
+
};
|
|
6
|
+
static flags: {
|
|
7
|
+
model: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
locale: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
episode: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
};
|
|
14
|
+
run(): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Args, Flags } from '@oclif/core';
|
|
2
|
+
import { BaseCommand } from '../../base-command.js';
|
|
3
|
+
import { commandApi } from '../../command-helpers.js';
|
|
4
|
+
export default class ArtStylePreview extends BaseCommand {
|
|
5
|
+
static args = { styleId: Args.string({ required: true }) };
|
|
6
|
+
static flags = { ...BaseCommand.baseFlags, model: Flags.string({ required: true }), locale: Flags.string({ options: ['zh', 'en'], default: 'zh' }) };
|
|
7
|
+
async run() {
|
|
8
|
+
const { args, flags } = await this.parse(ArtStylePreview);
|
|
9
|
+
const { api } = await commandApi(flags);
|
|
10
|
+
this.print(await api.previewArtStyle({ styleId: args.styleId, model: flags.model, locale: flags.locale }));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class ArtStyleUpdate extends BaseCommand {
|
|
3
|
+
static args: {
|
|
4
|
+
styleId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
|
+
};
|
|
6
|
+
static flags: {
|
|
7
|
+
file: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
locale: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
episode: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
};
|
|
14
|
+
run(): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Args, Flags } from '@oclif/core';
|
|
2
|
+
import { BaseCommand } from '../../base-command.js';
|
|
3
|
+
import { commandApi, readJsonInput } from '../../command-helpers.js';
|
|
4
|
+
export default class ArtStyleUpdate extends BaseCommand {
|
|
5
|
+
static args = { styleId: Args.string({ required: true }) };
|
|
6
|
+
static flags = { ...BaseCommand.baseFlags, file: Flags.string({ description: '画风更新 JSON;省略时读取 stdin' }) };
|
|
7
|
+
async run() {
|
|
8
|
+
const { args, flags } = await this.parse(ArtStyleUpdate);
|
|
9
|
+
const { api } = await commandApi(flags);
|
|
10
|
+
this.print(await api.updateArtStyle(args.styleId, await readJsonInput(flags.file)));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseCommand } from '../../../base-command.js';
|
|
2
|
+
export default class CanvasVoiceBind extends BaseCommand {
|
|
3
|
+
static args: {
|
|
4
|
+
characterId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
|
+
};
|
|
6
|
+
static flags: {
|
|
7
|
+
project: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
voice: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
locale: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
episode: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
};
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Args, Flags } from '@oclif/core';
|
|
2
|
+
import { BaseCommand } from '../../../base-command.js';
|
|
3
|
+
import { commandApi, projectFlag } from '../../../command-helpers.js';
|
|
4
|
+
export default class CanvasVoiceBind extends BaseCommand {
|
|
5
|
+
static args = { characterId: Args.string({ required: true }) };
|
|
6
|
+
static flags = { ...BaseCommand.baseFlags, project: projectFlag, voice: Flags.string({ required: true }) };
|
|
7
|
+
async run() {
|
|
8
|
+
const { args, flags } = await this.parse(CanvasVoiceBind);
|
|
9
|
+
const { api } = await commandApi(flags);
|
|
10
|
+
this.print(await api.bindCharacterVoice(flags.project, args.characterId, flags.voice));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseCommand } from '../../../base-command.js';
|
|
2
|
+
export default class CanvasVoiceList extends BaseCommand {
|
|
3
|
+
static flags: {
|
|
4
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
5
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
6
|
+
locale: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
episode: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
};
|
|
10
|
+
run(): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseCommand } from '../../../base-command.js';
|
|
2
|
+
import { commandApi } from '../../../command-helpers.js';
|
|
3
|
+
export default class CanvasVoiceList extends BaseCommand {
|
|
4
|
+
static flags = { ...BaseCommand.baseFlags };
|
|
5
|
+
async run() {
|
|
6
|
+
const { flags } = await this.parse(CanvasVoiceList);
|
|
7
|
+
const { api } = await commandApi(flags);
|
|
8
|
+
this.print(await api.listVoices());
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseCommand } from '../../../base-command.js';
|
|
2
|
+
export default class CanvasVoiceUnbind extends BaseCommand {
|
|
3
|
+
static args: {
|
|
4
|
+
characterId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
|
+
};
|
|
6
|
+
static flags: {
|
|
7
|
+
project: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
locale: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
episode: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
};
|
|
14
|
+
run(): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Args } from '@oclif/core';
|
|
2
|
+
import { BaseCommand } from '../../../base-command.js';
|
|
3
|
+
import { commandApi, projectFlag } from '../../../command-helpers.js';
|
|
4
|
+
export default class CanvasVoiceUnbind extends BaseCommand {
|
|
5
|
+
static args = { characterId: Args.string({ required: true }) };
|
|
6
|
+
static flags = { ...BaseCommand.baseFlags, project: projectFlag };
|
|
7
|
+
async run() {
|
|
8
|
+
const { args, flags } = await this.parse(CanvasVoiceUnbind);
|
|
9
|
+
const { api } = await commandApi(flags);
|
|
10
|
+
this.print(await api.bindCharacterVoice(flags.project, args.characterId, null));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseCommand } from '../../../base-command.js';
|
|
2
|
+
export default class CanvasVoiceUpload extends BaseCommand {
|
|
3
|
+
static args: {
|
|
4
|
+
file: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
|
+
};
|
|
6
|
+
static flags: {
|
|
7
|
+
name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
folder: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
locale: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
episode: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
};
|
|
16
|
+
run(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { basename, extname } from 'node:path';
|
|
2
|
+
import { readFile } from 'node:fs/promises';
|
|
3
|
+
import { Args, Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../../base-command.js';
|
|
5
|
+
import { commandApi } from '../../../command-helpers.js';
|
|
6
|
+
const MIME = { '.mp3': 'audio/mpeg', '.wav': 'audio/wav', '.m4a': 'audio/mp4', '.aac': 'audio/aac', '.ogg': 'audio/ogg' };
|
|
7
|
+
export default class CanvasVoiceUpload extends BaseCommand {
|
|
8
|
+
static args = { file: Args.string({ required: true }) };
|
|
9
|
+
static flags = { ...BaseCommand.baseFlags, name: Flags.string({ required: true }), description: Flags.string(), folder: Flags.string() };
|
|
10
|
+
async run() {
|
|
11
|
+
const { args, flags } = await this.parse(CanvasVoiceUpload);
|
|
12
|
+
const bytes = await readFile(args.file);
|
|
13
|
+
const form = new FormData();
|
|
14
|
+
form.set('file', new Blob([bytes], { type: MIME[extname(args.file).toLowerCase()] || 'application/octet-stream' }), basename(args.file));
|
|
15
|
+
form.set('name', flags.name);
|
|
16
|
+
if (flags.description)
|
|
17
|
+
form.set('description', flags.description);
|
|
18
|
+
if (flags.folder)
|
|
19
|
+
form.set('folderId', flags.folder);
|
|
20
|
+
const { api } = await commandApi(flags);
|
|
21
|
+
this.print(await api.uploadVoice(form));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -82,6 +82,17 @@ export declare class VvicatApi {
|
|
|
82
82
|
createCanvasEpisode(projectId: string, episodeNumber: number, name?: string): Promise<JsonObject>;
|
|
83
83
|
canvasSettings(projectId: string): Promise<JsonObject>;
|
|
84
84
|
updateCanvasSettings(projectId: string, input: JsonObject): Promise<JsonObject>;
|
|
85
|
+
listArtStyles(includeDrafts?: boolean): Promise<JsonObject>;
|
|
86
|
+
generateArtStyle(input: JsonObject): Promise<JsonObject>;
|
|
87
|
+
createArtStyle(input: JsonObject): Promise<JsonObject>;
|
|
88
|
+
previewArtStyle(input: JsonObject): Promise<JsonObject>;
|
|
89
|
+
updateArtStyle(styleId: string, input: JsonObject): Promise<JsonObject>;
|
|
90
|
+
disableArtStyle(styleId: string): Promise<JsonObject>;
|
|
91
|
+
bindArtStyle(projectId: string, styleId: string, expectedVersion?: number): Promise<JsonObject>;
|
|
92
|
+
listVoices(): Promise<JsonObject>;
|
|
93
|
+
uploadVoice(formData: FormData): Promise<JsonObject>;
|
|
94
|
+
bindCharacterVoice(projectId: string, characterId: string, globalVoiceId: string | null): Promise<JsonObject>;
|
|
95
|
+
characterVoice(projectId: string, characterId: string): Promise<JsonObject>;
|
|
85
96
|
listFolders(projectId: string, query?: string): Promise<JsonObject>;
|
|
86
97
|
createFolder(projectId: string, input: {
|
|
87
98
|
name: string;
|
|
@@ -119,6 +119,44 @@ export class VvicatApi {
|
|
|
119
119
|
updateCanvasSettings(projectId, input) {
|
|
120
120
|
return this.client.request(`/api/projects/${projectId}/canvas/settings`, { method: 'PATCH', body: input });
|
|
121
121
|
}
|
|
122
|
+
listArtStyles(includeDrafts = true) {
|
|
123
|
+
return this.client.request(`/api/art-styles?includeDrafts=${includeDrafts ? '1' : '0'}`);
|
|
124
|
+
}
|
|
125
|
+
generateArtStyle(input) {
|
|
126
|
+
return this.client.request('/api/art-styles/generate-prompt', { method: 'POST', body: input });
|
|
127
|
+
}
|
|
128
|
+
createArtStyle(input) {
|
|
129
|
+
return this.client.request('/api/art-styles', { method: 'POST', body: input });
|
|
130
|
+
}
|
|
131
|
+
previewArtStyle(input) {
|
|
132
|
+
return this.client.request('/api/art-styles/generate-preview', { method: 'POST', body: input });
|
|
133
|
+
}
|
|
134
|
+
updateArtStyle(styleId, input) {
|
|
135
|
+
return this.client.request(`/api/art-styles/${styleId}`, { method: 'PATCH', body: input });
|
|
136
|
+
}
|
|
137
|
+
disableArtStyle(styleId) {
|
|
138
|
+
return this.client.request(`/api/art-styles/${styleId}`, { method: 'DELETE' });
|
|
139
|
+
}
|
|
140
|
+
async bindArtStyle(projectId, styleId, expectedVersion) {
|
|
141
|
+
return this.updateCanvasSettings(projectId, {
|
|
142
|
+
values: { artStyleId: styleId },
|
|
143
|
+
...(expectedVersion === undefined ? {} : { expectedVersion }),
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
listVoices() {
|
|
147
|
+
return this.client.request('/api/asset-hub/voices');
|
|
148
|
+
}
|
|
149
|
+
uploadVoice(formData) {
|
|
150
|
+
return this.client.request('/api/asset-hub/voices/upload', { method: 'POST', body: formData });
|
|
151
|
+
}
|
|
152
|
+
bindCharacterVoice(projectId, characterId, globalVoiceId) {
|
|
153
|
+
return this.client.request(`/api/novel-promotion/${projectId}/character/${characterId}/voice`, {
|
|
154
|
+
method: 'PATCH', body: { globalVoiceId },
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
characterVoice(projectId, characterId) {
|
|
158
|
+
return this.client.request(`/api/novel-promotion/${projectId}/character/${characterId}/voice`);
|
|
159
|
+
}
|
|
122
160
|
listFolders(projectId, query = '') {
|
|
123
161
|
// 树形目录列表;预设 5 项 + 用户子目录(含 deletedAt / purgeInDays / referencedBy)
|
|
124
162
|
return this.client.request(`/api/projects/${projectId}/canvas-folders${query ? `?${query}` : ''}`);
|
package/package.json
CHANGED
|
@@ -29,11 +29,12 @@ description: Use when an agent needs to inspect or operate VVICAT infinite-canva
|
|
|
29
29
|
| --- | --- | --- |
|
|
30
30
|
| 原创短剧、小说改编、来源材料、市场灵感 | `references/short-drama/operations/short-drama-skill-index.md`、`references/short-drama/creation/analyze-drama-source.md`、`references/short-drama/creation/define-drama-brief.md` | 依次运行 `drama-source-analysis → drama-brief`;来源覆盖、改编边界或用户决定缺失时停在 `open_questions`,不写剧本 |
|
|
31
31
|
| 故事设定、人物弧线、分集规划 | `references/short-drama/creation/design-drama-bible.md`、`references/short-drama/creation/outline-drama-series.md` | 先确认 Brief,再运行 `drama-bible → drama-outline`;未确认集数、时长或结局不得自动补齐 |
|
|
32
|
-
| 单集剧本、来源片段转剧本、剧本润色 | `references/short-drama/creation/write-drama-episode.md`、`references/short-drama/review/review-drama-script.md`、`references/short-drama/creation/humanizer.md` |
|
|
33
|
-
|
|
|
32
|
+
| 单集剧本、来源片段转剧本、剧本润色 | `references/short-drama/creation/write-drama-episode.md`、`references/short-drama/review/review-drama-script.md`、`references/short-drama/creation/humanizer.md` | 已有专业剧本不得重复执行 `novel-to-script`;改编先保留原文事实和对白,再做人味优化;必须回到 `drama-script-review`,P0/P1 未清零不得进入导演阶段 |
|
|
33
|
+
| 人物、场景、道具、音色和资产版本 | `references/short-drama/assets/` 下对应资产文档、`references/short-drama/assets/plan-drama-assets.md` | 运行资产分析后再生成;角色档案确认且存在对白/旁白时询问音色,使用 `canvas voice list|bind|upload`;缺证据、错版、stale 或身份歧义时标记 blocked |
|
|
34
34
|
| 导演手册、摄影、表演、分镜和镜头变体 | `references/short-drama/creation/write-drama-director-book.md`、`references/short-drama/storyboard/build-drama-storyboard.md`、`references/short-drama/director-composition.md` | `drama-director-book → storyboard-breakdown → selected storyboard image type`;由 Agent 按镜头目标选择单图、时间故事版、镜头分镜板或专项板,读取构图受控词表,证据不足时降级构图,不补陈设或天气 |
|
|
35
35
|
| 逐镜制作、跨镜连续性、previous-tail | `references/short-drama/storyboard/plan-drama-production.md`、`references/short-drama/storyboard/plan-shot-continuity.md` | 先生成 `drama-production-plan`,再生成 `drama-continuity-plan`;只有前镜已审核且选版时允许 previous-tail |
|
|
36
|
-
|
|
|
36
|
+
| 自定义画风、画风预览和项目绑定 | `references/short-drama/assets/modules/generate-drama-art-style/`、`references/short-drama/usage-guide.md` | 生成完整画风合同和预览,用户确认后再用 `art-style bind` 绑定;未确认不得生成资产 |
|
|
37
|
+
| 视频提示词、H3、Seedance、原生音频 | `references/video-prompt-spec.md`、`references/video-model-routing.md`、`references/short-drama/generation/write-drama-video-prompts.md`、`references/h3-video-delivery.md` | 先编译平台中立镜头事实,再按实时 Provider schema 选择协议并审计后提交视频 |
|
|
37
38
|
| 背景音乐、主题曲、纯音乐 | `references/short-drama/generation/design-drama-audio.md`、`references/short-drama/starrouter-provider.md` | 使用画布 `music-generate` 和实时音频模型目录;有自定义歌词时不得同时开启纯音乐;生成后试听并回读 AUDIO 资产版本 |
|
|
38
39
|
| 去字幕、参考视频复刻、深度视频 | `references/hypit/playbooks/formats/reference-recreation-canvas.md`、`references/short-drama/generation/transform-drama-media.md` | 使用 `recreation-subtitle-remove → recreation-depth-preprocess/depth-video → video-generate`;不得把参考板或字幕带入成片 |
|
|
39
40
|
| 参考对白转写、剪辑、字幕和多图模板 | `references/hypit/SKILL.md`、`references/hypit/environment/local-tools.md`、`references/short-drama/editing-workflow.md` | WAV 音频使用 `recreation-transcribe`(默认 StarRouter `whisper-1`);剪辑和字幕进入现有编辑器/Remotion 时间线;多图合板使用 `grid` 或分镜宫格节点 |
|
|
@@ -56,7 +57,7 @@ description: Use when an agent needs to inspect or operate VVICAT infinite-canva
|
|
|
56
57
|
|
|
57
58
|
1. **预检与恢复**:运行 `preflight --json`;更新后重跑。再读取 `config get`、目标项目、`canvas documents` 和 `canvas workflow status`。只有历史项目需要新增媒体节点时才读取实时 `canvas node types`。`skill status --target codex` 非 current 时先询问再更新,禁止强制覆盖用户修改。
|
|
58
59
|
2. **项目语言门禁**:新建项目前必须从用户确认交付语言,并用 `project create --language <BCP47>` 写入;界面 `--locale` 不能代替内容语言。创建后回读 `project get` 与 `canvas settings get`,确认两者语言一致且不可修改。项目语言约束剧本、分镜、台词、配音、画面文字和字幕;验收须区分剧情内容与制作信息:项目语言允许正常外语穿插和规范英文摄影术语,不按字符种类判死;道具文字和剧情内界面遵循来源原文。存在实际语言合同冲突时停止并说明。
|
|
59
|
-
3. **项目配置门禁**:读取 `canvas settings get`,展示 `currentValue`、`effectiveValue`、`source`、建议值和实时 options。确认 `aspectRatio`、`artStyle`、`visualBible`、`storyboardImageType`、`outputLanguage`、`analysisModel`、`imageModel`、`imageResolution`、`imageQuality` 和 `videoResolution`,以及 `editModel`、`videoModel`、`videoPromptType`、`audioModel`、`musicModel`;`$ART_STYLE_ID` 必须解析实时 `option.value
|
|
60
|
+
3. **项目配置门禁**:读取 `canvas settings get`,展示 `currentValue`、`effectiveValue`、`source`、建议值和实时 options。确认 `aspectRatio`、`artStyle`、`visualBible`、`storyboardImageType`、`outputLanguage`、`analysisModel`、`imageModel`、`imageResolution`、`imageQuality` 和 `videoResolution`,以及 `editModel`、`videoModel`、`videoPromptType`、`audioModel`、`musicModel`;`$ART_STYLE_ID` 必须解析实时 `option.value`。自定义画风必须先生成完整配置和预览,用户确认后才允许绑定;使用 `--file settings.json` 原子写入并携带 `expectedVersion`,回读一致前不得创建或运行付费节点。节点确需不同参数时才按实时能力覆盖。
|
|
60
61
|
4. **Hypit 文档和目标集**:先读取 `canvas workflow status`,按当前阶段和条件模块生成 JSON;使用 `canvas document save` 写入 `hypit.<module>.v1`,用 `--input` 固化上游选版。审核必须另存为 `hypit.review.v1` 并绑定被审核版本。无需先调用固定节点或生成模型,不要创建没有版本的文档空壳。已有 Hypit 文档直接复用;历史 `screenplay-resource` 或结构化资源先迁移成 Hypit 文档,再继续流程。需要创作微短剧时,按需读取 `references/short-drama/`,再读取 `references/humanizer/` 去除 AI 味;不得改动已经确认的剧情事实,润色后回到短剧 reference 复核。确认目标集数后,只生产该集实际需要的资产。
|
|
61
62
|
5. **资产门禁**:先完成人物、场景、道具及其派生版本,展示真实预览并确认 selected version。执行资产—剧情匹配审计;缺失、多余、错版、stale、错边未清零时拆镜前门禁失败。
|
|
62
63
|
6. **拆镜和滚动生成**:先执行 [拆镜模式与交付范围](references/assets-and-storyboard.md#拆镜模式与交付范围) 和 [语言匹配门禁](references/assets-and-storyboard.md#拆镜语言匹配门禁)。短剧新建默认专业拆镜,显式设置 `sourceFormat` 与 `storyboardPipelineVersion: 2`,不自动新增首帧节点。Agent 先读取每镜 `storyboard_strategy`,按制作目标选择单幅分镜图、时间故事版、镜头分镜板、专项板或 Blender;已选择一种板型时不得自动补生成另一种。只审核实际生成的板型,并让视频提示词只引用真实存在且已审核的分镜资产。用户的停止阶段优先于 [滚动异步调度](references/async-pipeline.md):仅分镜图任务完成实际选择的板型并通过审核后停止,不运行视频提示词和视频。允许视频时,已就绪镜头滚动提交,单镜失败不阻塞其他镜头。
|
|
@@ -76,4 +77,4 @@ description: Use when an agent needs to inspect or operate VVICAT infinite-canva
|
|
|
76
77
|
|
|
77
78
|
不把密码、Token 或 API Key 写入参数、日志、Skill 或仓库。删除项目、覆盖画布、切换模型、重新付费生成或覆盖用户选版须在用户已授权的目标和范围内;只有超出既有授权才补充确认。临时项目在所有结束路径清理;既有项目不得擅自删除。
|
|
78
79
|
|
|
79
|
-
任务成功只代表服务端完成,不代表创作合格。每批产物都要回读任务、画布、连线、资产和最终配置并查看真实预览;只有阶段门禁、逐镜四项验收和最终成片验收全部通过,才可交付。
|
|
80
|
+
任务成功只代表服务端完成,不代表创作合格。每批产物都要回读任务、画布、连线、资产和最终配置并查看真实预览;只有阶段门禁、逐镜四项验收和最终成片验收全部通过,才可交付。
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# 视频模型路由
|
|
2
|
+
|
|
3
|
+
1. 模型合同优先于 LibTV 风格偏好。
|
|
4
|
+
2. MiniMax H3 使用 H3 的 Ref2VA 六段字段、稳定主体标签、说话者 ID 和原生音频合同。
|
|
5
|
+
3. Seedance 使用 `seedance2_video` 的中文 `full-reference` 结构、真实素材顺序和实时素材限制。
|
|
6
|
+
4. 未确认模型协议时停止,不把通用文本冒充平台专用提示词。
|
|
7
|
+
|
|
8
|
+
音色绑定后,角色长期档案保留 `voice_identity`。模型支持参考音频时,把已选全局音色作为 `audio_reference`;H3 仍使用原生音频,不运行外部 TTS 覆盖。模型不支持参考音频时只写稳定声线描述,并在结果中保留能力限制。
|
|
9
|
+
|
|
10
|
+
H3 与 Seedance 不得混用字段或引用语法。最终编译前必须读取实时节点 schema、项目有效 `artStyle`、画幅、时长和音频能力。
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# 项目通用视频提示词规范
|
|
2
|
+
|
|
3
|
+
LibTV 语料只用于提炼可执行的内容维度,不直接复制其占位符或平台字段。先写平台中立的镜头事实,再由 H3 或 Seedance 编译器生成最终提示词。
|
|
4
|
+
|
|
5
|
+
## 必写维度
|
|
6
|
+
|
|
7
|
+
- 主体身份和每个参考素材的用途;
|
|
8
|
+
- 起始状态、按时间排序的动作、结束状态;
|
|
9
|
+
- 人物之间的站位、视线、距离和屏幕方向;
|
|
10
|
+
- 景别、机位、构图、镜头方向和运镜;
|
|
11
|
+
- 表演、光影、材质和接触物理;
|
|
12
|
+
- 对白、旁白、环境声、动作声和音乐策略;
|
|
13
|
+
- 跨镜人物、服装、道具、伤口、光线和声音连续性;
|
|
14
|
+
- 最小必要的禁止项。
|
|
15
|
+
|
|
16
|
+
## 三档复杂度
|
|
17
|
+
|
|
18
|
+
- 单主体单动作:一个动作链、一个镜头、一个明确结果。
|
|
19
|
+
- 多主体互动:编号主体、空间关系、交接顺序、反应和镜头覆盖。
|
|
20
|
+
- 连续剧情或大场面:按镜头拆分,写时间点、运动结果、声音桥和首尾状态。
|
|
21
|
+
|
|
22
|
+
## 编译前清洗
|
|
23
|
+
|
|
24
|
+
- 解析 `{{Image N}}`、`{{Mixed N}}` 为真实资产版本和用途;未解析变量不得提交。
|
|
25
|
+
- 故事板、宫格和分镜板只作为构图与动作顺序参考,禁止生成成片中的格线、纸张、编号、字幕或 UI。
|
|
26
|
+
- 删除无法验证的质量词和互相冲突的正负约束。
|
|
27
|
+
- 一个镜头只保留一个叙事主动作;多人动作归属不清时先拆镜。
|
|
28
|
+
- `art_style` 必须来自项目当前完整画风合同,不能只传画风名称。
|
|
29
|
+
|
|
30
|
+
## 质量门禁
|
|
31
|
+
|
|
32
|
+
主体、素材用途、动作顺序、镜头可见性、空间关系、光线连续性、声音归属和平台 schema 任一缺失,都不得提交付费视频任务。
|