@sogni-ai/sogni-creative-agent-skill 3.40.1 → 3.42.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/.agents/skills/sogni-creative-agent-skill/SKILL.md +4 -1
- package/.agents/skills/sogni-creative-agent-skill/references/hosted-api.md +11 -2
- package/.agents/skills/sogni-creative-agent-skill/references/models.md +21 -0
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +24 -0
- package/README.md +29 -3
- package/SKILL.md +13 -3
- package/attribution.mjs +3 -0
- package/desktop-extension/README.md +14 -5
- package/desktop-extension/manifest.json +1 -1
- package/desktop-extension/server/index.mjs +0 -0
- package/desktop-extension/server/resolve.mjs +10 -2
- package/generated/creative-agent-runtime.mjs +132 -3
- package/host-launchers/goose.mjs +4 -0
- package/llm.txt +10 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +8 -5
- package/references/hosted-api.md +11 -2
- package/references/models.md +21 -0
- package/scripts/build-mcpb.mjs +44 -0
- package/skill-package.json +1 -1
- package/skills/README.md +1 -1
- package/skills/video_editing.md +4 -1
- package/sogni-agent.mjs +290 -9
- package/version.mjs +1 -1
package/llm.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# sogni-creative-agent-skill
|
|
2
2
|
|
|
3
3
|
Agent skill and CLI for Sogni AI image, video, and music generation. Works as
|
|
4
|
-
a skill source for Claude Code, OpenAI Codex CLI, Hermes Agent, OpenClaw,
|
|
4
|
+
a skill source for Claude Code, OpenAI Codex CLI, Goose, Hermes Agent, OpenClaw,
|
|
5
5
|
Manus AI, and other SKILL.md-aware agent runtimes.
|
|
6
6
|
|
|
7
7
|
## Install (pick the integration that matches your environment)
|
|
@@ -38,6 +38,14 @@ npx setup-sogni-agent-skill --only=hermes
|
|
|
38
38
|
hermes skills install skills-sh/sogni-ai/sogni-creative-agent-skill/sogni-creative-agent-skill
|
|
39
39
|
npm install -g @sogni-ai/sogni-creative-agent-skill@latest
|
|
40
40
|
|
|
41
|
+
# Goose Agent Skill (install the skill plus the globally available CLI)
|
|
42
|
+
npx skills add Sogni-AI/sogni-creative-agent-skill --global --agent goose --skill sogni-creative-agent-skill --yes
|
|
43
|
+
npm install -g @sogni-ai/sogni-creative-agent-skill@latest
|
|
44
|
+
|
|
45
|
+
# Goose MCP extension (temporary session; configure the same command permanently
|
|
46
|
+
# through `goose configure`, or install it from the public Extensions directory)
|
|
47
|
+
goose session --with-extension "npx -y --package @sogni-ai/sogni-creative-agent-skill@latest sogni-agent-mcp"
|
|
48
|
+
|
|
41
49
|
# OpenClaw plugin (the npm package is scoped — use the npm: source prefix)
|
|
42
50
|
openclaw plugins install npm:@sogni-ai/sogni-creative-agent-skill
|
|
43
51
|
|
|
@@ -72,6 +80,7 @@ the host that ran it. Use the shim matching your runtime wherever these docs say
|
|
|
72
80
|
|
|
73
81
|
```bash
|
|
74
82
|
sogni-agent-hermes # Hermes Agent
|
|
83
|
+
sogni-agent-goose # Goose
|
|
75
84
|
sogni-agent-codex # OpenAI Codex CLI
|
|
76
85
|
sogni-agent-claude-code # Claude Code
|
|
77
86
|
sogni-agent # OpenClaw (auto-detected) and everything else
|
package/openclaw.plugin.json
CHANGED
|
@@ -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.
|
|
5
|
+
"version": "3.42.0",
|
|
6
6
|
"skills": [
|
|
7
7
|
"."
|
|
8
8
|
],
|
package/package.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sogni-ai/sogni-creative-agent-skill",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.42.0",
|
|
4
4
|
"description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, video, and music generation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "sogni-agent.mjs",
|
|
7
7
|
"bin": {
|
|
8
8
|
"sogni-agent": "sogni-agent.mjs",
|
|
9
|
+
"sogni-agent-mcp": "desktop-extension/server/index.mjs",
|
|
9
10
|
"sogni-agent-codex": "host-launchers/codex.mjs",
|
|
10
11
|
"sogni-agent-claude-code": "host-launchers/claude-code.mjs",
|
|
11
|
-
"sogni-agent-hermes": "host-launchers/hermes.mjs"
|
|
12
|
+
"sogni-agent-hermes": "host-launchers/hermes.mjs",
|
|
13
|
+
"sogni-agent-goose": "host-launchers/goose.mjs"
|
|
12
14
|
},
|
|
13
15
|
"scripts": {
|
|
14
16
|
"openclaw:sync": "node scripts/sync-openclaw-plugin.mjs",
|
|
@@ -24,7 +26,7 @@
|
|
|
24
26
|
"test:all": "npm run test && npm run test:integration",
|
|
25
27
|
"test:coverage": "npm run check:creative-agent-runtime && node --test --experimental-test-coverage --test-coverage-include=sogni-agent.mjs --test-coverage-lines=50 --test-coverage-branches=35 --test-coverage-functions=50 test/sogni-agent.test.mjs",
|
|
26
28
|
"test:coverage:full": "npm run check:creative-agent-runtime && node --test --experimental-test-coverage --test-coverage-include=sogni-agent.mjs --test-coverage-lines=50 --test-coverage-branches=35 --test-coverage-functions=50 test/*.test.mjs test/*.integration.mjs",
|
|
27
|
-
"build:mcpb": "
|
|
29
|
+
"build:mcpb": "node scripts/build-mcpb.mjs",
|
|
28
30
|
"prepack": "npm run check:version-sync && npm run check:creative-agent-source:strict && SOGNI_REQUIRE_RUNTIME_SYNC=1 npm run check:creative-agent-runtime",
|
|
29
31
|
"version": "npm run sync:version",
|
|
30
32
|
"prepare": "husky",
|
|
@@ -74,6 +76,7 @@
|
|
|
74
76
|
"llm.txt",
|
|
75
77
|
"skill-package.json",
|
|
76
78
|
"host-launchers/",
|
|
79
|
+
"scripts/build-mcpb.mjs",
|
|
77
80
|
"scripts/sync-version.mjs",
|
|
78
81
|
"scripts/sync-hermes-skill.mjs",
|
|
79
82
|
"scripts/check-version-sync.mjs",
|
|
@@ -95,13 +98,13 @@
|
|
|
95
98
|
"sogni-agent.mjs"
|
|
96
99
|
],
|
|
97
100
|
"dependencies": {
|
|
98
|
-
"@sogni-ai/sogni-intelligence-client": "3.
|
|
101
|
+
"@sogni-ai/sogni-intelligence-client": "3.29.1",
|
|
99
102
|
"execa": "^10.0.1",
|
|
100
103
|
"json5": "^2.2.3",
|
|
101
104
|
"sharp": "0.35.4"
|
|
102
105
|
},
|
|
103
106
|
"overrides": {
|
|
104
|
-
"@sogni-ai/sogni-client": "5.
|
|
107
|
+
"@sogni-ai/sogni-client": "5.39.1"
|
|
105
108
|
},
|
|
106
109
|
"openclaw": {
|
|
107
110
|
"extensions": [
|
package/references/hosted-api.md
CHANGED
|
@@ -61,7 +61,8 @@ whenever latency or cost rules out an LLM round-trip.
|
|
|
61
61
|
- Preserve exact image prompts, visible lettering, chosen models, source
|
|
62
62
|
selection, aspect ratio, and the latest requested duration. New tasks do not
|
|
63
63
|
inherit settings from unrelated previous renders. A pure size increase uses
|
|
64
|
-
`upscale_image
|
|
64
|
+
`upscale_image` for images and `upscale_video` for videos; editing requires
|
|
65
|
+
an actual source reference.
|
|
65
66
|
- Separate image variations need `numberOfVariations` and a complete Dynamic
|
|
66
67
|
Prompt branch per output. Repeat shared text, branding, dialogue, and loop
|
|
67
68
|
motion in every affected branch. A single storyboard sheet instead needs all
|
|
@@ -123,7 +124,7 @@ requests keep their existing timeouts.
|
|
|
123
124
|
|
|
124
125
|
- `creative-tools` — the public API default when `sogni_tools` is omitted or
|
|
125
126
|
true. Generation/editing tools (`generate_image`, `generate_video`,
|
|
126
|
-
`generate_music`, `generate_speech`, `edit_image`, `upscale_image`, `apply_style`, `restore_photo`,
|
|
127
|
+
`generate_music`, `generate_speech`, `edit_image`, `upscale_image`, `upscale_video`, `apply_style`, `restore_photo`,
|
|
127
128
|
`refine_result`, `animate_photo`, `change_angle`, `video_to_video`,
|
|
128
129
|
`stitch_video`, `orbit_video`, `dance_montage`, `sound_to_video`,
|
|
129
130
|
`extend_video`, `replace_video_segment`, `overlay_video`, `add_subtitles`),
|
|
@@ -147,6 +148,14 @@ either `scale: 2|3|4` or `targetLongestEdge`. Use `7680` for 8K or `15360` for
|
|
|
147
148
|
16K. The promptless NVIDIA RTX VSR path preserves the source aspect ratio,
|
|
148
149
|
aligns both output edges to 8px, and returns JPG when the target exceeds 8K.
|
|
149
150
|
|
|
151
|
+
For a pure resolution increase of a video, call `upscale_video` with
|
|
152
|
+
`sourceVideoIndex` (generated results are 0-based; -1 is the first upload) and
|
|
153
|
+
an optional `targetResolution` of 1080 or 1440. The promptless FlashVSR path
|
|
154
|
+
keeps every frame, the frame rate, the aspect ratio, and the audio; the server
|
|
155
|
+
reads the source metadata itself, so the model never supplies frames or fps.
|
|
156
|
+
It cannot produce 4K, and it is not a substitute for `video_to_video` when the
|
|
157
|
+
user asks a generative model such as Seedance to re-render the clip.
|
|
158
|
+
|
|
150
159
|
## --durable-chat (`POST /v1/chat/runs`)
|
|
151
160
|
|
|
152
161
|
Long-running, LLM-in-the-loop turns persisted as chat-run records instead of a
|
package/references/models.md
CHANGED
|
@@ -73,6 +73,27 @@ fits the result inside the requested box without cropping or stretching. Both
|
|
|
73
73
|
16K; targets above 7680px return JPG. If a scale leaves the short edge below
|
|
74
74
|
512px, use the minimum target longest edge reported by the CLI/tool.
|
|
75
75
|
|
|
76
|
+
### Video upscaling
|
|
77
|
+
|
|
78
|
+
| Model | Kind | Use Case |
|
|
79
|
+
|-------|------|----------|
|
|
80
|
+
| `flashvsr_v1.1_tiny_long_bf16` | Video job | Promptless FlashVSR v1.1 upscale of one finished video to 1080p or 1440p |
|
|
81
|
+
|
|
82
|
+
FlashVSR is not a generation model. Invoke it with
|
|
83
|
+
`sogni-agent --upscale-video <path|url>` (optionally
|
|
84
|
+
`--upscale-resolution 1080|1440`), or use the hosted `upscale_video` tool with
|
|
85
|
+
`sourceVideoIndex` and an optional `targetResolution`. The output short edge
|
|
86
|
+
becomes 1080 or 1440 (default 1440; 1080 when the source is below 720p) while
|
|
87
|
+
the aspect ratio, every frame, the exact frame rate, and the original audio are
|
|
88
|
+
kept; nothing is trimmed, cropped, restyled, or interpolated. Sources must be
|
|
89
|
+
at most 768px on the short edge and about 1344x768 pixels overall (768x1344 in
|
|
90
|
+
portrait), 1-60 fps,
|
|
91
|
+
SDR with square pixels, and 100 MB or less; 1440p needs a source short edge of
|
|
92
|
+
at least 720px and 1080p at least 540px. 4K is not available. The direct CLI
|
|
93
|
+
reads the exact frame count and rate with a local ffprobe. The server sets the
|
|
94
|
+
maximum clip length; do not quote a fixed limit. Relay a server rejection if
|
|
95
|
+
the source is too long, without trimming it or switching to a generative tool.
|
|
96
|
+
|
|
76
97
|
For Krea 2 Turbo, hosted/chat planning may use the creative-agent selector
|
|
77
98
|
`krea-2-turbo`; direct CLI `-m` uses the worker model ID
|
|
78
99
|
`krea2_turbo_fp8_scaled`.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { cpSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
3
|
+
import { tmpdir } from 'node:os';
|
|
4
|
+
import { dirname, join, resolve } from 'node:path';
|
|
5
|
+
import { spawnSync } from 'node:child_process';
|
|
6
|
+
import { fileURLToPath } from 'node:url';
|
|
7
|
+
|
|
8
|
+
const ROOT = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
9
|
+
|
|
10
|
+
// Preserve the source layout so the MCP server's shared relative imports stay
|
|
11
|
+
// inside the standalone extension, without including the full CLI or SDK.
|
|
12
|
+
export function stageMcpb(destination) {
|
|
13
|
+
mkdirSync(destination, { recursive: true });
|
|
14
|
+
cpSync(join(ROOT, 'desktop-extension'), join(destination, 'desktop-extension'), {
|
|
15
|
+
recursive: true,
|
|
16
|
+
filter: (source) => !['node_modules', 'package-lock.json', '.DS_Store'].includes(source.split(/[\\/]/).at(-1)),
|
|
17
|
+
});
|
|
18
|
+
for (const file of ['attribution.mjs', 'version.mjs', 'LICENSE']) {
|
|
19
|
+
cpSync(join(ROOT, file), join(destination, file));
|
|
20
|
+
}
|
|
21
|
+
const manifest = JSON.parse(readFileSync(join(ROOT, 'desktop-extension', 'manifest.json'), 'utf8'));
|
|
22
|
+
manifest.server.entry_point = 'desktop-extension/server/index.mjs';
|
|
23
|
+
manifest.server.mcp_config.args = ['${__dirname}/desktop-extension/server/index.mjs'];
|
|
24
|
+
writeFileSync(join(destination, 'manifest.json'), `${JSON.stringify(manifest, null, 2)}\n`);
|
|
25
|
+
return manifest;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
|
|
29
|
+
const staging = mkdtempSync(join(tmpdir(), 'sogni-mcpb-'));
|
|
30
|
+
try {
|
|
31
|
+
stageMcpb(staging);
|
|
32
|
+
const output = join(ROOT, 'dist', 'sogni-creative-agent.mcpb');
|
|
33
|
+
mkdirSync(dirname(output), { recursive: true });
|
|
34
|
+
const result = spawnSync(
|
|
35
|
+
process.platform === 'win32' ? 'npx.cmd' : 'npx',
|
|
36
|
+
['-y', '@anthropic-ai/mcpb', 'pack', staging, output],
|
|
37
|
+
{ stdio: 'inherit', shell: process.platform === 'win32' },
|
|
38
|
+
);
|
|
39
|
+
if (result.error) throw result.error;
|
|
40
|
+
process.exitCode = result.status ?? 1;
|
|
41
|
+
} finally {
|
|
42
|
+
rmSync(staging, { recursive: true, force: true });
|
|
43
|
+
}
|
|
44
|
+
}
|
package/skill-package.json
CHANGED
package/skills/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Available to every per-skill consumer. Sogni-hosted chat loads all capabilities
|
|
|
23
23
|
| [`image_generation`](./image_generation.md) | `generate_image` |
|
|
24
24
|
| [`image_editing`](./image_editing.md) | `edit_image`, `upscale_image`, `restore_photo`, `apply_style`, `change_angle`, `refine_result` |
|
|
25
25
|
| [`video_generation`](./video_generation.md) | `generate_video` |
|
|
26
|
-
| [`video_editing`](./video_editing.md) | `animate_photo`, `sound_to_video`, `video_to_video`, `stitch_video`, `orbit_video`, `dance_montage`, `extend_video`, `replace_video_segment`, `overlay_video`, `add_subtitles` |
|
|
26
|
+
| [`video_editing`](./video_editing.md) | `animate_photo`, `sound_to_video`, `video_to_video`, `upscale_video`, `stitch_video`, `orbit_video`, `dance_montage`, `extend_video`, `replace_video_segment`, `overlay_video`, `add_subtitles` |
|
|
27
27
|
| [`music_generation`](./music_generation.md) | `generate_music` |
|
|
28
28
|
| [`media_analysis`](./media_analysis.md) | `analyze_image`, `analyze_video`, `extract_metadata` |
|
|
29
29
|
| [`persona_management`](./persona_management.md) | `resolve_personas`, `manage_memory` |
|
package/skills/video_editing.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: video_editing
|
|
3
|
-
description: Source-conditioned video flows: animate a photo, audio-driven motion, video style transfer, Seedance/HappyHorse/MiniMax H3 references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles).
|
|
3
|
+
description: Source-conditioned video flows: animate a photo, audio-driven motion, video style transfer, promptless FlashVSR video upscaling, Seedance/HappyHorse/MiniMax H3 references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles).
|
|
4
4
|
always_loaded: false
|
|
5
5
|
tool_names:
|
|
6
6
|
- animate_photo
|
|
7
7
|
- sound_to_video
|
|
8
8
|
- video_to_video
|
|
9
|
+
- upscale_video
|
|
9
10
|
- stitch_video
|
|
10
11
|
- orbit_video
|
|
11
12
|
- dance_montage
|
|
@@ -24,6 +25,7 @@ Convert a still image, audio track, or existing clip into video, plus Seedance a
|
|
|
24
25
|
- `animate_photo` — photo-to-video animation with LTX/WAN/Seedance/HappyHorse/MiniMax H3 i2v and first/last-frame routing.
|
|
25
26
|
- `sound_to_video` — audio-synced video generation.
|
|
26
27
|
- `video_to_video` — video style transfer with ControlNet.
|
|
28
|
+
- `upscale_video` — promptless FlashVSR upscale of one uploaded or generated video to 1080p or 1440p, keeping every frame, the frame rate, the aspect ratio, and the audio.
|
|
27
29
|
- `stitch_video` — concatenate previously rendered clips.
|
|
28
30
|
- `orbit_video` — 360° orbit composition with optional dialogue.
|
|
29
31
|
- `dance_montage` — beat-synced dance-style composition over uploaded photos.
|
|
@@ -36,6 +38,7 @@ Convert a still image, audio track, or existing clip into video, plus Seedance a
|
|
|
36
38
|
|
|
37
39
|
- Per-clip retry and the batch progress contract are sacred — never collapse a multi-clip render down to a single waterfall call.
|
|
38
40
|
- `animate_photo` errors with `all_failed` must surface to the user; do not auto-retry from inside the chat loop.
|
|
41
|
+
- Use `upscale_video` when the user only wants a sharper, higher-resolution copy of an existing video. Pick the source with `sourceVideoIndex` (generated results are 0-based; -1 is the first upload) and optionally `targetResolution` 1080 or 1440 (default 1440, or 1080 for sources under 720p). It cannot produce 4K. Sources must be ≤768px on the short edge and at most about 1344×768 pixels (768×1344 portrait), 1-60 fps, and ≤100 MB. The server sets the maximum clip length; relay its error if a source is too long, without quoting a fixed limit. Never invent a prompt or substitute `video_to_video`/`generate_video` unless the user names a generative model such as Seedance for a re-render.
|
|
39
42
|
- For multiple prompt-only takes from one fixed source/end image and shared settings, prefer one Dynamic Prompt request with `numberOfVariations`/`-n`, then stitch the returned clips if the user asked for a single final video.
|
|
40
43
|
- Keep per-clip prompt arrays and source/end image arrays when clips need different assets, durations, audio windows, or other per-output settings.
|
|
41
44
|
- HappyHorse i2v uses exactly one first-frame image and r2v uses 1-9 image references; do not attach reference audio, reference video, ControlNet, or negative prompts.
|