@sogni-ai/sogni-intelligence-client 3.27.9 → 3.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context/index.d.ts.map +1 -1
- package/dist/context/index.js +1 -0
- package/dist/context/index.js.map +1 -1
- package/dist/contracts/backboneDurableWorkflow.d.ts +1 -1
- package/dist/contracts/backboneDurableWorkflow.d.ts.map +1 -1
- package/dist/contracts/backboneToolCatalog.d.ts +2 -2
- package/dist/contracts/backboneToolCatalog.d.ts.map +1 -1
- package/dist/contracts/backboneToolCatalog.js +1 -0
- package/dist/contracts/backboneToolCatalog.js.map +1 -1
- package/dist/contracts/data/costEstimation.d.ts.map +1 -1
- package/dist/contracts/data/costEstimation.js +1 -0
- package/dist/contracts/data/costEstimation.js.map +1 -1
- package/dist/contracts/data/gatingPolicies.d.ts.map +1 -1
- package/dist/contracts/data/gatingPolicies.js +1 -0
- package/dist/contracts/data/gatingPolicies.js.map +1 -1
- package/dist/contracts/data/promptContracts.d.ts.map +1 -1
- package/dist/contracts/data/promptContracts.js +44 -0
- package/dist/contracts/data/promptContracts.js.map +1 -1
- package/dist/contracts/data/repairRecipes.d.ts.map +1 -1
- package/dist/contracts/data/repairRecipes.js +1 -0
- package/dist/contracts/data/repairRecipes.js.map +1 -1
- package/dist/contracts/data/toolCostMetadata.d.ts +1 -1
- package/dist/contracts/data/toolCostMetadata.d.ts.map +1 -1
- package/dist/contracts/data/toolCostMetadata.js +7 -0
- package/dist/contracts/data/toolCostMetadata.js.map +1 -1
- package/dist/media/index.d.ts +1 -0
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +1 -0
- package/dist/media/index.js.map +1 -1
- package/dist/media/speechSettings.d.ts +107 -0
- package/dist/media/speechSettings.d.ts.map +1 -0
- package/dist/media/speechSettings.js +163 -0
- package/dist/media/speechSettings.js.map +1 -0
- package/dist/openai-tools/_manifests.generated.d.ts.map +1 -1
- package/dist/openai-tools/_manifests.generated.js +83 -0
- package/dist/openai-tools/_manifests.generated.js.map +1 -1
- package/dist/openai-tools/generation-tools.json +83 -0
- package/dist/public-skill-runtime/index.d.ts +1 -0
- package/dist/public-skill-runtime/index.d.ts.map +1 -1
- package/dist/public-skill-runtime/index.js +8 -1
- package/dist/public-skill-runtime/index.js.map +1 -1
- package/dist/schemas/tools/generate_speech.schema.json +81 -0
- package/dist/tools/definitions/generate-speech/definition.d.ts +3 -0
- package/dist/tools/definitions/generate-speech/definition.d.ts.map +1 -0
- package/dist/tools/definitions/generate-speech/definition.js +89 -0
- package/dist/tools/definitions/generate-speech/definition.js.map +1 -0
- package/dist/tools/definitions/index.d.ts +3 -2
- package/dist/tools/definitions/index.d.ts.map +1 -1
- package/dist/tools/definitions/index.js +39 -36
- package/dist/tools/definitions/index.js.map +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +3 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/shared/modelRegistry.d.ts.map +1 -1
- package/dist/tools/shared/modelRegistry.js +5 -0
- package/dist/tools/shared/modelRegistry.js.map +1 -1
- package/dist/workflows/executor.js +1 -1
- package/dist/workflows/executor.js.map +1 -1
- package/dist-esm/context/index.js +1 -0
- package/dist-esm/context/index.js.map +1 -1
- package/dist-esm/contracts/backboneToolCatalog.js +1 -0
- package/dist-esm/contracts/backboneToolCatalog.js.map +1 -1
- package/dist-esm/contracts/data/costEstimation.js +1 -0
- package/dist-esm/contracts/data/costEstimation.js.map +1 -1
- package/dist-esm/contracts/data/gatingPolicies.js +1 -0
- package/dist-esm/contracts/data/gatingPolicies.js.map +1 -1
- package/dist-esm/contracts/data/promptContracts.js +44 -0
- package/dist-esm/contracts/data/promptContracts.js.map +1 -1
- package/dist-esm/contracts/data/repairRecipes.js +1 -0
- package/dist-esm/contracts/data/repairRecipes.js.map +1 -1
- package/dist-esm/contracts/data/toolCostMetadata.js +7 -0
- package/dist-esm/contracts/data/toolCostMetadata.js.map +1 -1
- package/dist-esm/media/index.js +1 -0
- package/dist-esm/media/index.js.map +1 -1
- package/dist-esm/media/speechSettings.js +156 -0
- package/dist-esm/media/speechSettings.js.map +1 -0
- package/dist-esm/openai-tools/_manifests.generated.js +83 -0
- package/dist-esm/openai-tools/_manifests.generated.js.map +1 -1
- package/dist-esm/openai-tools/generation-tools.json +83 -0
- package/dist-esm/public-skill-runtime/index.js +7 -0
- package/dist-esm/public-skill-runtime/index.js.map +1 -1
- package/dist-esm/schemas/tools/generate_speech.schema.json +81 -0
- package/dist-esm/tools/definitions/generate-speech/definition.js +86 -0
- package/dist-esm/tools/definitions/generate-speech/definition.js.map +1 -0
- package/dist-esm/tools/definitions/index.js +3 -1
- package/dist-esm/tools/definitions/index.js.map +1 -1
- package/dist-esm/tools/index.js +1 -1
- package/dist-esm/tools/index.js.map +1 -1
- package/dist-esm/tools/shared/modelRegistry.js +5 -0
- package/dist-esm/tools/shared/modelRegistry.js.map +1 -1
- package/dist-esm/workflows/executor.js +1 -1
- package/dist-esm/workflows/executor.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sogni.ai/creative-agent/2026-09-07.1/tools/generate_speech.schema.json",
|
|
4
|
+
"title": "generate_speech arguments",
|
|
5
|
+
"schemaVersion": "2026-09-07.1",
|
|
6
|
+
"description": "Turn written words into spoken audio. Use when the user wants something read aloud, a narration, a voiceover, a line of dialogue, an audiobook passage, or a voice cloned from a recording they uploaded. This tool speaks text; it does not compose music — use generate_music for songs and instrumentals.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"prompt": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "The exact words to be spoken, verbatim. This is NOT a description of the audio: whatever is written here is read aloud character for character. \"a calm woman reading the news\" would be spoken as those seven words — put that in voiceDescription instead and write the actual news copy here.\n\nLITERAL PROMPT OVERRIDE: If the user explicitly says not to modify the prompt, or to use it exactly/verbatim/as-is, copy the identified prompt text verbatim instead of applying these construction rules unless a hard requirement is missing.\n\nPunctuation is prosody: full stops, commas, question marks and ellipses control pauses and intonation, so keep them. Write numbers, dates, currency and abbreviations the way they should be said (\"nineteen eighty-four\", \"twelve dollars fifty\", \"Doctor Chen\") when the plain form would be ambiguous. Line breaks are not pauses; use punctuation.\n\nLimit 4096 characters, roughly five minutes of speech. A longer script is refused rather than cut off mid-sentence, so split it across several calls at a natural break.",
|
|
13
|
+
"maxLength": 4096
|
|
14
|
+
},
|
|
15
|
+
"model": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"voice",
|
|
19
|
+
"clone",
|
|
20
|
+
"design"
|
|
21
|
+
],
|
|
22
|
+
"description": "Which speech model to use, chosen by what the user gave you. \"voice\" (default): one of nine studio voices, optionally restyled by voiceDescription — the right choice for narration, voiceover and dialogue when no particular person is being imitated. \"clone\": reproduces a specific voice from a recording the user uploaded; requires voiceSourceIndex. \"design\": invents a speaker who does not exist from a written description; requires voiceDescription and takes no recording. Pick \"clone\" whenever the user uploads a voice clip and asks for that person, and \"design\" when they describe a speaker instead of choosing one."
|
|
23
|
+
},
|
|
24
|
+
"voice": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": [
|
|
27
|
+
"serena",
|
|
28
|
+
"vivian",
|
|
29
|
+
"uncle_fu",
|
|
30
|
+
"ryan",
|
|
31
|
+
"aiden",
|
|
32
|
+
"ono_anna",
|
|
33
|
+
"sohee",
|
|
34
|
+
"eric",
|
|
35
|
+
"dylan"
|
|
36
|
+
],
|
|
37
|
+
"description": "Studio voice to speak in. Only used when model=\"voice\". Female: serena (English), vivian (Chinese), ono_anna (Japanese), sohee (Korean). Male: ryan, aiden, eric, dylan (English), uncle_fu (older, Chinese). Every voice speaks all supported languages — the note above describes the accent it carries, not a limit on what it can read. Default: serena."
|
|
38
|
+
},
|
|
39
|
+
"voiceDescription": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "How the line should be delivered, or who should deliver it. With model=\"voice\" this restyles the chosen voice without changing who it is: \"whispering, close to the microphone\", \"furious\", \"reading a bedtime story\", \"like a sports commentator\". With model=\"design\" this is required and describes a speaker to invent: age, gender, accent, timbre, pace, mood, and recording space — \"a warm, unhurried narrator in her forties with a faint Scottish lilt, close-miked in a quiet room\". Describe one coherent person; contradictory directions produce a voice that shifts mid-sentence. Not accepted with model=\"clone\", where the recording defines the voice. Limit 512 characters.",
|
|
42
|
+
"maxLength": 512
|
|
43
|
+
},
|
|
44
|
+
"voiceSourceIndex": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"description": "Index of the uploaded audio file holding the voice to clone (0-based, from the uploaded files list, the same numbering other tools use for audio). Required when model=\"clone\" and ignored otherwise. The clip should be three to thirty seconds of one person speaking cleanly, with no music, no second speaker and no heavy room echo; anything past thirty seconds is trimmed.",
|
|
47
|
+
"minimum": 0
|
|
48
|
+
},
|
|
49
|
+
"voiceTranscript": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "The exact words spoken in the uploaded clip, when model=\"clone\". Supplying it lets the model condition on the recording itself rather than on a speaker fingerprint alone, which is markedly closer to the source — set it whenever the user tells you what the clip says or the transcript is otherwise known. Omitting it still produces a recognisable clone, just a looser one. Limit 1024 characters.",
|
|
52
|
+
"maxLength": 1024
|
|
53
|
+
},
|
|
54
|
+
"language": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": [
|
|
57
|
+
"auto",
|
|
58
|
+
"english",
|
|
59
|
+
"chinese",
|
|
60
|
+
"japanese",
|
|
61
|
+
"korean",
|
|
62
|
+
"german",
|
|
63
|
+
"french",
|
|
64
|
+
"russian",
|
|
65
|
+
"portuguese",
|
|
66
|
+
"spanish",
|
|
67
|
+
"italian"
|
|
68
|
+
],
|
|
69
|
+
"description": "Language of the script. Default \"auto\", which infers it from the text and is the only setting that reads a code-switched line correctly. Pin a language only when auto mis-reads a name, a loanword, or a passage that is ambiguous between two of them. Cloning is cross-lingual: an English reference clip can read Japanese in the same voice."
|
|
70
|
+
},
|
|
71
|
+
"numberOfVariations": {
|
|
72
|
+
"type": "number",
|
|
73
|
+
"description": "Number of takes (1-16). Each take is a separate read of the same script with the same voice, differing only in delivery. Use more than 1 when the user asks for options or alternate reads. Default: 1.",
|
|
74
|
+
"minimum": 1,
|
|
75
|
+
"maximum": 16
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"required": [
|
|
79
|
+
"prompt"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-speech/definition.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,eAAO,MAAM,UAAU,EAAE,cA2FxB,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.definition = void 0;
|
|
4
|
+
const promptOverrideMarker_js_1 = require("../../../contracts/promptOverrideMarker.js");
|
|
5
|
+
exports.definition = {
|
|
6
|
+
type: 'function',
|
|
7
|
+
function: {
|
|
8
|
+
name: 'generate_speech',
|
|
9
|
+
description: 'Turn written words into spoken audio. Use when the user wants something read aloud, a narration, a voiceover, a line of dialogue, an audiobook passage, or a voice cloned from a recording they uploaded. This tool speaks text; it does not compose music — use generate_music for songs and instrumentals.',
|
|
10
|
+
parameters: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
prompt: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
description: `The exact words to be spoken, verbatim. This is NOT a description of the audio: whatever is written here is read aloud character for character. "a calm woman reading the news" would be spoken as those seven words — put that in voiceDescription instead and write the actual news copy here.
|
|
16
|
+
|
|
17
|
+
${promptOverrideMarker_js_1.LITERAL_PROMPT_OVERRIDE}
|
|
18
|
+
|
|
19
|
+
Punctuation is prosody: full stops, commas, question marks and ellipses control pauses and intonation, so keep them. Write numbers, dates, currency and abbreviations the way they should be said ("nineteen eighty-four", "twelve dollars fifty", "Doctor Chen") when the plain form would be ambiguous. Line breaks are not pauses; use punctuation.
|
|
20
|
+
|
|
21
|
+
If the user asks for a script rather than supplying one — "read me a poem about the sea", "record an intro for my podcast" — write the words first and pass them here. compose_script is for longer or structured pieces; a sentence or two you can simply write.
|
|
22
|
+
|
|
23
|
+
Limit 4096 characters, roughly five minutes of speech. A longer script is refused rather than cut off mid-sentence, so split it across several calls at a natural break.`,
|
|
24
|
+
maxLength: 4096,
|
|
25
|
+
},
|
|
26
|
+
model: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
enum: ['voice', 'clone', 'design'],
|
|
29
|
+
description: 'Which speech model to use, chosen by what the user gave you. "voice" (default): one of nine studio voices, optionally restyled by voiceDescription — the right choice for narration, voiceover and dialogue when no particular person is being imitated. "clone": reproduces a specific voice from a recording the user uploaded; requires voiceSourceIndex. "design": invents a speaker who does not exist from a written description; requires voiceDescription and takes no recording. Pick "clone" whenever the user uploads a voice clip and asks for that person, and "design" when they describe a speaker instead of choosing one.',
|
|
30
|
+
},
|
|
31
|
+
voice: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
enum: [
|
|
34
|
+
'serena',
|
|
35
|
+
'vivian',
|
|
36
|
+
'uncle_fu',
|
|
37
|
+
'ryan',
|
|
38
|
+
'aiden',
|
|
39
|
+
'ono_anna',
|
|
40
|
+
'sohee',
|
|
41
|
+
'eric',
|
|
42
|
+
'dylan',
|
|
43
|
+
],
|
|
44
|
+
description: 'Studio voice to speak in. Only used when model="voice". Female: serena (English), vivian (Chinese), ono_anna (Japanese), sohee (Korean). Male: ryan, aiden, eric, dylan (English), uncle_fu (older, Chinese). Every voice speaks all supported languages — the note above describes the accent it carries, not a limit on what it can read. Default: serena.',
|
|
45
|
+
},
|
|
46
|
+
voiceDescription: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: 'How the line should be delivered, or who should deliver it. With model="voice" this restyles the chosen voice without changing who it is: "whispering, close to the microphone", "furious", "reading a bedtime story", "like a sports commentator". With model="design" this is required and describes a speaker to invent: age, gender, accent, timbre, pace, mood, and recording space — "a warm, unhurried narrator in her forties with a faint Scottish lilt, close-miked in a quiet room". Describe one coherent person; contradictory directions produce a voice that shifts mid-sentence. Not accepted with model="clone", where the recording defines the voice. Limit 512 characters.',
|
|
49
|
+
maxLength: 512,
|
|
50
|
+
},
|
|
51
|
+
voiceSourceIndex: {
|
|
52
|
+
type: 'number',
|
|
53
|
+
description: 'Index of the uploaded audio file holding the voice to clone (0-based, from the uploaded files list, the same numbering other tools use for audio). Required when model="clone" and ignored otherwise. The clip should be three to thirty seconds of one person speaking cleanly, with no music, no second speaker and no heavy room echo; anything past thirty seconds is trimmed.',
|
|
54
|
+
minimum: 0,
|
|
55
|
+
},
|
|
56
|
+
voiceTranscript: {
|
|
57
|
+
type: 'string',
|
|
58
|
+
description: 'The exact words spoken in the uploaded clip, when model="clone". Supplying it lets the model condition on the recording itself rather than on a speaker fingerprint alone, which is markedly closer to the source — set it whenever the user tells you what the clip says or the transcript is otherwise known. Omitting it still produces a recognisable clone, just a looser one. Limit 1024 characters.',
|
|
59
|
+
maxLength: 1024,
|
|
60
|
+
},
|
|
61
|
+
language: {
|
|
62
|
+
type: 'string',
|
|
63
|
+
enum: [
|
|
64
|
+
'auto',
|
|
65
|
+
'english',
|
|
66
|
+
'chinese',
|
|
67
|
+
'japanese',
|
|
68
|
+
'korean',
|
|
69
|
+
'german',
|
|
70
|
+
'french',
|
|
71
|
+
'russian',
|
|
72
|
+
'portuguese',
|
|
73
|
+
'spanish',
|
|
74
|
+
'italian',
|
|
75
|
+
],
|
|
76
|
+
description: 'Language of the script. Default "auto", which infers it from the text and is the only setting that reads a code-switched line correctly. Pin a language only when auto mis-reads a name, a loanword, or a passage that is ambiguous between two of them. Cloning is cross-lingual: an English reference clip can read Japanese in the same voice.',
|
|
77
|
+
},
|
|
78
|
+
numberOfVariations: {
|
|
79
|
+
type: 'number',
|
|
80
|
+
description: 'Number of takes (1-16). Each take is a separate read of the same script with the same voice, differing only in delivery. Use more than 1 when the user asks for options or alternate reads. Default: 1.',
|
|
81
|
+
minimum: 1,
|
|
82
|
+
maximum: 16,
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
required: ['prompt'],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-speech/definition.ts"],"names":[],"mappings":";;;AAUA,wFAAqF;AAExE,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,iBAAiB;QACvB,WAAW,EACT,8SAA8S;QAChT,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,iDAAuB;;;;;;yKAMgJ;oBAC/J,SAAS,EAAE,IAAI;iBAChB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC;oBAClC,WAAW,EACT,4mBAA4mB;iBAC/mB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,QAAQ;wBACR,QAAQ;wBACR,UAAU;wBACV,MAAM;wBACN,OAAO;wBACP,UAAU;wBACV,OAAO;wBACP,MAAM;wBACN,OAAO;qBACR;oBACD,WAAW,EACT,8VAA8V;iBACjW;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,gqBAAgqB;oBAClqB,SAAS,EAAE,GAAG;iBACf;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,oXAAoX;oBACtX,OAAO,EAAE,CAAC;iBACX;gBACD,eAAe,EAAE;oBACf,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,4YAA4Y;oBAC9Y,SAAS,EAAE,IAAI;iBAChB;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,MAAM;wBACN,SAAS;wBACT,SAAS;wBACT,UAAU;wBACV,QAAQ;wBACR,QAAQ;wBACR,QAAQ;wBACR,SAAS;wBACT,YAAY;wBACZ,SAAS;wBACT,SAAS;qBACV;oBACD,WAAW,EACT,mVAAmV;iBACtV;gBACD,kBAAkB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,yMAAyM;oBAC3M,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,EAAE;iBACZ;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { definition as generateImageDefinition } from './generate-image/definition.js';
|
|
2
2
|
import { definition as generateVideoDefinition } from './generate-video/definition.js';
|
|
3
3
|
import { definition as generateMusicDefinition } from './generate-music/definition.js';
|
|
4
|
+
import { definition as generateSpeechDefinition } from './generate-speech/definition.js';
|
|
4
5
|
import { definition as editImageDefinition } from './edit-image/definition.js';
|
|
5
6
|
import { definition as applyStyleDefinition } from './apply-style/definition.js';
|
|
6
7
|
import { definition as restorePhotoDefinition } from './restore-photo/definition.js';
|
|
@@ -18,8 +19,8 @@ import { definition as replaceVideoSegmentDefinition } from './replace-video-seg
|
|
|
18
19
|
import { definition as overlayVideoDefinition, OVERLAY_POSITIONS } from './overlay-video/definition.js';
|
|
19
20
|
import { definition as addSubtitlesDefinition, SUBTITLE_VERTICAL_POSITIONS } from './add-subtitles/definition.js';
|
|
20
21
|
import type { ToolDefinition } from './types.js';
|
|
21
|
-
export { addSubtitlesDefinition, animatePhotoDefinition, applyStyleDefinition, changeAngleDefinition, danceMontageDefinition, editImageDefinition, extendVideoDefinition, generateImageDefinition, generateMusicDefinition, generateVideoDefinition, orbitVideoDefinition, overlayVideoDefinition, refineResultDefinition, replaceVideoSegmentDefinition, restorePhotoDefinition, upscaleImageDefinition, soundToVideoDefinition, stitchVideoDefinition, videoToVideoDefinition, OVERLAY_POSITIONS, STITCH_TRANSITION_TYPES, SUBTITLE_VERTICAL_POSITIONS, };
|
|
22
|
-
export declare const generationToolDefinitions: readonly [ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition];
|
|
22
|
+
export { addSubtitlesDefinition, animatePhotoDefinition, applyStyleDefinition, changeAngleDefinition, danceMontageDefinition, editImageDefinition, extendVideoDefinition, generateImageDefinition, generateMusicDefinition, generateSpeechDefinition, generateVideoDefinition, orbitVideoDefinition, overlayVideoDefinition, refineResultDefinition, replaceVideoSegmentDefinition, restorePhotoDefinition, upscaleImageDefinition, soundToVideoDefinition, stitchVideoDefinition, videoToVideoDefinition, OVERLAY_POSITIONS, STITCH_TRANSITION_TYPES, SUBTITLE_VERTICAL_POSITIONS, };
|
|
23
|
+
export declare const generationToolDefinitions: readonly [ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition];
|
|
23
24
|
export { DANCE_PRESETS, resolveDancePresetForRequest } from './dance-montage/dances.js';
|
|
24
25
|
export type { DancePreset } from './dance-montage/dances.js';
|
|
25
26
|
export type { ToolDefinition } from './types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/definitions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EAAE,UAAU,IAAI,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EAAE,UAAU,IAAI,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,UAAU,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,UAAU,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,UAAU,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,UAAU,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,UAAU,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,UAAU,IAAI,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EACL,UAAU,IAAI,qBAAqB,EACnC,uBAAuB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,UAAU,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,UAAU,IAAI,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAE,UAAU,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,UAAU,IAAI,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACpG,OAAO,EACL,UAAU,IAAI,sBAAsB,EACpC,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,UAAU,IAAI,sBAAsB,EACpC,2BAA2B,EAC5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,6BAA6B,EAC7B,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,uBAAuB,EACvB,2BAA2B,GAC5B,CAAC;AAEF,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/definitions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EAAE,UAAU,IAAI,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EAAE,UAAU,IAAI,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EAAE,UAAU,IAAI,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,UAAU,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,UAAU,IAAI,sBAAsB,EAAE,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2BAA2B,GAC5B,CAAC;AAEF,eAAO,MAAM,yBAAyB,2UAqBQ,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AACxF,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,47 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveDancePresetForRequest = exports.DANCE_PRESETS = exports.generationToolDefinitions = exports.SUBTITLE_VERTICAL_POSITIONS = exports.STITCH_TRANSITION_TYPES = exports.OVERLAY_POSITIONS = exports.videoToVideoDefinition = exports.stitchVideoDefinition = exports.soundToVideoDefinition = exports.upscaleImageDefinition = exports.restorePhotoDefinition = exports.replaceVideoSegmentDefinition = exports.refineResultDefinition = exports.overlayVideoDefinition = exports.orbitVideoDefinition = exports.generateVideoDefinition = exports.generateMusicDefinition = exports.generateImageDefinition = exports.extendVideoDefinition = exports.editImageDefinition = exports.danceMontageDefinition = exports.changeAngleDefinition = exports.applyStyleDefinition = exports.animatePhotoDefinition = exports.addSubtitlesDefinition = void 0;
|
|
3
|
+
exports.resolveDancePresetForRequest = exports.DANCE_PRESETS = exports.generationToolDefinitions = exports.SUBTITLE_VERTICAL_POSITIONS = exports.STITCH_TRANSITION_TYPES = exports.OVERLAY_POSITIONS = exports.videoToVideoDefinition = exports.stitchVideoDefinition = exports.soundToVideoDefinition = exports.upscaleImageDefinition = exports.restorePhotoDefinition = exports.replaceVideoSegmentDefinition = exports.refineResultDefinition = exports.overlayVideoDefinition = exports.orbitVideoDefinition = exports.generateVideoDefinition = exports.generateSpeechDefinition = exports.generateMusicDefinition = exports.generateImageDefinition = exports.extendVideoDefinition = exports.editImageDefinition = exports.danceMontageDefinition = exports.changeAngleDefinition = exports.applyStyleDefinition = exports.animatePhotoDefinition = exports.addSubtitlesDefinition = void 0;
|
|
4
4
|
const definition_js_1 = require("./generate-image/definition.js");
|
|
5
5
|
Object.defineProperty(exports, "generateImageDefinition", { enumerable: true, get: function () { return definition_js_1.definition; } });
|
|
6
6
|
const definition_js_2 = require("./generate-video/definition.js");
|
|
7
7
|
Object.defineProperty(exports, "generateVideoDefinition", { enumerable: true, get: function () { return definition_js_2.definition; } });
|
|
8
8
|
const definition_js_3 = require("./generate-music/definition.js");
|
|
9
9
|
Object.defineProperty(exports, "generateMusicDefinition", { enumerable: true, get: function () { return definition_js_3.definition; } });
|
|
10
|
-
const definition_js_4 = require("./
|
|
11
|
-
Object.defineProperty(exports, "
|
|
12
|
-
const definition_js_5 = require("./
|
|
13
|
-
Object.defineProperty(exports, "
|
|
14
|
-
const definition_js_6 = require("./
|
|
15
|
-
Object.defineProperty(exports, "
|
|
16
|
-
const definition_js_7 = require("./
|
|
17
|
-
Object.defineProperty(exports, "
|
|
18
|
-
const definition_js_8 = require("./
|
|
19
|
-
Object.defineProperty(exports, "
|
|
20
|
-
const definition_js_9 = require("./
|
|
21
|
-
Object.defineProperty(exports, "
|
|
22
|
-
const definition_js_10 = require("./
|
|
23
|
-
Object.defineProperty(exports, "
|
|
24
|
-
const definition_js_11 = require("./
|
|
25
|
-
Object.defineProperty(exports, "
|
|
26
|
-
const definition_js_12 = require("./
|
|
27
|
-
Object.defineProperty(exports, "
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Object.defineProperty(exports, "
|
|
31
|
-
const definition_js_14 = require("./
|
|
32
|
-
Object.defineProperty(exports, "
|
|
33
|
-
const definition_js_15 = require("./
|
|
34
|
-
Object.defineProperty(exports, "
|
|
35
|
-
const definition_js_16 = require("./
|
|
36
|
-
Object.defineProperty(exports, "
|
|
37
|
-
const definition_js_17 = require("./
|
|
38
|
-
Object.defineProperty(exports, "
|
|
39
|
-
const definition_js_18 = require("./
|
|
40
|
-
Object.defineProperty(exports, "
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Object.defineProperty(exports, "
|
|
44
|
-
|
|
10
|
+
const definition_js_4 = require("./generate-speech/definition.js");
|
|
11
|
+
Object.defineProperty(exports, "generateSpeechDefinition", { enumerable: true, get: function () { return definition_js_4.definition; } });
|
|
12
|
+
const definition_js_5 = require("./edit-image/definition.js");
|
|
13
|
+
Object.defineProperty(exports, "editImageDefinition", { enumerable: true, get: function () { return definition_js_5.definition; } });
|
|
14
|
+
const definition_js_6 = require("./apply-style/definition.js");
|
|
15
|
+
Object.defineProperty(exports, "applyStyleDefinition", { enumerable: true, get: function () { return definition_js_6.definition; } });
|
|
16
|
+
const definition_js_7 = require("./restore-photo/definition.js");
|
|
17
|
+
Object.defineProperty(exports, "restorePhotoDefinition", { enumerable: true, get: function () { return definition_js_7.definition; } });
|
|
18
|
+
const definition_js_8 = require("./upscale-image/definition.js");
|
|
19
|
+
Object.defineProperty(exports, "upscaleImageDefinition", { enumerable: true, get: function () { return definition_js_8.definition; } });
|
|
20
|
+
const definition_js_9 = require("./refine-result/definition.js");
|
|
21
|
+
Object.defineProperty(exports, "refineResultDefinition", { enumerable: true, get: function () { return definition_js_9.definition; } });
|
|
22
|
+
const definition_js_10 = require("./animate-photo/definition.js");
|
|
23
|
+
Object.defineProperty(exports, "animatePhotoDefinition", { enumerable: true, get: function () { return definition_js_10.definition; } });
|
|
24
|
+
const definition_js_11 = require("./change-angle/definition.js");
|
|
25
|
+
Object.defineProperty(exports, "changeAngleDefinition", { enumerable: true, get: function () { return definition_js_11.definition; } });
|
|
26
|
+
const definition_js_12 = require("./video-to-video/definition.js");
|
|
27
|
+
Object.defineProperty(exports, "videoToVideoDefinition", { enumerable: true, get: function () { return definition_js_12.definition; } });
|
|
28
|
+
const definition_js_13 = require("./stitch-video/definition.js");
|
|
29
|
+
Object.defineProperty(exports, "stitchVideoDefinition", { enumerable: true, get: function () { return definition_js_13.definition; } });
|
|
30
|
+
Object.defineProperty(exports, "STITCH_TRANSITION_TYPES", { enumerable: true, get: function () { return definition_js_13.STITCH_TRANSITION_TYPES; } });
|
|
31
|
+
const definition_js_14 = require("./orbit-video/definition.js");
|
|
32
|
+
Object.defineProperty(exports, "orbitVideoDefinition", { enumerable: true, get: function () { return definition_js_14.definition; } });
|
|
33
|
+
const definition_js_15 = require("./dance-montage/definition.js");
|
|
34
|
+
Object.defineProperty(exports, "danceMontageDefinition", { enumerable: true, get: function () { return definition_js_15.definition; } });
|
|
35
|
+
const definition_js_16 = require("./sound-to-video/definition.js");
|
|
36
|
+
Object.defineProperty(exports, "soundToVideoDefinition", { enumerable: true, get: function () { return definition_js_16.definition; } });
|
|
37
|
+
const definition_js_17 = require("./extend-video/definition.js");
|
|
38
|
+
Object.defineProperty(exports, "extendVideoDefinition", { enumerable: true, get: function () { return definition_js_17.definition; } });
|
|
39
|
+
const definition_js_18 = require("./replace-video-segment/definition.js");
|
|
40
|
+
Object.defineProperty(exports, "replaceVideoSegmentDefinition", { enumerable: true, get: function () { return definition_js_18.definition; } });
|
|
41
|
+
const definition_js_19 = require("./overlay-video/definition.js");
|
|
42
|
+
Object.defineProperty(exports, "overlayVideoDefinition", { enumerable: true, get: function () { return definition_js_19.definition; } });
|
|
43
|
+
Object.defineProperty(exports, "OVERLAY_POSITIONS", { enumerable: true, get: function () { return definition_js_19.OVERLAY_POSITIONS; } });
|
|
44
|
+
const definition_js_20 = require("./add-subtitles/definition.js");
|
|
45
|
+
Object.defineProperty(exports, "addSubtitlesDefinition", { enumerable: true, get: function () { return definition_js_20.definition; } });
|
|
46
|
+
Object.defineProperty(exports, "SUBTITLE_VERTICAL_POSITIONS", { enumerable: true, get: function () { return definition_js_20.SUBTITLE_VERTICAL_POSITIONS; } });
|
|
45
47
|
exports.generationToolDefinitions = [
|
|
46
48
|
definition_js_1.definition,
|
|
47
49
|
definition_js_2.definition,
|
|
@@ -62,6 +64,7 @@ exports.generationToolDefinitions = [
|
|
|
62
64
|
definition_js_17.definition,
|
|
63
65
|
definition_js_18.definition,
|
|
64
66
|
definition_js_19.definition,
|
|
67
|
+
definition_js_20.definition,
|
|
65
68
|
];
|
|
66
69
|
var dances_js_1 = require("./dance-montage/dances.js");
|
|
67
70
|
Object.defineProperty(exports, "DANCE_PRESETS", { enumerable: true, get: function () { return dances_js_1.DANCE_PRESETS; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/definitions/index.ts"],"names":[],"mappings":";;;AAAA,kEAAuF;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/definitions/index.ts"],"names":[],"mappings":";;;AAAA,kEAAuF;AAuCrF,wGAvCqB,0BAAuB,OAuCrB;AAtCzB,kEAAuF;AAyCrF,wGAzCqB,0BAAuB,OAyCrB;AAxCzB,kEAAuF;AAsCrF,wGAtCqB,0BAAuB,OAsCrB;AArCzB,mEAAyF;AAsCvF,yGAtCqB,0BAAwB,OAsCrB;AArC1B,8DAA+E;AAiC7E,oGAjCqB,0BAAmB,OAiCrB;AAhCrB,+DAAiF;AA6B/E,qGA7BqB,0BAAoB,OA6BrB;AA5BtB,iEAAqF;AAyCnF,uGAzCqB,0BAAsB,OAyCrB;AAxCxB,iEAAqF;AAyCnF,uGAzCqB,0BAAsB,OAyCrB;AAxCxB,iEAAqF;AAqCnF,uGArCqB,0BAAsB,OAqCrB;AApCxB,kEAAqF;AAwBnF,uGAxBqB,2BAAsB,OAwBrB;AAvBxB,iEAAmF;AAyBjF,sGAzBqB,2BAAqB,OAyBrB;AAxBvB,mEAAsF;AAwCpF,uGAxCqB,2BAAsB,OAwCrB;AAvCxB,iEAGsC;AAmCpC,sGArCc,2BAAqB,OAqCd;AAGrB,wGAvCA,wCAAuB,OAuCA;AArCzB,gEAAiF;AA2B/E,qGA3BqB,2BAAoB,OA2BrB;AA1BtB,kEAAqF;AAmBnF,uGAnBqB,2BAAsB,OAmBrB;AAlBxB,mEAAsF;AA+BpF,uGA/BqB,2BAAsB,OA+BrB;AA9BxB,iEAAmF;AAmBjF,sGAnBqB,2BAAqB,OAmBrB;AAlBvB,0EAAoG;AA0BlG,8GA1BqB,2BAA6B,OA0BrB;AAzB/B,kEAGuC;AAoBrC,uGAtBc,2BAAsB,OAsBd;AAQtB,kGA7BA,kCAAiB,OA6BA;AA3BnB,kEAGuC;AAIrC,uGANc,2BAAsB,OAMd;AAsBtB,4GA3BA,4CAA2B,OA2BA;AAGhB,QAAA,yBAAyB,GAAG;IACvC,0BAAuB;IACvB,0BAAuB;IACvB,0BAAuB;IACvB,0BAAwB;IACxB,0BAAmB;IACnB,0BAAoB;IACpB,0BAAsB;IACtB,0BAAsB;IACtB,0BAAsB;IACtB,2BAAsB;IACtB,2BAAqB;IACrB,2BAAsB;IACtB,2BAAqB;IACrB,2BAAoB;IACpB,2BAAsB;IACtB,2BAAsB;IACtB,2BAAqB;IACrB,2BAA6B;IAC7B,2BAAsB;IACtB,2BAAsB;CACsB,CAAC;AAE/C,uDAAwF;AAA/E,0GAAA,aAAa,OAAA;AAAE,yHAAA,4BAA4B,OAAA"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export * from './shared/imageEncoding.js';
|
|
|
19
19
|
export * from './shared/slotFailureSummary.js';
|
|
20
20
|
export * from './shared/visionDescriptionCache.js';
|
|
21
21
|
export * from './shared/downloadFilename.js';
|
|
22
|
-
export { addSubtitlesDefinition, animatePhotoDefinition, applyStyleDefinition, changeAngleDefinition, danceMontageDefinition, editImageDefinition, extendVideoDefinition, generateImageDefinition, generateMusicDefinition, generateVideoDefinition, generationToolDefinitions, orbitVideoDefinition, overlayVideoDefinition, refineResultDefinition, replaceVideoSegmentDefinition, restorePhotoDefinition, upscaleImageDefinition, soundToVideoDefinition, stitchVideoDefinition, videoToVideoDefinition, OVERLAY_POSITIONS, STITCH_TRANSITION_TYPES, SUBTITLE_VERTICAL_POSITIONS, DANCE_PRESETS, resolveDancePresetForRequest, } from './definitions/index.js';
|
|
22
|
+
export { addSubtitlesDefinition, animatePhotoDefinition, applyStyleDefinition, changeAngleDefinition, danceMontageDefinition, editImageDefinition, extendVideoDefinition, generateImageDefinition, generateMusicDefinition, generateSpeechDefinition, generateVideoDefinition, generationToolDefinitions, orbitVideoDefinition, overlayVideoDefinition, refineResultDefinition, replaceVideoSegmentDefinition, restorePhotoDefinition, upscaleImageDefinition, soundToVideoDefinition, stitchVideoDefinition, videoToVideoDefinition, OVERLAY_POSITIONS, STITCH_TRANSITION_TYPES, SUBTITLE_VERTICAL_POSITIONS, DANCE_PRESETS, resolveDancePresetForRequest, } from './definitions/index.js';
|
|
23
23
|
export type { DancePreset, ToolDefinition } from './definitions/index.js';
|
|
24
24
|
export { isToolResultErr, isToolResultOk, mapLegacyToolErrorCategory, toolErr, toolOk, } from './result.js';
|
|
25
25
|
export type { LegacyToolErrorCategory, ToolErrorCode, ToolResult, ToolResultAsset, ToolResultCost, ToolResultErr, ToolResultOk, } from './result.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EACL,aAAa,EACb,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,eAAe,EACf,qBAAqB,GACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,eAAe,EACf,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,OAAO,EACL,yBAAyB,EACzB,kCAAkC,EAClC,0BAA0B,EAC1B,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACV,uBAAuB,EACvB,0BA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rB,YAAY,EACV,uBAAuB,EACvB,aAAa,EACb,UAAU,EACV,eAAe,EACf,cAAc,EACd,aAAa,EACb,YAAY,GACb,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mDAAmD,EACnD,yCAAyC,GAC1C,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,4BAA4B,EAC5B,wBAAwB,EACxB,6BAA6B,EAC7B,+BAA+B,EAC/B,iCAAiC,EACjC,gCAAgC,EAChC,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,0CAA0C,EAAE,MAAM,8BAA8B,CAAC;AAC1F,OAAO,EAAE,gDAAgD,EAAE,MAAM,yCAAyC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EACL,aAAa,EACb,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,eAAe,EACf,qBAAqB,GACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,eAAe,EACf,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,OAAO,EACL,yBAAyB,EACzB,kCAAkC,EAClC,0BAA0B,EAC1B,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,4B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YAAY,GACb,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mDAAmD,EACnD,yCAAyC,GAC1C,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,4BAA4B,EAC5B,wBAAwB,EACxB,6BAA6B,EAC7B,+BAA+B,EAC/B,iCAAiC,EACjC,gCAAgC,EAChC,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,0CAA0C,EAAE,MAAM,8BAA8B,CAAC;AAC1F,OAAO,EAAE,gDAAgD,EAAE,MAAM,yCAAyC,CAAC"}
|
package/dist/tools/index.js
CHANGED
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
exports.maybeAlignNumberOfVariationsToDynamicBranchCount = exports.textExplicitlyRequestsMultipleImageOutputs = exports.isStoryboardKeyframeBatchPrompt = exports.promptHasLinkedVariantBatchLanguage = exports.promptHasStoryboardBatchLanguage = exports.validateSingleDynamicPromptBranch = exports.validateSceneDynamicPromptBatch = exports.buildDynamicPromptSlotPrompts = exports.isolateDynamicPromptSlot = exports.extractDynamicPromptBranches = exports.expandSingleSourceFanOutForPerClipPrompts = exports.collapseSingleSourceFanOutToDynamicPromptVariations = exports.toolOk = exports.toolErr = exports.mapLegacyToolErrorCategory = exports.isToolResultOk = exports.isToolResultErr = exports.resolveDancePresetForRequest = void 0;
|
|
17
|
+
exports.SUBTITLE_VERTICAL_POSITIONS = exports.STITCH_TRANSITION_TYPES = exports.OVERLAY_POSITIONS = exports.videoToVideoDefinition = exports.stitchVideoDefinition = exports.soundToVideoDefinition = exports.upscaleImageDefinition = exports.restorePhotoDefinition = exports.replaceVideoSegmentDefinition = exports.refineResultDefinition = exports.overlayVideoDefinition = exports.orbitVideoDefinition = exports.generationToolDefinitions = exports.generateVideoDefinition = exports.generateSpeechDefinition = exports.generateMusicDefinition = exports.generateImageDefinition = exports.extendVideoDefinition = exports.editImageDefinition = exports.danceMontageDefinition = exports.changeAngleDefinition = exports.applyStyleDefinition = exports.animatePhotoDefinition = exports.addSubtitlesDefinition = exports.HAPPYHORSE_TOOL_REFERENCE_GUIDANCE = exports.HAPPYHORSE_GENERATE_VIDEO_MODEL_DESCRIPTION = exports.validateWan3ReferenceDurations = exports.validateWan3ReferenceCounts = exports.Wan3ReferenceLimitError = exports.Wan3ReferenceDurationError = exports.WAN3_REFERENCE_DURATION_LIMITS = exports.WAN3_LOOSE_REFERENCE_LIMITS = exports.validateHappyHorseReferenceCounts = exports.getHappyHorseReferenceLimits = exports.HappyHorseReferenceLimitError = exports.HAPPYHORSE_REFERENCE_LIMITS = exports.validateSeedanceReferenceCounts = exports.SeedanceReferenceLimitError = exports.getSeedanceReferenceLimits = exports.SEEDANCE_REFERENCE_LIMITS_BY_MODEL = exports.SEEDANCE_REFERENCE_LIMITS = exports.isQualityTierTool = exports.getModelOptions = exports.getModelArgKey = exports.getAlternativeModels = exports.MODELS_BY_TOOL = exports.GENERATE_IMAGE_MODELS = exports.parseResultForError = exports.classifyError = exports.sanitizeBatchPrompt = void 0;
|
|
18
|
+
exports.maybeAlignNumberOfVariationsToDynamicBranchCount = exports.textExplicitlyRequestsMultipleImageOutputs = exports.isStoryboardKeyframeBatchPrompt = exports.promptHasLinkedVariantBatchLanguage = exports.promptHasStoryboardBatchLanguage = exports.validateSingleDynamicPromptBranch = exports.validateSceneDynamicPromptBatch = exports.buildDynamicPromptSlotPrompts = exports.isolateDynamicPromptSlot = exports.extractDynamicPromptBranches = exports.expandSingleSourceFanOutForPerClipPrompts = exports.collapseSingleSourceFanOutToDynamicPromptVariations = exports.toolOk = exports.toolErr = exports.mapLegacyToolErrorCategory = exports.isToolResultOk = exports.isToolResultErr = exports.resolveDancePresetForRequest = exports.DANCE_PRESETS = void 0;
|
|
19
19
|
var promptSanitizer_js_1 = require("./shared/promptSanitizer.js");
|
|
20
20
|
Object.defineProperty(exports, "sanitizeBatchPrompt", { enumerable: true, get: function () { return promptSanitizer_js_1.sanitizeBatchPrompt; } });
|
|
21
21
|
var errorClassification_js_1 = require("./shared/errorClassification.js");
|
|
@@ -68,6 +68,7 @@ Object.defineProperty(exports, "editImageDefinition", { enumerable: true, get: f
|
|
|
68
68
|
Object.defineProperty(exports, "extendVideoDefinition", { enumerable: true, get: function () { return index_js_1.extendVideoDefinition; } });
|
|
69
69
|
Object.defineProperty(exports, "generateImageDefinition", { enumerable: true, get: function () { return index_js_1.generateImageDefinition; } });
|
|
70
70
|
Object.defineProperty(exports, "generateMusicDefinition", { enumerable: true, get: function () { return index_js_1.generateMusicDefinition; } });
|
|
71
|
+
Object.defineProperty(exports, "generateSpeechDefinition", { enumerable: true, get: function () { return index_js_1.generateSpeechDefinition; } });
|
|
71
72
|
Object.defineProperty(exports, "generateVideoDefinition", { enumerable: true, get: function () { return index_js_1.generateVideoDefinition; } });
|
|
72
73
|
Object.defineProperty(exports, "generationToolDefinitions", { enumerable: true, get: function () { return index_js_1.generationToolDefinitions; } });
|
|
73
74
|
Object.defineProperty(exports, "orbitVideoDefinition", { enumerable: true, get: function () { return index_js_1.orbitVideoDefinition; } });
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,kEAAkE;AAAzD,yHAAA,mBAAmB,OAAA;AAC5B,0EAGyC;AAFvC,uHAAA,aAAa,OAAA;AACb,6HAAA,mBAAmB,OAAA;AAMrB,8DAOmC;AANjC,yHAAA,qBAAqB,OAAA;AACrB,kHAAA,cAAc,OAAA;AACd,wHAAA,oBAAoB,OAAA;AACpB,kHA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OAAA;AACvB,uHAAA,2BAA2B,OAAA;AAC3B,yGAAA,aAAa,OAAA;AACb,wHAAA,4BAA4B,OAAA;AAG9B,yCAMqB;AALnB,4GAAA,eAAe,OAAA;AACf,2GAAA,cAAc,OAAA;AACd,uHAAA,0BAA0B,OAAA;AAC1B,oGAAA,OAAO,OAAA;AACP,mGAAA,MAAM,OAAA;AAWR,uDAG4B;AAF1B,uJAAA,mDAAmD,OAAA;AACnD,6IAAA,yCAAyC,OAAA;AAE3C,8EAW2C;AARzC,wIAAA,4BAA4B,OAAA;AAC5B,oIAAA,wBAAwB,OAAA;AACxB,yIAAA,6BAA6B,OAAA;AAC7B,2IAAA,+BAA+B,OAAA;AAC/B,6IAAA,iCAAiC,OAAA;AACjC,4IAAA,gCAAgC,OAAA;AAChC,+IAAA,mCAAmC,OAAA;AACnC,2IAAA,+BAA+B,OAAA;AAEjC,oEAA0F;AAAjF,iJAAA,0CAA0C,OAAA;AACnD,0FAA2G;AAAlG,kKAAA,gDAAgD,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelRegistry.d.ts","sourceRoot":"","sources":["../../../src/tools/shared/modelRegistry.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB;AAgBD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BS,CAAC;AAM5C,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"modelRegistry.d.ts","sourceRoot":"","sources":["../../../src/tools/shared/modelRegistry.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB;AAgBD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BS,CAAC;AAM5C,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,CAgFxD,CAAC;AAkBF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGvD;AAGD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE3D;AAGD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,EAAE,CAE/D;AAGD,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,eAAe,CAAC,EAAE,MAAM,GACvB,WAAW,EAAE,CAIf"}
|
|
@@ -114,6 +114,11 @@ exports.MODELS_BY_TOOL = {
|
|
|
114
114
|
{ key: 'sft', displayName: 'ACE-Step 1.5 SFT' },
|
|
115
115
|
{ key: 'music3', displayName: 'MiniMax Music 3' },
|
|
116
116
|
],
|
|
117
|
+
generate_speech: [
|
|
118
|
+
{ key: 'voice', displayName: 'Qwen3-TTS Studio Voices' },
|
|
119
|
+
{ key: 'clone', displayName: 'Qwen3-TTS Voice Clone' },
|
|
120
|
+
{ key: 'design', displayName: 'Qwen3-TTS Voice Design' },
|
|
121
|
+
],
|
|
117
122
|
};
|
|
118
123
|
const QUALITY_ARG_TOOLS = [
|
|
119
124
|
'restore_photo',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelRegistry.js","sourceRoot":"","sources":["../../../src/tools/shared/modelRegistry.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"modelRegistry.js","sourceRoot":"","sources":["../../../src/tools/shared/modelRegistry.ts"],"names":[],"mappings":";;;AA+JA,wCAGC;AAGD,8CAEC;AAGD,0CAEC;AAGD,oDAOC;AAvKD,MAAM,mBAAmB,GAAkB;IACzC,EA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AQ,CAAC;QAAE,OAAO,SAAS,CAAC;IAC3D,OAAO,qBAAqB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC;AAC3E,CAAC;AAGD,SAAgB,iBAAiB,CAAC,QAAgB;IAChD,OAAO,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC9C,CAAC;AAGD,SAAgB,eAAe,CAAC,QAAgB;IAC9C,OAAO,sBAAc,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AACxC,CAAC;AAGD,SAAgB,oBAAoB,CAClC,QAAgB,EAChB,eAAwB;IAExB,MAAM,GAAG,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IACtC,IAAI,CAAC,eAAe;QAAE,OAAO,GAAG,CAAC;IACjC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,eAAe,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -436,7 +436,7 @@ function artifactKindForTool(tool) {
|
|
|
436
436
|
|| tool === 'video_to_video' || tool === 'stitch_video' || tool === 'orbit_video'
|
|
437
437
|
|| tool === 'dance_montage')
|
|
438
438
|
return 'video';
|
|
439
|
-
if (tool === 'generate_music')
|
|
439
|
+
if (tool === 'generate_music' || tool === 'generate_speech')
|
|
440
440
|
return 'audio';
|
|
441
441
|
if (tool === 'analyze_image' || tool === 'extract_metadata')
|
|
442
442
|
return 'text';
|