@sogni-ai/sogni-creative-agent-skill 2.0.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.
@@ -0,0 +1,8 @@
1
+ {
2
+ "mcpServers": {
3
+ "sogni": {
4
+ "command": "npx",
5
+ "args": ["-y", "-p", "@sogni-ai/sogni-creative-agent-skill", "sogni-agent-mcp"]
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,114 @@
1
+ {
2
+ "manifest_version": "0.3",
3
+ "name": "sogni-creative-agent-skill",
4
+ "version": "2.0.0",
5
+ "display_name": "Sogni Creative Agent Skill — Image & Video Generation",
6
+ "description": "Creative AI superpowers for all AI agent runtimes, powered by Sogni AI's decentralized GPU network",
7
+ "long_description": "Sogni Creative Agent Skill gives any AI agent (Claude Code/Desktop, OpenClaw, Hermes Agent, Manus AI, and more) image generation, image editing, video generation, photobooth face transfer, persona memory, and other creative-media tools. Uses Spark tokens — claim 50 free daily at https://app.sogni.ai/",
8
+ "author": {
9
+ "name": "Sogni AI",
10
+ "url": "https://sogni.ai"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/Sogni-AI/sogni-creative-agent-skill.git"
15
+ },
16
+ "homepage": "https://sogni.ai",
17
+ "support": "https://github.com/Sogni-AI/sogni-creative-agent-skill/issues",
18
+ "license": "MIT",
19
+ "keywords": ["image-generation", "video-generation", "ai", "sogni", "agent", "mcp"],
20
+ "server": {
21
+ "type": "node",
22
+ "entry_point": "server/mcp-server.mjs",
23
+ "mcp_config": {
24
+ "command": "node",
25
+ "args": ["${__dirname}/server/mcp-server.mjs"],
26
+ "env": {
27
+ "SOGNI_USERNAME": "${user_config.sogni_username}",
28
+ "SOGNI_PASSWORD": "${user_config.sogni_password}",
29
+ "SOGNI_CREDENTIALS_PATH": "${user_config.sogni_credentials_path}",
30
+ "SOGNI_LAST_RENDER_PATH": "${user_config.sogni_last_render_path}",
31
+ "SOGNI_MEDIA_INBOUND_DIR": "${user_config.sogni_media_inbound_dir}",
32
+ "SOGNI_DOWNLOADS_DIR": "${user_config.sogni_downloads_dir}",
33
+ "SOGNI_MCP_SAVE_DOWNLOADS": "${user_config.sogni_mcp_save_downloads}"
34
+ }
35
+ }
36
+ },
37
+ "user_config": {
38
+ "sogni_username": {
39
+ "type": "string",
40
+ "title": "Sogni Username",
41
+ "description": "Your Sogni AI username (sign up at https://app.sogni.ai/)",
42
+ "required": false
43
+ },
44
+ "sogni_password": {
45
+ "type": "string",
46
+ "title": "Sogni Password",
47
+ "description": "Your Sogni AI password",
48
+ "required": false,
49
+ "sensitive": true
50
+ },
51
+ "sogni_credentials_path": {
52
+ "type": "string",
53
+ "title": "Credentials File Path",
54
+ "description": "Optional override for credentials file path (default: ~/.config/sogni/credentials)",
55
+ "required": false
56
+ },
57
+ "sogni_last_render_path": {
58
+ "type": "string",
59
+ "title": "Last Render Path",
60
+ "description": "Optional path for last-render metadata (default: ~/.config/sogni/last-render.json)",
61
+ "required": false
62
+ },
63
+ "sogni_media_inbound_dir": {
64
+ "type": "string",
65
+ "title": "Inbound Media Directory",
66
+ "description": "Directory used by --list-media (default: ~/.clawdbot/media/inbound)",
67
+ "required": false
68
+ },
69
+ "sogni_downloads_dir": {
70
+ "type": "string",
71
+ "title": "MCP Downloads Directory",
72
+ "description": "Where MCP saves local media copies (default: ~/Downloads/sogni)",
73
+ "required": false
74
+ },
75
+ "sogni_mcp_save_downloads": {
76
+ "type": "string",
77
+ "title": "Save MCP Downloads",
78
+ "description": "Set to 0 to disable writing local MCP media copies",
79
+ "required": false
80
+ }
81
+ },
82
+ "tools": [
83
+ {
84
+ "name": "generate_image",
85
+ "description": "Generate an image from a text prompt"
86
+ },
87
+ {
88
+ "name": "generate_video",
89
+ "description": "Generate a video from a text prompt or reference image"
90
+ },
91
+ {
92
+ "name": "edit_image",
93
+ "description": "Edit an existing image with a text instruction"
94
+ },
95
+ {
96
+ "name": "photobooth",
97
+ "description": "Generate stylized portraits from a face photo"
98
+ },
99
+ {
100
+ "name": "check_balance",
101
+ "description": "Check Sogni token balances (SPARK and SOGNI)"
102
+ },
103
+ {
104
+ "name": "list_models",
105
+ "description": "List available image and video models"
106
+ }
107
+ ],
108
+ "compatibility": {
109
+ "platforms": ["darwin", "win32", "linux"],
110
+ "runtimes": {
111
+ "node": ">=22.11.0"
112
+ }
113
+ }
114
+ }
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+
3
+ // Keep desktop-extension entrypoint in sync by delegating to the root MCP server.
4
+ import '../../mcp-server.mjs';
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "sogni-creative-agent-skill-desktop-server",
3
+ "version": "2.0.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "engines": {
7
+ "node": ">=22.11.0"
8
+ }
9
+ }
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+
3
+ // Keep desktop-extension entrypoint in sync by delegating to the root CLI.
4
+ import '../../sogni-agent.mjs';
package/env.mjs ADDED
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Centralized environment access so execution/networking modules do not read
3
+ * environment variables directly.
4
+ */
5
+
6
+ const ENV = process.env;
7
+
8
+ export function getEnv(name, { trim = false } = {}) {
9
+ const value = ENV[name];
10
+ if (typeof value !== 'string') return undefined;
11
+ return trim ? value.trim() : value;
12
+ }
13
+
14
+ export function hasEnv(name) {
15
+ const value = ENV[name];
16
+ return typeof value === 'string' && value.length > 0;
17
+ }
package/llm.txt ADDED
@@ -0,0 +1,69 @@
1
+ # sogni-creative-agent-skill
2
+
3
+ Creative AI superpowers for all AI agent runtimes — Claude Code, Claude Desktop,
4
+ OpenClaw, Hermes Agent, Manus AI, and more. Powered by Sogni AI's decentralized
5
+ GPU network.
6
+
7
+ ## Install (pick the integration that matches your environment)
8
+
9
+ ```bash
10
+ # MCP server (Claude Code)
11
+ claude mcp add sogni -- npx -y -p @sogni-ai/sogni-creative-agent-skill sogni-agent-mcp
12
+
13
+ # OpenClaw plugin
14
+ openclaw plugins install sogni-creative-agent-skill
15
+
16
+ # OpenClaw local linked checkout (for continuous updates)
17
+ cd /path/to/sogni-creative-agent-skill
18
+ npm install
19
+ npm link
20
+ npm run openclaw:sync
21
+ openclaw plugins install -l "$PWD/.openclaw-link"
22
+ openclaw gateway restart
23
+
24
+ # Update OpenClaw local linked checkout
25
+ cd /path/to/sogni-creative-agent-skill
26
+ git pull --ff-only
27
+ npm install
28
+ npm link
29
+ npm run openclaw:sync
30
+ openclaw gateway restart
31
+
32
+ # Hermes Agent / Manus / other agent frameworks
33
+ # Point the agent at https://github.com/Sogni-AI/sogni-creative-agent-skill — use SKILL.md as
34
+ # the behavior source and invoke the CLI/MCP server.
35
+
36
+ # Standalone Node CLI
37
+ npm install -g @sogni-ai/sogni-creative-agent-skill
38
+ ```
39
+
40
+ ## Configure Sogni credentials
41
+
42
+ Once-only setup, used by every integration above:
43
+
44
+ ```bash
45
+ mkdir -p ~/.config/sogni
46
+ cat > ~/.config/sogni/credentials << 'EOF'
47
+ SOGNI_API_KEY=your_api_key
48
+ # or:
49
+ # SOGNI_USERNAME=your_username
50
+ # SOGNI_PASSWORD=your_password
51
+ EOF
52
+ chmod 600 ~/.config/sogni/credentials
53
+ ```
54
+
55
+ You can also export `SOGNI_API_KEY`, or `SOGNI_USERNAME` + `SOGNI_PASSWORD`,
56
+ instead of writing the file. Sign up at https://app.sogni.ai/ if you do not
57
+ have an account.
58
+
59
+ ## Repo
60
+
61
+ https://github.com/Sogni-AI/sogni-creative-agent-skill
62
+
63
+ ## Key files
64
+
65
+ - `SKILL.md` — agent behavior and usage rules (load this into your agent)
66
+ - `openclaw.plugin.json` — OpenClaw plugin manifest and config schema
67
+ - `.openclaw-link/` — generated OpenClaw link target for local development only
68
+ - `sogni-agent.mjs` — CLI used by the skill / MCP server
69
+ - `mcp-server.mjs` — MCP server entry point