@sogni-ai/sogni-creative-agent-skill 3.72.2 → 3.73.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ name: sogni-creative-agent-skill
3
3
  description: "Generate and edit images, create Pixal3D 3D models, remove backgrounds with BiRefNet, synthesize Qwen3-TTS speech, upscale images, create video and music, animate image folders into seamless reels, and manage reusable personas with Sogni AI. Use when a Hermes user asks to draw, render, upscale, edit or restyle an image, animate an image, make a video, create music or lyrics, build a media workflow, build a playable world, apply a saved identity, or refine an earlier Sogni result."
4
4
  license: MIT
5
5
  metadata:
6
- version: "3.72.2"
6
+ version: "3.73.1"
7
7
  author: Sogni AI
8
8
  hermes:
9
9
  category: creative
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.72.2",
3
+ "version": "3.73.1",
4
4
  "description": "Sogni Creative Agent: image, 3D, speech, video, and music generation via Sogni AI's decentralized GPU network. Supports personas, persistent memories, style transfer, and multi-step creative workflows.",
5
5
  "author": {
6
6
  "name": "Sogni AI",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.72.2",
3
+ "version": "3.73.1",
4
4
  "description": "Create images, 3D models, speech, generative video, music, and image-folder loops with Sogni AI.",
5
5
  "author": {
6
6
  "name": "Sogni AI",
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [3.73.1] - 2026-11-22
2
+
3
+ - Media references continue to download through configured proxies across supported Node versions, with clearer failures for invalid, oversized or stalled downloads.
4
+ - Local media processing accepts self-contained images, audio and video. Playlists and manifests that refer to other files are refused. Missing media tools and corrupt files retain their existing error behavior.
5
+ - Long help and model prompt guides finish writing before the CLI exits, including when another program reads the output through a pipe.
6
+
7
+ ## [3.73.0] - 2026-11-21
8
+
9
+ - In the local MCP server used by Claude Desktop, Codex and goose, upscale an image up to 16K with `upscale_image`, upscale a video up to 2160p with `upscale_video`, and turn text into speech in a preset, cloned or designed voice with `generate_speech`. Upscaled images show inline in the chat like generated ones.
10
+
1
11
  ## [3.72.2] - 2026-11-21
2
12
 
3
13
  - In the local MCP server used by Claude Desktop, Codex and goose, a prompt that starts with "-" now renders instead of failing with "Unknown option", and a prompt such as "--personality-clear" is sent to the model as text and is never run as a command.
package/README.md CHANGED
@@ -155,7 +155,7 @@ Then ask your agent to do something:
155
155
 
156
156
  - **Node.js ≥ 22.11.0**
157
157
  - **Sogni API key** ([API Keys page](https://dashboard.sogni.ai/api-key))
158
- - **`ffmpeg` + `ffprobe`** *(optional)* — required for local utilities such as `--angles-360-video`, `--concat-videos`, timestamped frame extraction, and `--verify-video`; `--upscale-video` needs `ffprobe`. Set `FFMPEG_PATH` / `FFPROBE_PATH` to override discovery (a leading `~` is expanded).
158
+ - **`ffmpeg` + `ffprobe`** *(optional)* — required for local utilities such as `--angles-360-video`, `--concat-videos`, timestamped frame extraction, and `--verify-video`; `--upscale-video` needs `ffprobe`, and when `ffprobe` is installed every ffmpeg step uses it to check its inputs first. Set `FFMPEG_PATH` / `FFPROBE_PATH` to override discovery (a leading `~` is expanded).
159
159
  - macOS, Linux, or Windows
160
160
 
161
161
  ---
@@ -453,6 +453,8 @@ Defaults live under `~/.config/sogni/` for credentials, last-render metadata, pe
453
453
  | `SOGNI_MEDIA_INBOUND_DIR` | Directory used by `--list-media` |
454
454
  | `OPENCLAW_CONFIG_PATH` | OpenClaw config file location |
455
455
  | `FFMPEG_PATH` | Custom `ffmpeg` binary |
456
+ | `FFPROBE_PATH` | Custom `ffprobe` binary |
457
+ | `SOGNI_MEDIA_DOWNLOAD_MAX_BYTES` | Largest download from one media URL (default: 536870912, 512 MiB); local files have no limit |
456
458
 
457
459
  ---
458
460
 
@@ -1153,7 +1155,9 @@ This skill is designed to be loaded into agent runtimes as a first-class capabil
1153
1155
  7. **Update notices for agents**
1154
1156
  When a newer version exists, any command may print one advisory stderr line — `[sogni-agent] Update available: <current> -> <latest> ...` — at most once per day (stdout JSON is never touched). Agents should relay it to the user and offer `sogni-agent self-update`, or run `sogni-agent --snooze-update` if the user declines. Interactive TTY users get a banner instead. Each failed check carries a `detail` string with the fix.
1155
1157
  8. **SSRF / URL safety**
1156
- The CLI validates every HTTP(S) media reference with an SSRF guard ([`ssrf-guard.mjs`](./ssrf-guard.mjs)) and re-validates each redirect hop on download. Localhost and private-network URLs are rejected; only public HTTPS references are forwarded as Seedance multimodal context.
1158
+ Media URL downloads accept public HTTP(S) hosts and validate redirects. Direct downloads check the address used for the connection. Configured environment proxies keep Node's existing behavior; the proxy remains responsible for its own DNS resolution and destination controls. Downloads stop above `SOGNI_MEDIA_DOWNLOAD_MAX_BYTES` (512 MiB by default) or after 30 seconds without data.
1159
+ 9. **Local media tools**
1160
+ `ffmpeg` and `ffprobe` read only local files, never a network address, and run with only `PATH`, `HOME`, the temp folder, locale and library-path variables: the Sogni API key does not reach them. Before ffmpeg reads an input, `ffprobe` checks its format, and a playlist, manifest, ffmpeg concat list or numbered image sequence is refused (`UNSAFE_MEDIA_INPUT`), so a file disguised as media cannot make ffmpeg convert the files it names. Without `ffprobe`, or for a file `ffprobe` cannot read, the file's first bytes are checked for an HLS playlist, ffconcat list, DASH manifest or IMF composition; any other file goes to ffmpeg as before, and a corrupt one fails with that step's error.
1157
1161
 
1158
1162
  ---
1159
1163
 
package/SKILL.md CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sogni-creative-agent-skill
3
3
  description: "CLI and agent skill for personal LoRAs, image, video, and music generation using Sogni AI's decentralized GPU network. Supports Pixal3D single- and multi-view image-to-GLB, BiRefNet background removal, Qwen3-TTS speech/voice cloning/design, MiniMax Music 3, SAM 3 object selection, promptless RTX VSR image upscaling through 16K, promptless FlashVSR and RelayVSR video upscaling up to 2160p, one-click image-folder loop reels, personas (people with saved photos and voices), persistent memories, custom personality, style transfer, angle synthesis, MiniMax H3/H3 Balanced/LightX2V Turbo/FastH3 Turbo (including audio-to-video from an uploaded track)/Seedance/HappyHorse/LTX/WAN video, music/lyrics, hosted chat, durable workflows, replay records, and multi-step creative workflows. Ask the agent to \"draw\", \"generate\", \"create an image\", \"upscale an image\", \"upscale a video\", \"make a video/animate\", \"turn this image folder into a loop\", \"make music\", \"build a playable world\", \"apply a style\", or \"generate me as a superhero\"."
4
4
  metadata:
5
- version: "3.72.2"
5
+ version: "3.73.1"
6
6
  homepage: https://sogni.ai
7
7
  openclaw:
8
8
  emoji: "🎨"
@@ -34,10 +34,10 @@ and relays the base64 — token-expensive, so previews beat full-res originals.
34
34
 
35
35
  ## Inline images
36
36
 
37
- Successful `generate_image`, `photobooth`, and frame-extraction calls attach
38
- the rendered image(s) to the tool result as MCP image content blocks, which
39
- Claude Desktop displays inline (up to 4 per call). Previews auto-fit the
40
- host's 1MB tool-result limit: they share a ~700KB cumulative raw-byte budget,
37
+ Successful `generate_image`, `upscale_image`, `photobooth`, and frame-extraction
38
+ calls attach the rendered image(s) to the tool result as MCP image content
39
+ blocks, which Claude Desktop displays inline (up to 4 per call). Previews
40
+ auto-fit the host's 1MB tool-result limit: they share a ~700KB cumulative raw-byte budget,
41
41
  and any image over the remaining budget is downscaled via a `sharp` ladder
42
42
  (1024px/q80 → 768px/q70 → 512px/q60), or skipped with a note if none fits.
43
43
  The text block always keeps the full-resolution URL / saved path. Set
@@ -2,8 +2,8 @@
2
2
  "manifest_version": "0.3",
3
3
  "name": "sogni-creative-agent",
4
4
  "display_name": "Sogni Creative Agent",
5
- "version": "3.72.2",
6
- "description": "Generate images, video, and music on Sogni AI's decentralized GPU network — with personas, memories, and safe video editing tools.",
5
+ "version": "3.73.1",
6
+ "description": "Generate images, video, music, and speech, and upscale images and video, on Sogni AI's decentralized GPU network — with personas, memories, and safe video editing tools.",
7
7
  "author": { "name": "Sogni AI", "url": "https://sogni.ai" },
8
8
  "homepage": "https://sogni.ai",
9
9
  "server": {
@@ -16,7 +16,7 @@
16
16
  import { extname } from 'node:path';
17
17
  import { PREVIEW_SOURCE_MAX_BYTES, readPreviewFile, readPreviewUrl } from './preview-source.mjs';
18
18
 
19
- const INLINE_TOOLS = new Set(['generate_image', 'photobooth']);
19
+ const INLINE_TOOLS = new Set(['generate_image', 'photobooth', 'upscale_image']);
20
20
  const FRAME_ACTIONS = new Set(['extract_first_frame', 'extract_last_frame']);
21
21
  const MAX_INLINE_IMAGES = 4;
22
22
  // Cumulative raw-byte budget across all inline images. ≈933KB once base64-
@@ -488,6 +488,127 @@ export const TOOLS = [
488
488
  return ['--balances', '--json', '--no-update-check'];
489
489
  },
490
490
  },
491
+ {
492
+ name: 'upscale_image',
493
+ description:
494
+ 'Enlarge one image with NVIDIA RTX VSR, up to 15360 px (16K) on the long edge. ' +
495
+ 'Promptless: the picture comes back sharper and larger with nothing added or changed; ' +
496
+ 'to change what it shows, use generate_image with context_images. ' +
497
+ 'The result is attached inline in the tool result. ' + CHAT_ATTACHMENT_NOTE,
498
+ inputSchema: {
499
+ type: 'object',
500
+ properties: {
501
+ image: str('Absolute path or URL of the image to upscale'),
502
+ ...RENDER_OPTIONS,
503
+ scale: { type: 'number', enum: [2, 3, 4], description: 'Long-edge multiplier (default 2)' },
504
+ target_longest_edge: num('Exact output long edge in px, 512-15360, instead of scale; e.g. 3840 for 4K, 7680 for 8K'),
505
+ output_path: str('Absolute path to save: .png, or .jpg when the long edge passes 7680 px (optional)'),
506
+ timeout_seconds: num('Timeout override (default 120)'),
507
+ },
508
+ required: ['image'],
509
+ },
510
+ buildArgs(input) {
511
+ const image = required(input, 'image', 'a path or URL of the image to upscale');
512
+ const args = [...GEN_BASE, '--upscale', String(image)];
513
+ pushRenderOptions(args, input);
514
+ push(args, '--upscale-scale', input.scale);
515
+ push(args, '--target-longest-edge', input.target_longest_edge);
516
+ push(args, '-o', input.output_path);
517
+ push(args, '-t', input.timeout_seconds);
518
+ return args;
519
+ },
520
+ },
521
+ {
522
+ name: 'upscale_video',
523
+ description:
524
+ 'Upscale one video to 1080p, 1440p or 2160p, keeping its frames, frame rate, length, aspect ratio and audio. ' +
525
+ 'Promptless: nothing in the picture is added or changed; to change content or motion, use generate_video. ' +
526
+ 'Rendering takes minutes; prefer output_path (absolute .mp4). ' + CHAT_ATTACHMENT_NOTE,
527
+ inputSchema: {
528
+ type: 'object',
529
+ properties: {
530
+ video: str('Absolute path or URL of the video to upscale (up to 100 MB)'),
531
+ ...RENDER_OPTIONS,
532
+ upscale_model: {
533
+ type: 'string',
534
+ enum: ['flashvsr', 'relayvsr'],
535
+ description: 'flashvsr (default): up to 1440p, sources up to about 1344x768. relayvsr (recommended): up to 2160p, sources up to 1920x1088',
536
+ },
537
+ resolution: {
538
+ type: 'number',
539
+ enum: [1080, 1440, 2160],
540
+ description: 'Output short edge; 2160 needs relayvsr. Default 1440, or 1080 for sources under 720p',
541
+ },
542
+ output_path: str('Absolute .mp4 path to save (optional)'),
543
+ timeout_seconds: num('Timeout override (default 1800)'),
544
+ },
545
+ required: ['video'],
546
+ },
547
+ buildArgs(input) {
548
+ const video = required(input, 'video', 'a path or URL of the video to upscale');
549
+ const args = [...GEN_BASE, '--upscale-video', String(video)];
550
+ pushRenderOptions(args, input);
551
+ push(args, '--upscale-model', input.upscale_model);
552
+ push(args, '--upscale-resolution', input.resolution);
553
+ push(args, '-o', input.output_path);
554
+ push(args, '-t', input.timeout_seconds);
555
+ return args;
556
+ },
557
+ },
558
+ {
559
+ name: 'generate_speech',
560
+ description:
561
+ 'Speak text aloud in a preset, cloned or designed voice and return the audio. ' +
562
+ 'The text is read exactly as written, so pass only the words to say and put delivery direction in voice_description. ' +
563
+ 'For singing or songs, use generate_music. Prefer output_path. ' + CHAT_ATTACHMENT_NOTE,
564
+ inputSchema: {
565
+ type: 'object',
566
+ properties: {
567
+ text: str('The exact words to speak, up to 4096 characters; no stage directions or speaker labels'),
568
+ ...RENDER_OPTIONS,
569
+ mode: {
570
+ type: 'string',
571
+ enum: ['voice', 'clone', 'design'],
572
+ description: 'voice (default): a preset voice. clone: the voice in voice_reference. design: a new voice from voice_description',
573
+ },
574
+ voice: {
575
+ type: 'string',
576
+ enum: ['serena', 'vivian', 'uncle_fu', 'ryan', 'aiden', 'ono_anna', 'sohee', 'eric', 'dylan'],
577
+ description: 'Preset for mode voice (default serena). Female: serena, vivian, ono_anna, sohee. Male: uncle_fu, ryan, aiden, eric, dylan',
578
+ },
579
+ voice_description: str('How the voice sounds and reads, e.g. "warm, unhurried, slightly amused"; required for design, optional for voice, not used by clone'),
580
+ voice_reference: str('Absolute path or URL of a 3-30 second recording of the voice to clone (required for clone)'),
581
+ voice_transcript: str('The words spoken in voice_reference (clone, optional)'),
582
+ creativity: num('Sampling temperature, 0.1-2'),
583
+ language: {
584
+ type: 'string',
585
+ enum: ['auto', 'english', 'chinese', 'japanese', 'korean', 'german', 'french', 'russian', 'portuguese', 'spanish', 'italian'],
586
+ description: 'Spoken language (default auto)',
587
+ },
588
+ output_path: str('Absolute audio file path to save; its extension must match audio_format (optional)'),
589
+ audio_format: { type: 'string', enum: ['wav', 'mp3', 'flac'], description: 'Default wav' },
590
+ timeout_seconds: num('Timeout override (default 600)'),
591
+ },
592
+ required: ['text'],
593
+ },
594
+ buildArgs(input) {
595
+ const text = required(input, 'text', 'the words to speak');
596
+ const args = [...GEN_BASE, '--speech'];
597
+ pushRenderOptions(args, input);
598
+ push(args, '--speech-mode', input.mode);
599
+ push(args, '--speech-voice', input.voice);
600
+ push(args, '--voice-description', input.voice_description);
601
+ push(args, '--voice-reference', input.voice_reference);
602
+ push(args, '--voice-transcript', input.voice_transcript);
603
+ push(args, '--speech-creativity', input.creativity);
604
+ push(args, '--language', input.language);
605
+ push(args, '-o', input.output_path);
606
+ push(args, '--output-format', input.audio_format);
607
+ push(args, '-t', input.timeout_seconds);
608
+ args.push('--', String(text));
609
+ return args;
610
+ },
611
+ },
491
612
  ];
492
613
 
493
614
  export function getTool(name) {
@@ -2,7 +2,7 @@
2
2
  "id": "sogni-creative-agent-skill",
3
3
  "name": "Sogni Creative Agent Skill — Image, Video & Music Generation",
4
4
  "description": "Agent skill and CLI for Sogni AI image, video, and music generation.",
5
- "version": "3.72.2",
5
+ "version": "3.73.1",
6
6
  "skills": [
7
7
  "."
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sogni-ai/sogni-creative-agent-skill",
3
- "version": "3.72.2",
3
+ "version": "3.73.1",
4
4
  "description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, 3D, speech, video, and music generation.",
5
5
  "type": "module",
6
6
  "main": "sogni-agent.mjs",