@sogni-ai/sogni-intelligence-client 4.1.0 → 4.2.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/agent/intentInput.d.ts +1 -1
- package/dist/agent/intentInput.d.ts.map +1 -1
- package/dist/agent/intentInput.js +1 -0
- package/dist/agent/intentInput.js.map +1 -1
- package/dist/artifacts/graph.d.ts +1 -1
- package/dist/artifacts/graph.d.ts.map +1 -1
- package/dist/artifacts/graph.js +1 -0
- package/dist/artifacts/graph.js.map +1 -1
- package/dist/chatRun/index.d.ts +1 -1
- package/dist/chatRun/index.d.ts.map +1 -1
- package/dist/client/SogniClientWrapper.d.ts.map +1 -1
- package/dist/client/SogniClientWrapper.js +12 -10
- package/dist/client/SogniClientWrapper.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 +3 -0
- package/dist/contracts/backboneToolCatalog.js.map +1 -1
- package/dist/contracts/data/gatingPolicies.d.ts.map +1 -1
- package/dist/contracts/data/gatingPolicies.js +3 -0
- package/dist/contracts/data/gatingPolicies.js.map +1 -1
- package/dist/contracts/data/gatingPoliciesToolSurface.d.ts.map +1 -1
- package/dist/contracts/data/gatingPoliciesToolSurface.js +3 -0
- package/dist/contracts/data/gatingPoliciesToolSurface.js.map +1 -1
- package/dist/contracts/data/promptContracts.d.ts.map +1 -1
- package/dist/contracts/data/promptContracts.js +20 -8
- package/dist/contracts/data/promptContracts.js.map +1 -1
- package/dist/contracts/data/toolCostMetadata.d.ts.map +1 -1
- package/dist/contracts/data/toolCostMetadata.js +3 -0
- package/dist/contracts/data/toolCostMetadata.js.map +1 -1
- package/dist/openai-tools/_manifests.generated.d.ts.map +1 -1
- package/dist/openai-tools/_manifests.generated.js +263 -10
- package/dist/openai-tools/_manifests.generated.js.map +1 -1
- package/dist/openai-tools/generation-tools.json +263 -10
- package/dist/public-skill-runtime/index.d.ts +2 -2
- package/dist/public-skill-runtime/index.d.ts.map +1 -1
- package/dist/public-skill-runtime/index.js +45 -15
- package/dist/public-skill-runtime/index.js.map +1 -1
- package/dist/schemas/agent/intent-input.schema.json +1 -1
- package/dist/schemas/artifacts/artifact-node.schema.json +1 -1
- package/dist/schemas/events/artifact-reference.schema.json +1 -1
- package/dist/schemas/tools/animate_photo.schema.json +1 -1
- package/dist/schemas/tools/edit_image.schema.json +20 -1
- package/dist/schemas/tools/generate_image.schema.json +20 -1
- package/dist/schemas/tools/generate_speech.schema.json +26 -1
- package/dist/schemas/tools/generate_video.schema.json +3 -3
- package/dist/schemas/tools/image_to_3d.schema.json +76 -0
- package/dist/schemas/tools/remove_background.schema.json +24 -0
- package/dist/schemas/tools/segment_image.schema.json +122 -0
- package/dist/schemas/workflows/durable-workflow-run.schema.json +4 -0
- package/dist/tools/definitions/edit-image/definition.js +2 -2
- package/dist/tools/definitions/edit-image/definition.js.map +1 -1
- package/dist/tools/definitions/generate-image/definition.js +1 -1
- package/dist/tools/definitions/generate-image/definition.js.map +1 -1
- package/dist/tools/definitions/generate-speech/definition.d.ts.map +1 -1
- package/dist/tools/definitions/generate-speech/definition.js +4 -0
- package/dist/tools/definitions/generate-speech/definition.js.map +1 -1
- package/dist/tools/definitions/generate-video/definition.js +2 -2
- package/dist/tools/definitions/generate-video/definition.js.map +1 -1
- package/dist/tools/definitions/image-to-3d/definition.d.ts +3 -0
- package/dist/tools/definitions/image-to-3d/definition.d.ts.map +1 -0
- package/dist/tools/definitions/image-to-3d/definition.js +30 -0
- package/dist/tools/definitions/image-to-3d/definition.js.map +1 -0
- package/dist/tools/definitions/index.d.ts +5 -2
- package/dist/tools/definitions/index.d.ts.map +1 -1
- package/dist/tools/definitions/index.js +54 -45
- package/dist/tools/definitions/index.js.map +1 -1
- package/dist/tools/definitions/remove-background/definition.d.ts +3 -0
- package/dist/tools/definitions/remove-background/definition.d.ts.map +1 -0
- package/dist/tools/definitions/remove-background/definition.js +20 -0
- package/dist/tools/definitions/remove-background/definition.js.map +1 -0
- package/dist/tools/definitions/segment-image/definition.d.ts +3 -0
- package/dist/tools/definitions/segment-image/definition.d.ts.map +1 -0
- package/dist/tools/definitions/segment-image/definition.js +27 -0
- package/dist/tools/definitions/segment-image/definition.js.map +1 -0
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +5 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/result.d.ts +1 -1
- package/dist/tools/result.d.ts.map +1 -1
- package/dist/tools/shared/loraGuidance.d.ts.map +1 -1
- package/dist/tools/shared/loraGuidance.js +2 -2
- package/dist/tools/shared/loraGuidance.js.map +1 -1
- package/dist/workflows/executor.d.ts.map +1 -1
- package/dist/workflows/executor.js +2 -0
- package/dist/workflows/executor.js.map +1 -1
- package/dist/workflows/types.d.ts +1 -1
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist-esm/agent/intentInput.js +1 -0
- package/dist-esm/agent/intentInput.js.map +1 -1
- package/dist-esm/artifacts/graph.js +1 -0
- package/dist-esm/artifacts/graph.js.map +1 -1
- package/dist-esm/client/SogniClientWrapper.js +12 -10
- package/dist-esm/client/SogniClientWrapper.js.map +1 -1
- package/dist-esm/contracts/backboneToolCatalog.js +3 -0
- package/dist-esm/contracts/backboneToolCatalog.js.map +1 -1
- package/dist-esm/contracts/data/gatingPolicies.js +3 -0
- package/dist-esm/contracts/data/gatingPolicies.js.map +1 -1
- package/dist-esm/contracts/data/gatingPoliciesToolSurface.js +3 -0
- package/dist-esm/contracts/data/gatingPoliciesToolSurface.js.map +1 -1
- package/dist-esm/contracts/data/promptContracts.js +20 -8
- package/dist-esm/contracts/data/promptContracts.js.map +1 -1
- package/dist-esm/contracts/data/toolCostMetadata.js +3 -0
- package/dist-esm/contracts/data/toolCostMetadata.js.map +1 -1
- package/dist-esm/openai-tools/_manifests.generated.js +263 -10
- package/dist-esm/openai-tools/_manifests.generated.js.map +1 -1
- package/dist-esm/openai-tools/generation-tools.json +263 -10
- package/dist-esm/public-skill-runtime/index.js +45 -15
- package/dist-esm/public-skill-runtime/index.js.map +1 -1
- package/dist-esm/schemas/agent/intent-input.schema.json +1 -1
- package/dist-esm/schemas/artifacts/artifact-node.schema.json +1 -1
- package/dist-esm/schemas/events/artifact-reference.schema.json +1 -1
- package/dist-esm/schemas/tools/animate_photo.schema.json +1 -1
- package/dist-esm/schemas/tools/edit_image.schema.json +20 -1
- package/dist-esm/schemas/tools/generate_image.schema.json +20 -1
- package/dist-esm/schemas/tools/generate_speech.schema.json +26 -1
- package/dist-esm/schemas/tools/generate_video.schema.json +3 -3
- package/dist-esm/schemas/tools/image_to_3d.schema.json +76 -0
- package/dist-esm/schemas/tools/remove_background.schema.json +24 -0
- package/dist-esm/schemas/tools/segment_image.schema.json +122 -0
- package/dist-esm/schemas/workflows/durable-workflow-run.schema.json +4 -0
- package/dist-esm/tools/definitions/edit-image/definition.js +2 -2
- package/dist-esm/tools/definitions/edit-image/definition.js.map +1 -1
- package/dist-esm/tools/definitions/generate-image/definition.js +1 -1
- package/dist-esm/tools/definitions/generate-image/definition.js.map +1 -1
- package/dist-esm/tools/definitions/generate-speech/definition.js +4 -0
- package/dist-esm/tools/definitions/generate-speech/definition.js.map +1 -1
- package/dist-esm/tools/definitions/generate-video/definition.js +2 -2
- package/dist-esm/tools/definitions/generate-video/definition.js.map +1 -1
- package/dist-esm/tools/definitions/image-to-3d/definition.js +27 -0
- package/dist-esm/tools/definitions/image-to-3d/definition.js.map +1 -0
- package/dist-esm/tools/definitions/index.js +7 -1
- package/dist-esm/tools/definitions/index.js.map +1 -1
- package/dist-esm/tools/definitions/remove-background/definition.js +17 -0
- package/dist-esm/tools/definitions/remove-background/definition.js.map +1 -0
- package/dist-esm/tools/definitions/segment-image/definition.js +24 -0
- package/dist-esm/tools/definitions/segment-image/definition.js.map +1 -0
- package/dist-esm/tools/index.js +1 -1
- package/dist-esm/tools/index.js.map +1 -1
- package/dist-esm/tools/shared/loraGuidance.js +2 -2
- package/dist-esm/tools/shared/loraGuidance.js.map +1 -1
- package/dist-esm/workflows/executor.js +2 -0
- package/dist-esm/workflows/executor.js.map +1 -1
- package/package.json +4 -4
|
@@ -52,6 +52,7 @@ Limit 4096 characters, roughly five minutes of speech. A longer script is refuse
|
|
|
52
52
|
type: 'number',
|
|
53
53
|
description: 'Which audio holds the voice to clone, using the same numbering every other tool uses for audio: negative indices are uploads (-1 = first/primary upload, -2 = second upload, and so on) and 0-based non-negative indices are audio generated earlier in this conversation. A clip the user just uploaded is -1. 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
54
|
},
|
|
55
|
+
voice_source_url: { type: 'string', description: 'REST alternative to voiceSourceIndex: retrievable original recording for clone mode.' },
|
|
55
56
|
voiceTranscript: {
|
|
56
57
|
type: 'string',
|
|
57
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.',
|
|
@@ -74,6 +75,9 @@ Limit 4096 characters, roughly five minutes of speech. A longer script is refuse
|
|
|
74
75
|
],
|
|
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.',
|
|
76
77
|
},
|
|
78
|
+
creativity: { type: 'number', minimum: 0.1, maximum: 2, description: 'Speech delivery variation from 0.1 to 2; default 0.9.' },
|
|
79
|
+
outputFormat: { type: 'string', enum: ['wav', 'mp3', 'flac'], description: 'Audio file format; default wav.' },
|
|
80
|
+
seed: { type: 'integer', minimum: 0, maximum: 4294967295, description: 'Optional seed for reproducible delivery.' },
|
|
77
81
|
numberOfVariations: {
|
|
78
82
|
type: 'number',
|
|
79
83
|
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.',
|
|
@@ -1 +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,ihBAAihB;iBACphB;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
|
+
{"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,WAA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 +16,7 @@ exports.definition = {
|
|
|
16
16
|
type: "function",
|
|
17
17
|
function: {
|
|
18
18
|
name: "generate_video",
|
|
19
|
-
description: 'Generate a video from text or Seedance multimodal references. LTX 2.5 is the default and generates audio natively; LTX 2.3 remains available as rollback and also generates audio natively (dialogue, sounds, ambient music) — describe audio in the prompt. If the user provides exact speech, include it in double quotes; if they only imply speech, describe the performance and voice without inventing quoted words. Never use placeholders such as "while speaking", "dialogue begins", "explaining", or "final line lands". PERSONA VOICE: Only when the user explicitly asks to use/clone a registered persona voice clip, call resolve_personas first, then set voicePersonaName to select which persona\'s voice clip to use. Do not set voicePersonaName for ordinary character dialogue or inferred voices; describe those voices in the prompt for native LTX audio. For cross-persona narration (e.g. David narrates a video of Aleyna), resolve both personas and set voicePersonaName to the narrator only if that registered voice was requested. Persona voice requires ltx23 because LTX 2.5 has no compatible ID-LoRA and WAN 2.2 does not support voice identity. For non-Seedance syncing to a specific song or audio track, use sound_to_video instead. For non-Seedance animation from a locked source photo, use animate_photo. Do NOT use for My Personas unless generating a Seedance reference-based video — standard persona videos use resolve_personas → edit_image → animate_photo. SEEDANCE DEFAULT: For seedance2, seedance2-mini, or seedance2-5, default to exactly one video (4-15s on 2.0/Mini, 4-30s on seedance2-5) unless the user explicitly asks for multiple separate outputs. Multiple beats, shots, or scene descriptions in one up-to-15s Seedance prompt are still one video. If the user requests one continuous Seedance video longer than 15s, prefer seedance2-5, which renders up to 30s in a single call; beyond 30s (or on 2.0/Mini) preserve the requested total duration in the prompt/context and let chat orchestration split it into supported segment renders and stitch them instead of clamping it to a short excerpt. Uploaded/generated storyboard, shot-sheet, or trailer-concept images used as Seedance references should become one Seedance generate_video call by default;
|
|
19
|
+
description: 'Generate a video from text or Seedance multimodal references. LTX 2.5 is the default and generates audio natively; LTX 2.3 remains available as rollback and also generates audio natively (dialogue, sounds, ambient music) — describe audio in the prompt. If the user provides exact speech, include it in double quotes; if they only imply speech, describe the performance and voice without inventing quoted words. Never use placeholders such as "while speaking", "dialogue begins", "explaining", or "final line lands". PERSONA VOICE: Only when the user explicitly asks to use/clone a registered persona voice clip, call resolve_personas first, then set voicePersonaName to select which persona\'s voice clip to use. Do not set voicePersonaName for ordinary character dialogue or inferred voices; describe those voices in the prompt for native LTX audio. For cross-persona narration (e.g. David narrates a video of Aleyna), resolve both personas and set voicePersonaName to the narrator only if that registered voice was requested. Persona voice requires ltx23 because LTX 2.5 has no compatible ID-LoRA and WAN 2.2 does not support voice identity. For non-Seedance syncing to a specific song or audio track, use sound_to_video instead. For non-Seedance animation from a locked source photo, use animate_photo. Do NOT use for My Personas unless generating a Seedance reference-based video — standard persona videos use resolve_personas → edit_image → animate_photo. SEEDANCE DEFAULT: For seedance2, seedance2-mini, or seedance2-5, default to exactly one video (4-15s on 2.0/Mini, 4-30s on seedance2-5) unless the user explicitly asks for multiple separate outputs. Multiple beats, shots, or scene descriptions in one up-to-15s Seedance prompt are still one video. If the user requests one continuous Seedance video longer than 15s, prefer seedance2-5, which renders up to 30s in a single call; beyond 30s (or on 2.0/Mini) preserve the requested total duration in the prompt/context and let chat orchestration split it into supported segment renders and stitch them instead of clamping it to a short excerpt. Uploaded/generated storyboard, shot-sheet, or trailer-concept images used as Seedance references should become one Seedance 2.5 generate_video call at targetResolution=1080 by default; preserve an explicitly requested model or resolution, and use Seedance 2.0 for 4K because Seedance 2.5 supports up to 1080p. Do not extract panels with edit_image and do not animate the storyboard sheet with LTX unless the user explicitly asks for separate non-Seedance clips. Seedance loose image, video, and audio references go through this tool; do not use animate_photo sourceImageIndex/frameRole/endImageIndex for Seedance. If an uploaded video is the source clip to transform, upscale, enhance, restyle, or remaster, use video_to_video with controlMode="seedance-v2v" instead of generate_video referenceVideoIndices. If the uploaded audio is the primary sync target, lip-sync target, or requested as sound-to-video/audio-sync, use sound_to_video with videoModel="seedance2-mini" instead of this tool unless the user asks for full Seedance. Use referenceAudioIndices here only when audio is a loose reference under an image/video-anchored Seedance shot. For Seedance, every image — first frame, last frame, or loose reference — is passed through referenceImageIndices (auto-uploaded as referenceImageUrls). Anchor frame intent in the prompt with @Image tags such as "Use @Image1 as the opening shot reference. Begin the video with a composition, subject placement, lighting, mood, and camera framing that closely match @Image1." (or @Image2 as the final shot reference). For seamless-loop or "first frame and last frame identical" requests with a single uploaded image, anchor it explicitly as both: "Use @Image1 as both the first frame and last frame so the video loops cleanly back to the opening composition." Assign each useful @Image/@Video/@Audio tag a role. APPROVED STORYBOARD PRODUCTION: When the user asks for a production workflow from an approved storyboard, the chat orchestrator should use the durable CampaignStoryboard contract: render the composite board, audit it, generate one reference still per approved scene with GPT Image 2.5 Sunburst, render each scene as a Seedance 2.5 video segment at 1080p, then stitch the segments. Preserve an explicit alternate model or resolution. Do not replace that with a generic storyboard-reference video unless the user asks for a fast draft. PARTIAL VIDEO EDITS: Do NOT call generate_video to re-render an existing rendered/uploaded video just to change part of it (the bumper, the intro, the end card, a single scene, the last few seconds, etc.). Use replace_video_segment for that — it preserves the unchanged portion, keeps the original audio outside the replaced window, and costs far less. Likewise use extend_video to add new time to the end without rewriting the rest. If the request is vague, ask about vision/mood/style first. Only call once you have clear creative intent. WAN 3 uses the exact selector wan3.0-video: use this tool for text-to-video or loose Image 1/Video 1/Audio 1 references; use animate_photo for native first/last frames and sound_to_video when audio drives timing. A Wan 3 video reference conditions a new generation; it does not invoke a provider-backed edit or extend mode.',
|
|
20
20
|
parameters: {
|
|
21
21
|
type: "object",
|
|
22
22
|
properties: {
|
|
@@ -123,7 +123,7 @@ BATCH VARIATIONS: When numberOfVariations > 1, use Dynamic Prompt syntax. This i
|
|
|
123
123
|
"wan3.0-spicy-video",
|
|
124
124
|
],
|
|
125
125
|
description: '"ltx25" (default): LTX 2.5 with native audio; Fast, HQ, and Pro currently use the release-validated official Distilled INT8 workflow. The Dev checkpoints are not publicly routed until upstream publishes and Sogni validates an official ComfyUI Dev recipe. ' +
|
|
126
|
-
'Video model. "ltx23": LTX 2.3 rollback with native audio. "wan22": quick simple motion without audio. "minimax-h3-t2v": standard 20-step MiniMax H3 text-to-video; "minimax-h3-t2v-turbo": the existing 4-step LightX2V Turbo text-to-video; "minimax-h3-fasth3-t2v-turbo": the separate FastVideo VSA four-step FastH3 engine, about 2x faster and fixed to Euler/simple; "minimax-h3-fasth3-t2v-turbo-2stage": the two-stage FastH3 engine: FastH3 renders the canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas width and height with the same length and audio. targetResolution picks the delivered class: 1080 renders a 544px short-edge canvas (960x544 is delivered at 1920x1088) for 10 Spark per second, 1440 or omitted renders the 768p canvas for 2K (1344x768 is delivered at 2688x1536) for 16 Spark per second, and 720 renders a 384px canvas (672x384 is delivered at 1344x768) for the regular FastH3 price of 4 Spark per second. The estimate prices every request. It takes the same inputs, durations and LoRAs as "minimax-h3-fasth3-t2v-turbo". Choose it when the user asks for 1080p, 1440p or 2K MiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality; for ordinary 768p FastH3 output keep the regular FastH3 selector at targetResolution 768. All use native audio, fixed 24fps, 5.17-15.08s, and a 768p-class 32px-grid canvas; use animate_photo for H3 image-conditioned modes. Base and Turbo T2V/I2V/FLF2V prompts use the exact ordered fields integrated_multimodal_description, overall_soundscape, and non_diegetic_music; I2V/FLF2V prepend the official alignment line. "minimax-h3-r2v": standard 20-step MiniMax H3 reference-to-video; "minimax-h3-r2v-turbo": the dedicated LightX2V 4-step Ref2VA Turbo workflow using Euler/simple and a 960x544 default. FastH3 has no R2V mode. Both R2V selectors accept up to 9 images, 3 videos, and 3 audios (12 files total); at least one visual reference (image or video) is required and audio alone is invalid. Select references with referenceImageIndices/referenceVideoIndices/referenceAudioIndices and address them with the official <Subject N>/<Picture N>/<Video N>/<Audio N> semantics. Seedance quality is selected only by model: use "seedance2-mini" for Seedance 2.0 Mini or faster/lower-cost 720p iteration,
|
|
126
|
+
'Video model. "ltx23": LTX 2.3 rollback with native audio. "wan22": quick simple motion without audio. "minimax-h3-t2v": standard 20-step MiniMax H3 text-to-video; "minimax-h3-t2v-turbo": the existing 4-step LightX2V Turbo text-to-video; "minimax-h3-fasth3-t2v-turbo": the separate FastVideo VSA four-step FastH3 engine, about 2x faster and fixed to Euler/simple; "minimax-h3-fasth3-t2v-turbo-2stage": the two-stage FastH3 engine: FastH3 renders the canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas width and height with the same length and audio. targetResolution picks the delivered class: 1080 renders a 544px short-edge canvas (960x544 is delivered at 1920x1088) for 10 Spark per second, 1440 or omitted renders the 768p canvas for 2K (1344x768 is delivered at 2688x1536) for 16 Spark per second, and 720 renders a 384px canvas (672x384 is delivered at 1344x768) for the regular FastH3 price of 4 Spark per second. The estimate prices every request. It takes the same inputs, durations and LoRAs as "minimax-h3-fasth3-t2v-turbo". Choose it when the user asks for 1080p, 1440p or 2K MiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality; for ordinary 768p FastH3 output keep the regular FastH3 selector at targetResolution 768. All use native audio, fixed 24fps, 5.17-15.08s, and a 768p-class 32px-grid canvas; use animate_photo for H3 image-conditioned modes. Base and Turbo T2V/I2V/FLF2V prompts use the exact ordered fields integrated_multimodal_description, overall_soundscape, and non_diegetic_music; I2V/FLF2V prepend the official alignment line. "minimax-h3-r2v": standard 20-step MiniMax H3 reference-to-video; "minimax-h3-r2v-turbo": the dedicated LightX2V 4-step Ref2VA Turbo workflow using Euler/simple and a 960x544 default. FastH3 has no R2V mode. Both R2V selectors accept up to 9 images, 3 videos, and 3 audios (12 files total); at least one visual reference (image or video) is required and audio alone is invalid. Select references with referenceImageIndices/referenceVideoIndices/referenceAudioIndices and address them with the official <Subject N>/<Picture N>/<Video N>/<Audio N> semantics. Seedance quality is selected only by model: use "seedance2-mini" for Seedance 2.0 Mini or faster/lower-cost 720p iteration, use "seedance2-5" at targetResolution=1080 for generated/uploaded storyboard images and current high-quality Seedance generation unless the user explicitly requests another model or resolution, and use "seedance2" for Seedance 2.0 or 4K requests because Seedance 2.5 supports up to 1080p. Do not use Default Media Quality Fast/HQ/Pro to represent Seedance quality. "seedance2-5": Seedance 2.5, the newest Seedance generation — 480p, 720p, and 1080p (4K is unsupported), 4-30s per clip at a fixed 24 fps, native audio, first-and-last-frame conditioning, and a much larger reference budget than the 2.0 family: up to 30 images, 10 videos, and 10 audios, with up to 50 reference media files total, subject to those per-modality caps. Choose "seedance2-5" when the user asks for Seedance 2.5, wants a single continuous Seedance clip longer than 15s (2.5 renders up to 30s in one call instead of being split and stitched), or wants a first-and-last-frame Seedance transition. Keep "seedance2" for 4K requests; Seedance 2.5 supports up to 1080p. ' +
|
|
127
127
|
'H3 SOURCE AUDIO: every H3 R2V call with reference video or audio requires sourceAudioPolicy. A specific/original/trending song is immutable: use reuse_exact, author audio reuse plus fully_copy with explicit choreography times, never substitute/recompose/remix or add a copyright-avoidance mutation, and stream-copy/remux the source signal into the final deliverable. H3 reference videos must themselves be exactly 24fps; normalize other rates without changing duration/audio timing before submission. Use reference_only only when the user explicitly wants newly generated audio guided by the source; use replace only when they explicitly authorize different audio. Ref2VA remains loose visual conditioning and cannot promise edit-level beat synchronization. ' +
|
|
128
128
|
toolPromptMarkers_js_1.SEEDANCE_TOOL_MULTIMODAL_REFERENCE_GUIDANCE +
|
|
129
129
|
' ' +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-video/definition.ts"],"names":[],"mappings":";;;AAMA,kEAKsC;AACtC,kFAMiD;AACjD,sDAAmE;AAUnE,MAAM,iBAAiB,GAAG;IACxB,gBAAgB;IAChB,sBAAsB;IACtB,6BAA6B;IAC7B,oCAAoC;IACpC,gBAAgB;IAChB,sBAAsB;CACd,CAAC;AAEE,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,gBAAgB;QACtB,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-video/definition.ts"],"names":[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,IAAI,EAAE,QAAQ,EAAE;oBACzB,WAAW,EACT,qYAAqY;iBACxY;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,i/BAAi/B;iBACp/B;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,urBAAurB;iBAC1rB;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,kiDAAkiD;iBACriD;gBACD,kBAAkB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,4XAA4X;oBAC9X,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,EAAE;iBACZ;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,mCAAwB;iBACtC;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,wmBAAwmB;iBAC3mB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;oBACvC,WAAW,EACT,sJAAsJ,wCAAsB,OAAO,IAAA,qCAAmB,EAAC,iBAAiB,CAAC,OAAO,iDAA+B,EAAE;iBACpQ;gBACD,aAAa,EAAE;oBACb,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,WAAW,EAAE,kDAAgC;iBAC9C;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/tools/definitions/image-to-3d/definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,UAAU,EAAE,cAyBxB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.definition = void 0;
|
|
4
|
+
exports.definition = {
|
|
5
|
+
type: 'function',
|
|
6
|
+
function: {
|
|
7
|
+
name: 'image_to_3d',
|
|
8
|
+
description: 'Reconstruct a textured 3D model with Pixal3D from an original front image, optionally with left, back and right views of the same subject. Returns a downloadable binary GLB model, not an image or video. Takes no prompt. Use original stills with consistent framing and height; never substitute screenshots or invented views.',
|
|
9
|
+
parameters: {
|
|
10
|
+
type: 'object',
|
|
11
|
+
properties: {
|
|
12
|
+
sourceImageIndex: { type: 'integer', description: 'Front image: negative indices select uploads (-1 is the first), non-negative indices select generated images. Omit to use the latest image.' },
|
|
13
|
+
source_image_url: { type: 'string', description: 'REST alternative to sourceImageIndex: retrievable front image URL.' },
|
|
14
|
+
leftViewImageIndex: { type: 'integer', description: 'Subject own LEFT side facing the camera (subject faces screen-left). Any subset of orbit views enables multi-view reconstruction.' },
|
|
15
|
+
backViewImageIndex: { type: 'integer', description: 'Same subject seen from behind.' },
|
|
16
|
+
rightViewImageIndex: { type: 'integer', description: 'Subject own RIGHT side facing the camera (subject faces screen-right). Do not swap left and right.' },
|
|
17
|
+
left_view_image_url: { type: 'string', description: 'REST alternative for the left view.' },
|
|
18
|
+
back_view_image_url: { type: 'string', description: 'REST alternative for the back view.' },
|
|
19
|
+
right_view_image_url: { type: 'string', description: 'REST alternative for the right view.' },
|
|
20
|
+
meshTargetFaces: { type: 'integer', minimum: 5000, maximum: 700000, description: 'Triangle budget. Default 700000; choose a lower budget for real-time use.' },
|
|
21
|
+
textureSize: { type: 'integer', minimum: 1024, maximum: 4096, description: 'Base-colour texture and UV atlas size. Default 4096.' },
|
|
22
|
+
normalMapSize: { type: 'integer', minimum: 512, maximum: 2048, description: 'Normal map size. Default 2048.' },
|
|
23
|
+
ambientOcclusionSize: { type: 'integer', minimum: 256, maximum: 1024, description: 'Ambient occlusion map size. Default 1024.' },
|
|
24
|
+
shapeResolution: { type: 'integer', enum: [1024, 1536], description: 'Shape resolution. Default 1024; 1536 costs more.' },
|
|
25
|
+
},
|
|
26
|
+
required: [],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/image-to-3d/definition.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,qUAAqU;QAClV,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,gBAAgB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,6IAA6I,EAAE;gBACjM,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,oEAAoE,EAAE;gBACvH,kBAAkB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,mIAAmI,EAAE;gBACzL,kBAAkB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,gCAAgC,EAAE;gBACtF,mBAAmB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,oGAAoG,EAAE;gBAC3J,mBAAmB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,qCAAqC,EAAE;gBAC3F,mBAAmB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,qCAAqC,EAAE;gBAC3F,oBAAoB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sCAAsC,EAAE;gBAC7F,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,2EAA2E,EAAE;gBAC9J,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,sDAAsD,EAAE;gBACnI,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,gCAAgC,EAAE;gBAC9G,oBAAoB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,2CAA2C,EAAE;gBAChI,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,WAAW,EAAE,kDAAkD,EAAE;aAC1H;YACD,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { definition as generateImageDefinition } from './generate-image/definition.js';
|
|
2
|
+
import { definition as imageTo3dDefinition } from './image-to-3d/definition.js';
|
|
3
|
+
import { definition as removeBackgroundDefinition } from './remove-background/definition.js';
|
|
4
|
+
import { definition as segmentImageDefinition } from './segment-image/definition.js';
|
|
2
5
|
import { definition as generateVideoDefinition } from './generate-video/definition.js';
|
|
3
6
|
import { definition as generateMusicDefinition } from './generate-music/definition.js';
|
|
4
7
|
import { definition as generateSpeechDefinition } from './generate-speech/definition.js';
|
|
@@ -20,8 +23,8 @@ import { definition as replaceVideoSegmentDefinition } from './replace-video-seg
|
|
|
20
23
|
import { definition as overlayVideoDefinition, OVERLAY_POSITIONS } from './overlay-video/definition.js';
|
|
21
24
|
import { definition as addSubtitlesDefinition, SUBTITLE_VERTICAL_POSITIONS } from './add-subtitles/definition.js';
|
|
22
25
|
import type { ToolDefinition } from './types.js';
|
|
23
|
-
export { addSubtitlesDefinition, animatePhotoDefinition, applyStyleDefinition, changeAngleDefinition, danceMontageDefinition, editImageDefinition, extendVideoDefinition, generateImageDefinition, generateMusicDefinition, generateSpeechDefinition, generateVideoDefinition, orbitVideoDefinition, overlayVideoDefinition, refineResultDefinition, replaceVideoSegmentDefinition, restorePhotoDefinition, upscaleImageDefinition, upscaleVideoDefinition, soundToVideoDefinition, stitchVideoDefinition, videoToVideoDefinition, OVERLAY_POSITIONS, STITCH_TRANSITION_TYPES, SUBTITLE_VERTICAL_POSITIONS, };
|
|
24
|
-
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, ToolDefinition];
|
|
26
|
+
export { imageTo3dDefinition, removeBackgroundDefinition, segmentImageDefinition, addSubtitlesDefinition, animatePhotoDefinition, applyStyleDefinition, changeAngleDefinition, danceMontageDefinition, editImageDefinition, extendVideoDefinition, generateImageDefinition, generateMusicDefinition, generateSpeechDefinition, generateVideoDefinition, orbitVideoDefinition, overlayVideoDefinition, refineResultDefinition, replaceVideoSegmentDefinition, restorePhotoDefinition, upscaleImageDefinition, upscaleVideoDefinition, soundToVideoDefinition, stitchVideoDefinition, videoToVideoDefinition, OVERLAY_POSITIONS, STITCH_TRANSITION_TYPES, SUBTITLE_VERTICAL_POSITIONS, };
|
|
27
|
+
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, ToolDefinition, ToolDefinition, ToolDefinition, ToolDefinition];
|
|
25
28
|
export { DANCE_PRESETS, resolveDancePresetForRequest } from './dance-montage/dances.js';
|
|
26
29
|
export type { DancePreset } from './dance-montage/dances.js';
|
|
27
30
|
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,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,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,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,6BAA6B,EAC7B,sBAAsB,EACtB,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,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,UAAU,IAAI,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,UAAU,IAAI,sBA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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,mBAAmB,EACnB,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,6BAA6B,EAC7B,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,uBAAuB,EACvB,2BAA2B,GAC5B,CAAC;AAEF,eAAO,MAAM,yBAAyB,2YAyBQ,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,56 +1,62 @@
|
|
|
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.upscaleVideoDefinition = 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;
|
|
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.upscaleVideoDefinition = 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 = exports.segmentImageDefinition = exports.removeBackgroundDefinition = exports.imageTo3dDefinition = 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
|
-
const definition_js_2 = require("./
|
|
7
|
-
Object.defineProperty(exports, "
|
|
8
|
-
const definition_js_3 = require("./
|
|
9
|
-
Object.defineProperty(exports, "
|
|
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
|
-
const definition_js_13 = require("./
|
|
29
|
-
Object.defineProperty(exports, "
|
|
30
|
-
const definition_js_14 = require("./
|
|
31
|
-
Object.defineProperty(exports, "
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Object.defineProperty(exports, "
|
|
39
|
-
const definition_js_18 = require("./
|
|
40
|
-
Object.defineProperty(exports, "
|
|
41
|
-
const definition_js_19 = require("./
|
|
42
|
-
Object.defineProperty(exports, "
|
|
43
|
-
const definition_js_20 = require("./
|
|
44
|
-
Object.defineProperty(exports, "
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
Object.defineProperty(exports, "
|
|
6
|
+
const definition_js_2 = require("./image-to-3d/definition.js");
|
|
7
|
+
Object.defineProperty(exports, "imageTo3dDefinition", { enumerable: true, get: function () { return definition_js_2.definition; } });
|
|
8
|
+
const definition_js_3 = require("./remove-background/definition.js");
|
|
9
|
+
Object.defineProperty(exports, "removeBackgroundDefinition", { enumerable: true, get: function () { return definition_js_3.definition; } });
|
|
10
|
+
const definition_js_4 = require("./segment-image/definition.js");
|
|
11
|
+
Object.defineProperty(exports, "segmentImageDefinition", { enumerable: true, get: function () { return definition_js_4.definition; } });
|
|
12
|
+
const definition_js_5 = require("./generate-video/definition.js");
|
|
13
|
+
Object.defineProperty(exports, "generateVideoDefinition", { enumerable: true, get: function () { return definition_js_5.definition; } });
|
|
14
|
+
const definition_js_6 = require("./generate-music/definition.js");
|
|
15
|
+
Object.defineProperty(exports, "generateMusicDefinition", { enumerable: true, get: function () { return definition_js_6.definition; } });
|
|
16
|
+
const definition_js_7 = require("./generate-speech/definition.js");
|
|
17
|
+
Object.defineProperty(exports, "generateSpeechDefinition", { enumerable: true, get: function () { return definition_js_7.definition; } });
|
|
18
|
+
const definition_js_8 = require("./edit-image/definition.js");
|
|
19
|
+
Object.defineProperty(exports, "editImageDefinition", { enumerable: true, get: function () { return definition_js_8.definition; } });
|
|
20
|
+
const definition_js_9 = require("./apply-style/definition.js");
|
|
21
|
+
Object.defineProperty(exports, "applyStyleDefinition", { enumerable: true, get: function () { return definition_js_9.definition; } });
|
|
22
|
+
const definition_js_10 = require("./restore-photo/definition.js");
|
|
23
|
+
Object.defineProperty(exports, "restorePhotoDefinition", { enumerable: true, get: function () { return definition_js_10.definition; } });
|
|
24
|
+
const definition_js_11 = require("./upscale-image/definition.js");
|
|
25
|
+
Object.defineProperty(exports, "upscaleImageDefinition", { enumerable: true, get: function () { return definition_js_11.definition; } });
|
|
26
|
+
const definition_js_12 = require("./upscale-video/definition.js");
|
|
27
|
+
Object.defineProperty(exports, "upscaleVideoDefinition", { enumerable: true, get: function () { return definition_js_12.definition; } });
|
|
28
|
+
const definition_js_13 = require("./refine-result/definition.js");
|
|
29
|
+
Object.defineProperty(exports, "refineResultDefinition", { enumerable: true, get: function () { return definition_js_13.definition; } });
|
|
30
|
+
const definition_js_14 = require("./animate-photo/definition.js");
|
|
31
|
+
Object.defineProperty(exports, "animatePhotoDefinition", { enumerable: true, get: function () { return definition_js_14.definition; } });
|
|
32
|
+
const definition_js_15 = require("./change-angle/definition.js");
|
|
33
|
+
Object.defineProperty(exports, "changeAngleDefinition", { enumerable: true, get: function () { return definition_js_15.definition; } });
|
|
34
|
+
const definition_js_16 = require("./video-to-video/definition.js");
|
|
35
|
+
Object.defineProperty(exports, "videoToVideoDefinition", { enumerable: true, get: function () { return definition_js_16.definition; } });
|
|
36
|
+
const definition_js_17 = require("./stitch-video/definition.js");
|
|
37
|
+
Object.defineProperty(exports, "stitchVideoDefinition", { enumerable: true, get: function () { return definition_js_17.definition; } });
|
|
38
|
+
Object.defineProperty(exports, "STITCH_TRANSITION_TYPES", { enumerable: true, get: function () { return definition_js_17.STITCH_TRANSITION_TYPES; } });
|
|
39
|
+
const definition_js_18 = require("./orbit-video/definition.js");
|
|
40
|
+
Object.defineProperty(exports, "orbitVideoDefinition", { enumerable: true, get: function () { return definition_js_18.definition; } });
|
|
41
|
+
const definition_js_19 = require("./dance-montage/definition.js");
|
|
42
|
+
Object.defineProperty(exports, "danceMontageDefinition", { enumerable: true, get: function () { return definition_js_19.definition; } });
|
|
43
|
+
const definition_js_20 = require("./sound-to-video/definition.js");
|
|
44
|
+
Object.defineProperty(exports, "soundToVideoDefinition", { enumerable: true, get: function () { return definition_js_20.definition; } });
|
|
45
|
+
const definition_js_21 = require("./extend-video/definition.js");
|
|
46
|
+
Object.defineProperty(exports, "extendVideoDefinition", { enumerable: true, get: function () { return definition_js_21.definition; } });
|
|
47
|
+
const definition_js_22 = require("./replace-video-segment/definition.js");
|
|
48
|
+
Object.defineProperty(exports, "replaceVideoSegmentDefinition", { enumerable: true, get: function () { return definition_js_22.definition; } });
|
|
49
|
+
const definition_js_23 = require("./overlay-video/definition.js");
|
|
50
|
+
Object.defineProperty(exports, "overlayVideoDefinition", { enumerable: true, get: function () { return definition_js_23.definition; } });
|
|
51
|
+
Object.defineProperty(exports, "OVERLAY_POSITIONS", { enumerable: true, get: function () { return definition_js_23.OVERLAY_POSITIONS; } });
|
|
52
|
+
const definition_js_24 = require("./add-subtitles/definition.js");
|
|
53
|
+
Object.defineProperty(exports, "addSubtitlesDefinition", { enumerable: true, get: function () { return definition_js_24.definition; } });
|
|
54
|
+
Object.defineProperty(exports, "SUBTITLE_VERTICAL_POSITIONS", { enumerable: true, get: function () { return definition_js_24.SUBTITLE_VERTICAL_POSITIONS; } });
|
|
49
55
|
exports.generationToolDefinitions = [
|
|
50
|
-
definition_js_1.definition,
|
|
51
56
|
definition_js_2.definition,
|
|
52
57
|
definition_js_3.definition,
|
|
53
58
|
definition_js_4.definition,
|
|
59
|
+
definition_js_1.definition,
|
|
54
60
|
definition_js_5.definition,
|
|
55
61
|
definition_js_6.definition,
|
|
56
62
|
definition_js_7.definition,
|
|
@@ -68,6 +74,9 @@ exports.generationToolDefinitions = [
|
|
|
68
74
|
definition_js_19.definition,
|
|
69
75
|
definition_js_20.definition,
|
|
70
76
|
definition_js_21.definition,
|
|
77
|
+
definition_js_22.definition,
|
|
78
|
+
definition_js_23.definition,
|
|
79
|
+
definition_js_24.definition,
|
|
71
80
|
];
|
|
72
81
|
var dances_js_1 = require("./dance-montage/dances.js");
|
|
73
82
|
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;AA8CrF,wGA9CqB,0BAAuB,OA8CrB;AA7CzB,+DAAgF;AAmC9E,oGAnCqB,0BAAmB,OAmCrB;AAlCrB,qEAA6F;AAmC3F,2GAnCqB,0BAA0B,OAmCrB;AAlC5B,iEAAqF;AAmCnF,uGAnCqB,0BAAsB,OAmCrB;AAlCxB,kEAAuF;AA6CrF,wGA7CqB,0BAAuB,OA6CrB;AA5CzB,kEAAuF;AA0CrF,wGA1CqB,0BAAuB,OA0CrB;AAzCzB,mEAAyF;AA0CvF,yGA1CqB,0BAAwB,OA0CrB;AAzC1B,8DAA+E;AAqC7E,oGArCqB,0BAAmB,OAqCrB;AApCrB,+DAAiF;AAiC/E,qGAjCqB,0BAAoB,OAiCrB;AAhCtB,kEAAqF;AA6CnF,uGA7CqB,2BAAsB,OA6CrB;AA5CxB,kEAAqF;AA6CnF,uGA7CqB,2BAAsB,OA6CrB;AA5CxB,kEAAqF;AA6CnF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file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/tools/definitions/remove-background/definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,UAAU,EAAE,cAexB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.definition = void 0;
|
|
4
|
+
exports.definition = {
|
|
5
|
+
type: 'function',
|
|
6
|
+
function: {
|
|
7
|
+
name: 'remove_background',
|
|
8
|
+
description: 'Remove an image background with BiRefNet while preserving the original foreground. Returns a transparent PNG cutout by default, or a soft foreground mask. Uses the original source image without generative repainting; takes no prompt.',
|
|
9
|
+
parameters: {
|
|
10
|
+
type: 'object',
|
|
11
|
+
properties: {
|
|
12
|
+
sourceImageIndex: { type: 'integer', description: 'Original source image: negative indices select uploads (-1 is the first), non-negative indices select generated images. Omit to use the latest image.' },
|
|
13
|
+
source_image_url: { type: 'string', description: 'REST alternative to sourceImageIndex: retrievable source image URL.' },
|
|
14
|
+
applyMask: { type: 'boolean', description: 'True (default) returns a transparent cutout; false returns the soft mask.' },
|
|
15
|
+
},
|
|
16
|
+
required: [],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/remove-background/definition.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,2OAA2O;QACxP,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,gBAAgB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,uJAAuJ,EAAE;gBAC3M,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,qEAAqE,EAAE;gBACxH,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,2EAA2E,EAAE;aACzH;YACD,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/tools/definitions/segment-image/definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,eAAO,MAAM,UAAU,EAAE,cAqBxB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.definition = void 0;
|
|
4
|
+
const coordinate = { type: 'number', minimum: 0, maximum: 1 };
|
|
5
|
+
exports.definition = {
|
|
6
|
+
type: 'function',
|
|
7
|
+
function: {
|
|
8
|
+
name: 'segment_image',
|
|
9
|
+
description: 'Select objects in an original image with SAM 3. Returns a PNG mask or transparent cutout without repainting the source. Coordinates refer to the original image, normalized 0–1. Supply an object description, a positive point, or a box. Text can combine with boxes; points can combine with at most one box, never with text.',
|
|
10
|
+
parameters: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
sourceImageIndex: { type: 'integer', description: 'Original source: negative indices select uploads (-1 is the first), non-negative indices select generated images. Omit to use the latest image.' },
|
|
14
|
+
source_image_url: { type: 'string', description: 'REST alternative: retrievable original image URL.' },
|
|
15
|
+
text: { type: 'string', minLength: 1, maxLength: 240, description: 'Object or concept to select, such as the red suitcase.' },
|
|
16
|
+
points: { type: 'array', maxItems: 32, items: { type: 'object', properties: { x: coordinate, y: coordinate, label: { type: 'string', enum: ['positive', 'negative'] } }, required: ['x', 'y', 'label'], additionalProperties: false } },
|
|
17
|
+
boxes: { type: 'array', maxItems: 16, items: { type: 'object', properties: { x0: coordinate, y0: coordinate, x1: coordinate, y1: coordinate, label: { type: 'string', enum: ['positive', 'negative'], description: 'Optional inclusion/exclusion label; defaults to positive. Negative boxes require a text prompt.' } }, required: ['x0', 'y0', 'x1', 'y1'], additionalProperties: false } },
|
|
18
|
+
maxInstances: { type: 'integer', minimum: 1, maximum: 16, description: 'Keep only the strongest N selections. Omit to keep every selection above threshold.' },
|
|
19
|
+
threshold: { type: 'number', minimum: 0, maximum: 1, description: 'Minimum object confidence. Default 0.5.' },
|
|
20
|
+
multimask: { type: 'boolean', description: 'Return multiple candidate masks for point selection. Default true for points.' },
|
|
21
|
+
applyMask: { type: 'boolean', description: 'Return the original foreground with transparency instead of the binary mask. Default false.' },
|
|
22
|
+
},
|
|
23
|
+
required: [],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/segment-image/definition.ts"],"names":[],"mappings":";;;AAEA,MAAM,UAAU,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;AACjD,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,mUAAmU;QAChV,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,gBAAgB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,iJAAiJ,EAAE;gBACrM,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,mDAAmD,EAAE;gBACtG,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,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IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,6FAA6F,EAAE;aAC3I;YACD,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export * from './shared/imageEncoding.js';
|
|
|
20
20
|
export * from './shared/slotFailureSummary.js';
|
|
21
21
|
export * from './shared/visionDescriptionCache.js';
|
|
22
22
|
export * from './shared/downloadFilename.js';
|
|
23
|
-
export { addSubtitlesDefinition, animatePhotoDefinition, applyStyleDefinition, changeAngleDefinition, danceMontageDefinition, editImageDefinition, extendVideoDefinition, generateImageDefinition, generateMusicDefinition, generateSpeechDefinition, generateVideoDefinition, generationToolDefinitions, orbitVideoDefinition, overlayVideoDefinition, refineResultDefinition, replaceVideoSegmentDefinition, restorePhotoDefinition, upscaleImageDefinition, upscaleVideoDefinition, soundToVideoDefinition, stitchVideoDefinition, videoToVideoDefinition, OVERLAY_POSITIONS, STITCH_TRANSITION_TYPES, SUBTITLE_VERTICAL_POSITIONS, DANCE_PRESETS, resolveDancePresetForRequest, } from './definitions/index.js';
|
|
23
|
+
export { addSubtitlesDefinition, imageTo3dDefinition, removeBackgroundDefinition, segmentImageDefinition, animatePhotoDefinition, applyStyleDefinition, changeAngleDefinition, danceMontageDefinition, editImageDefinition, extendVideoDefinition, generateImageDefinition, generateMusicDefinition, generateSpeechDefinition, generateVideoDefinition, generationToolDefinitions, orbitVideoDefinition, overlayVideoDefinition, refineResultDefinition, replaceVideoSegmentDefinition, restorePhotoDefinition, upscaleImageDefinition, upscaleVideoDefinition, soundToVideoDefinition, stitchVideoDefinition, videoToVideoDefinition, OVERLAY_POSITIONS, STITCH_TRANSITION_TYPES, SUBTITLE_VERTICAL_POSITIONS, DANCE_PRESETS, resolveDancePresetForRequest, } from './definitions/index.js';
|
|
24
24
|
export type { DancePreset, ToolDefinition } from './definitions/index.js';
|
|
25
25
|
export { isToolResultErr, isToolResultOk, mapLegacyToolErrorCategory, toolErr, toolOk, } from './result.js';
|
|
26
26
|
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,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,4BAA4B,EAC5B,iCAAiC,GAClC,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EACV,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,GAC/B,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AAIpC,OAA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AAa,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 = exports.DANCE_PRESETS = exports.SUBTITLE_VERTICAL_POSITIONS = exports.STITCH_TRANSITION_TYPES = exports.OVERLAY_POSITIONS = exports.videoToVideoDefinition = exports.stitchVideoDefinition = exports.soundToVideoDefinition = exports.upscaleVideoDefinition = exports.upscaleImageDefinition = exports.restorePhotoDefinition = exports.replaceVideoSegmentDefinition = void 0;
|
|
17
|
+
exports.generationToolDefinitions = exports.generateVideoDefinition = exports.generateSpeechDefinition = exports.generateMusicDefinition = exports.generateImageDefinition = exports.extendVideoDefinition = exports.editImageDefinition = exports.danceMontageDefinition = exports.changeAngleDefinition = exports.applyStyleDefinition = exports.animatePhotoDefinition = exports.segmentImageDefinition = exports.removeBackgroundDefinition = exports.imageTo3dDefinition = exports.addSubtitlesDefinition = exports.MINIMAX_H3_AUDIO_GUIDE_PROMPT_DESCRIPTION = exports.MINIMAX_H3_AUDIO_GUIDE_NEGATIVE_PROMPT_DESCRIPTION = exports.MINIMAX_H3_AUDIO_GUIDE_GENERATE_AUDIO_DESCRIPTION = exports.MINIMAX_H3_AUDIO_GUIDE_DURATION_DESCRIPTION = exports.MINIMAX_H3_AUDIO_GUIDE_AUDIO_START_DESCRIPTION = exports.MINIMAX_H3_AUDIO_GUIDE_SOURCE_IMAGE_INDEX_DESCRIPTION = exports.MINIMAX_H3_AUDIO_GUIDE_END_IMAGE_INDEX_DESCRIPTION = exports.MINIMAX_H3_AUDIO_GUIDE_SOUND_TO_VIDEO_MODEL_DESCRIPTION = exports.MINIMAX_H3_AUDIO_GUIDE_SOUND_TO_VIDEO_FUNCTION_DESCRIPTION = 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 = exports.SUBTITLE_VERTICAL_POSITIONS = exports.STITCH_TRANSITION_TYPES = exports.OVERLAY_POSITIONS = exports.videoToVideoDefinition = exports.stitchVideoDefinition = exports.soundToVideoDefinition = exports.upscaleVideoDefinition = exports.upscaleImageDefinition = exports.restorePhotoDefinition = exports.replaceVideoSegmentDefinition = exports.refineResultDefinition = exports.overlayVideoDefinition = exports.orbitVideoDefinition = 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");
|
|
@@ -70,6 +70,9 @@ __exportStar(require("./shared/visionDescriptionCache.js"), exports);
|
|
|
70
70
|
__exportStar(require("./shared/downloadFilename.js"), exports);
|
|
71
71
|
var index_js_1 = require("./definitions/index.js");
|
|
72
72
|
Object.defineProperty(exports, "addSubtitlesDefinition", { enumerable: true, get: function () { return index_js_1.addSubtitlesDefinition; } });
|
|
73
|
+
Object.defineProperty(exports, "imageTo3dDefinition", { enumerable: true, get: function () { return index_js_1.imageTo3dDefinition; } });
|
|
74
|
+
Object.defineProperty(exports, "removeBackgroundDefinition", { enumerable: true, get: function () { return index_js_1.removeBackgroundDefinition; } });
|
|
75
|
+
Object.defineProperty(exports, "segmentImageDefinition", { enumerable: true, get: function () { return index_js_1.segmentImageDefinition; } });
|
|
73
76
|
Object.defineProperty(exports, "animatePhotoDefinition", { enumerable: true, get: function () { return index_js_1.animatePhotoDefinition; } });
|
|
74
77
|
Object.defineProperty(exports, "applyStyleDefinition", { enumerable: true, get: function () { return index_js_1.applyStyleDefinition; } });
|
|
75
78
|
Object.defineProperty(exports, "changeAngleDefinition", { enumerable: true, get: function () { return index_js_1.changeAngleDefinition; } });
|
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,kHAAA,cAAc,OAAA;AACd,mHAAA,eAAe,OAAA;AACf,qHAAA,iBAAiB,OAAA;AAGnB,2DAAyC;AACzC,mEAAiD;AACjD,qEAAmD;AACnD,wEAMwC;AALtC,kIAAA,yBAAyB,OAAA;AACzB,2IAAA,kCAAkC,OAAA;AAClC,mIAAA,0BAA0B,OAAA;AAC1B,oIAAA,2BAA2B,OAAA;AAC3B,wIAAA,+BAA+B,OAAA;AAOjC,4EAK0C;AAJxC,sIAAA,2BAA2B,OAAA;AAC3B,wIAAA,6BAA6B,OAAA;AAC7B,uIAAA,4BAA4B,OAAA;AAC5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AA;AACtB,kHAAA,sBAAsB,OAAA;AACtB,yHAAA,6BAA6B,OAAA;AAC7B,kHAAA,sBAAsB,OAAA;AACtB,kHAAA,sBAAsB,OAAA;AACtB,kHAAA,sBAAsB,OAAA;AACtB,kHAAA,sBAAsB,OAAA;AACtB,iHAAA,qBAAqB,OAAA;AACrB,kHAAA,sBAAsB,OAAA;AACtB,6GAAA,iBAAiB,OAAA;AACjB,mHAAA,uBAAuB,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"}
|
package/dist/tools/result.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type LegacyToolErrorCategory = 'schema_validation' | 'business_rule' | 'p
|
|
|
3
3
|
export declare function mapLegacyToolErrorCategory(category: LegacyToolErrorCategory): ToolErrorCode;
|
|
4
4
|
export interface ToolResultAsset {
|
|
5
5
|
asset_id: string;
|
|
6
|
-
type: 'image' | 'video' | 'audio';
|
|
6
|
+
type: 'image' | 'video' | 'audio' | 'model';
|
|
7
7
|
url?: string;
|
|
8
8
|
width?: number;
|
|
9
9
|
height?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../src/tools/result.ts"],"names":[],"mappings":"AAuBA,MAAM,MAAM,aAAa,GACrB,mBAAmB,GACnB,uBAAuB,GACvB,iBAAiB,GACjB,4BAA4B,GAC5B,mBAAmB,GACnB,kBAAkB,GAClB,mBAAmB,GACnB,qBAAqB,GACrB,iBAAiB,GACjB,qBAAqB,GACrB,gBAAgB,GAChB,eAAe,CAAC;AAMpB,MAAM,MAAM,uBAAuB,GAC/B,mBAAmB,GACnB,eAAe,GACf,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,sBAAsB,GACtB,SAAS,GACT,WAAW,GACX,iBAAiB,CAAC;AAOtB,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,uBAAuB,GAAG,aAAa,CAY3F;AAOD,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../src/tools/result.ts"],"names":[],"mappings":"AAuBA,MAAM,MAAM,aAAa,GACrB,mBAAmB,GACnB,uBAAuB,GACvB,iBAAiB,GACjB,4BAA4B,GAC5B,mBAAmB,GACnB,kBAAkB,GAClB,mBAAmB,GACnB,qBAAqB,GACrB,iBAAiB,GACjB,qBAAqB,GACrB,gBAAgB,GAChB,eAAe,CAAC;AAMpB,MAAM,MAAM,uBAAuB,GAC/B,mBAAmB,GACnB,eAAe,GACf,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,sBAAsB,GACtB,SAAS,GACT,WAAW,GACX,iBAAiB,CAAC;AAOtB,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,uBAAuB,GAAG,aAAa,CAY3F;AAOD,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE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E/B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAGD,MAAM,MAAM,UAAU,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACpD,YAAY,CAAC,OAAO,CAAC,GACrB,aAAa,CAAC;AAOlB,wBAAgB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtD,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,QAAQ,GAAG,eAAe,CAAC,GACpE,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC,CAAC,GACjE,YAAY,CAAC,OAAO,CAAC,CAOvB;AAGD,wBAAgB,OAAO,CACrB,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,GAChC,aAAa,CAEf;AAGD,wBAAgB,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxD,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GACpB,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,CAE3B;AAGD,wBAAgB,eAAe,CAC7B,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,GAC1B,MAAM,IAAI,aAAa,CAEzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loraGuidance.d.ts","sourceRoot":"","sources":["../../../src/tools/shared/loraGuidance.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"loraGuidance.d.ts","sourceRoot":"","sources":["../../../src/tools/shared/loraGuidance.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,4BAA4B,QAY+M,CAAC;AAGzP,eAAO,MAAM,uBAAuB,QAUuD,CAAC;AAG5F,eAAO,MAAM,sBAAsB,QAGsC,CAAC;AAG1E,eAAO,MAAM,6BAA6B,QAGwC,CAAC;AAcnF,eAAO,MAAM,+BAA+B,QAgB+M,CAAC;AAG5P,eAAO,MAAM,gCAAgC,QAY5B,CAAC;AAQlB,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAMxE"}
|
|
@@ -13,7 +13,7 @@ exports.KREA2_LORA_CATALOG_REFERENCE = 'Bipolar sliders — each id names its PO
|
|
|
13
13
|
'body horror), krea2-filter-bypass-2 and krea2-filter-bypass-3 (restore expressions, anatomy ' +
|
|
14
14
|
'and poses the base model flattens; try the 2-vector first). ' +
|
|
15
15
|
'Exact per-LoRA ranges, maturity flags and the full contract: ' +
|
|
16
|
-
'GET /v1/loras/comfy?modelId=<model>.
|
|
16
|
+
'GET /v1/loras/comfy?modelId=<model>. Personal imports use authenticated GET /v1/loras/personal/catalog: use an owned ready personal- id, its modelIds, strength range and requirements. Never invent ids or silently omit a requested personal LoRA.';
|
|
17
17
|
exports.LORA_STRENGTHS_GUIDANCE = 'Strength for each LoRA in loras, in the same order. Omitting the array uses 1.0 for every ' +
|
|
18
18
|
'LoRA, which is not each LoRA\'s catalog default — krea2-chest-firmness, ' +
|
|
19
19
|
'krea2-nipple-projection and krea2-height default to 0 (no effect) — so prefer explicit ' +
|
|
@@ -45,7 +45,7 @@ exports.H3_VIDEO_LORA_CATALOG_REFERENCE = 'Five LoRAs are published for MiniMax
|
|
|
45
45
|
+ 'movement — weight shifts, strides, turns and gestures that follow through — for dance, '
|
|
46
46
|
+ 'sport, walking and other full-body shots. Both AdaptiveVision LoRAs work best with short, '
|
|
47
47
|
+ 'simple prompt sentences and are not validated on reference-to-video. h3-mystic-xxx-v4 is an '
|
|
48
|
-
+ 'uncensored adult fine-tune. Do not invent ids.';
|
|
48
|
+
+ 'uncensored adult fine-tune. Personal imports are discovered through authenticated GET /v1/loras/personal/catalog; use only owned ready ids with the selected model in modelIds, and respect their strength range and requirements. Do not invent ids.';
|
|
49
49
|
exports.H3_VIDEO_LORA_STRENGTHS_GUIDANCE = 'Strength for each LoRA in loras, in the same order. Omitting the array applies 1.0 to every '
|
|
50
50
|
+ 'LoRA, which is not every LoRA\'s catalog default and for h3-realism-people is already at the '
|
|
51
51
|
+ 'top of its band, so send explicit values. Video LoRAs are positive-only — unlike the bipolar Krea 2 image '
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loraGuidance.js","sourceRoot":"","sources":["../../../src/tools/shared/loraGuidance.ts"],"names":[],"mappings":";;;AAsHA,kDAMC;AAhGY,QAAA,4BAA4B,GACvC,0FAA0F;IAC1F,4FAA4F;IAC5F,+FAA+F;IAC/F,8FAA8F;IAC9F,oFAAoF;IACpF,0FAA0F;IAC1F,0FAA0F;IAC1F,4FAA4F;IAC5F,8FAA8F;IAC9F,8DAA8D;IAC9D,+DAA+D;IAC/D,
|
|
1
|
+
{"version":3,"file":"loraGuidance.js","sourceRoot":"","sources":["../../../src/tools/shared/loraGuidance.ts"],"names":[],"mappings":";;;AAsHA,kDAMC;AAhGY,QAAA,4BAA4B,GACvC,0FAA0F;IAC1F,4FAA4F;IAC5F,+FAA+F;IAC/F,8FAA8F;IAC9F,oFAAoF;IACpF,0FAA0F;IAC1F,0FAA0F;IAC1F,4FAA4F;IAC5F,8FAA8F;IAC9F,8DAA8D;IAC9D,+DAA+D;IAC/D,sPAAsP,CAAC;AAG5O,QAAA,uBAAuB,GAClC,4FAA4F;IAC5F,0EAA0E;IAC1E,yFAAyF;IACzF,4FAA4F;IAC5F,gFAAgF;IAChF,uFAAuF;IACvF,6FAA6F;IAC7F,oFAAoF;IACpF,yFAAyF;IACzF,yFAAyF,CAAC;AAG/E,QAAA,sBAAsB,GACjC,4FAA4F;IAC5F,8FAA8F;IAC9F,uEAAuE,CAAC;AAG7D,QAAA,6BAA6B,GACxC,yFAAyF;IACzF,6FAA6F;IAC7F,gFAAgF,CAAC;AActE,QAAA,+BAA+B,GAC1C,gFAAgF;MAC9E,8FAA8F;MAC9F,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SAAS,GAAG,OAAO,EACnB,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAElC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,eAAe,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC,GACrD,cAAc,CAAC,aAAa,EAAE,GAAG,EAAE,WAAW,GAAG,SAAS,CAAC,CA+F7D;AAkqBD,wBAAsB,SAAS,CAAC,MAAM,EAAE;IACtC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,KAAK,EAAE,QAAQ,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,OAAO,CAAC,GAAG,CAAC,CAsBf"}
|
|
@@ -432,6 +432,8 @@ function versionFromToolResult(rawResult, stageId, tool, args) {
|
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
434
|
function artifactKindForTool(tool) {
|
|
435
|
+
if (tool === 'image_to_3d')
|
|
436
|
+
return 'model';
|
|
435
437
|
if (tool === 'animate_photo' || tool === 'generate_video' || tool === 'sound_to_video'
|
|
436
438
|
|| tool === 'video_to_video' || tool === 'stitch_video' || tool === 'orbit_video'
|
|
437
439
|
|| tool === 'dance_montage' || tool === 'upscale_video')
|