@sogni-ai/sogni-creative-agent-skill 3.6.1 → 3.6.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,21 @@ All notable changes to this project are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [3.6.2] - 2026-06-22
9
+
10
+ ### Fixed
11
+
12
+ - **`sogni-agent self-update` now gives clearer recovery guidance after failed global package updates.** When the
13
+ package manager exits nonzero, the CLI reports the failing exit code and prints platform-specific permission
14
+ guidance (for example, `sudo sogni-agent self-update` on macOS/Linux or an Administrator terminal on Windows)
15
+ instead of leaving users with only raw npm output.
16
+ - **Codex and Hermes setup docs now mention the target app must be started once before targeted installer runs.**
17
+ `README.md` and `llm.txt` now match the setup installer preflight: `--only=codex` and `--only=hermes` exit
18
+ before installing anything if `~/.codex/` or `~/.hermes/` has not been created yet.
19
+ - **Claude plugin setup guidance no longer tells agents to create a duplicate personal Claude skill.** The
20
+ plugin-bundled skill now installs only the global CLI, tells agents not to run the default setup installer from
21
+ inside the plugin, and clarifies that setup cleanup does not uninstall the Claude Code plugin itself.
22
+
8
23
  ## [3.6.1] - 2026-06-15
9
24
 
10
25
  ### Changed
package/README.md CHANGED
@@ -82,8 +82,9 @@ With this skill, an agent can:
82
82
 
83
83
  This auto-detects Claude Code, OpenAI Codex CLI, and Hermes Agent; installs the
84
84
  CLI globally; registers the skill into each detected runtime; prompts for your
85
- API key; and prints ChatGPT Custom-GPT setup instructions. (It does **not**
86
- configure OpenClaw — see the [OpenClaw plugin](#openclaw-plugin) section.)
85
+ API key; and tells you how to request ChatGPT Custom-GPT setup instructions.
86
+ (It does **not** configure OpenClaw — see the [OpenClaw plugin](#openclaw-plugin)
87
+ section.)
87
88
 
88
89
  Prefer to do it manually? Install the CLI directly:
89
90
 
@@ -151,10 +152,11 @@ The first command registers a `sogni` marketplace with one plugin entry (`sogni-
151
152
  The `npx` installer writes the skill to `~/.codex/skills/sogni-creative-agent-skill/`, which the Codex CLI discovers automatically:
152
153
 
153
154
  ```bash
154
- npm install -g @sogni-ai/sogni-creative-agent-skill@latest
155
155
  npx setup-sogni-agent-skill --only=codex
156
156
  ```
157
157
 
158
+ Start Codex once before running the installer so `~/.codex/` exists. If the selected local runtime is not detected, setup exits before installing anything.
159
+
158
160
  Restart Codex (or start a new session) and ask it to "generate an image of a sunset" — the skill shells out to the globally installed `sogni-agent`. To remove it later: `npx setup-sogni-agent-skill --uninstall --only=codex`.
159
161
 
160
162
  ### Hermes Agent
@@ -162,10 +164,11 @@ Restart Codex (or start a new session) and ask it to "generate an image of a sun
162
164
  [Hermes Agent](https://hermes-agent.nousresearch.com/) loads skills from `~/.hermes/skills/<category>/<name>/SKILL.md`. The `npx` installer places this skill at `~/.hermes/skills/media/sogni-creative-agent-skill/`:
163
165
 
164
166
  ```bash
165
- npm install -g @sogni-ai/sogni-creative-agent-skill@latest
166
167
  npx setup-sogni-agent-skill --only=hermes
167
168
  ```
168
169
 
170
+ Start Hermes once before running the installer so `~/.hermes/` exists. If the selected local runtime is not detected, setup exits before installing anything.
171
+
169
172
  Then `/reset` your Hermes session so it picks up the new skill. (You can also install manually: copy [`SKILL.md`](./SKILL.md) into `~/.hermes/skills/media/sogni-creative-agent-skill/SKILL.md`, or use `hermes skills install` if your build supports it.)
170
173
 
171
174
  ### OpenClaw plugin
@@ -216,7 +219,7 @@ When loaded through OpenClaw, this skill reads plugin defaults from OpenClaw con
216
219
 
217
220
  ### ChatGPT (Custom GPT)
218
221
 
219
- Running `npx setup-sogni-agent-skill` also prints step-by-step instructions for creating a ChatGPT Custom GPT whose Instructions embed this skill. Note that ChatGPT cannot run the local CLI; the Custom GPT path covers prompt-side behavior only.
222
+ Run `npx setup-sogni-agent-skill --only=chatgpt` to print step-by-step instructions for creating a ChatGPT Custom GPT whose Instructions embed this skill. Note that ChatGPT cannot run the local CLI; the Custom GPT path covers prompt-side behavior only.
220
223
 
221
224
  ### Manus / other SKILL.md frameworks
222
225
 
package/SKILL.md CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sogni-creative-agent-skill
3
3
  description: "Sogni Creative Agent Skill: agent skill and CLI for image, video, and music generation using Sogni AI's decentralized GPU network. Supports personas (named people with saved reference photos and voice clips), persistent memories, custom personality, style transfer, angle synthesis, Seedance/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\", \"make a video/animate\", \"make music\", \"apply a style\", or \"generate me as a superhero\"."
4
4
  metadata:
5
- version: "3.6.1"
5
+ version: "3.6.2"
6
6
  homepage: https://sogni.ai
7
7
  openclaw:
8
8
  emoji: "🎨"
package/llm.txt CHANGED
@@ -8,10 +8,13 @@ Manus AI, and other SKILL.md-aware agent runtimes.
8
8
 
9
9
  ```bash
10
10
  # One-command install: detects Claude Code, Codex CLI, and Hermes; installs the
11
- # CLI globally; prompts for the API key; prints ChatGPT Custom-GPT instructions.
11
+ # CLI globally; prompts for the API key; points to ChatGPT Custom-GPT setup.
12
12
  # (Does NOT configure OpenClaw — see below.)
13
13
  npx setup-sogni-agent-skill
14
14
 
15
+ # Print ChatGPT Custom-GPT instructions explicitly.
16
+ npx setup-sogni-agent-skill --only=chatgpt
17
+
15
18
  # Agent-safe manual CLI install or upgrade
16
19
  npm install -g @sogni-ai/sogni-creative-agent-skill@latest
17
20
  sogni-agent --version
@@ -23,11 +26,11 @@ sogni-agent --version
23
26
  # Pick ONE Claude Code registration: the plugin OR the ~/.claude/skills install
24
27
  # from the npx installer — not both.
25
28
 
26
- # OpenAI Codex CLI (writes ~/.codex/skills/sogni-creative-agent-skill/)
29
+ # OpenAI Codex CLI (start Codex once first so ~/.codex/ exists)
27
30
  npx setup-sogni-agent-skill --only=codex
28
31
 
29
- # Hermes Agent (writes ~/.hermes/skills/media/sogni-creative-agent-skill/),
30
- # then /reset the Hermes session
32
+ # Hermes Agent (start Hermes once first so ~/.hermes/ exists), then /reset the
33
+ # Hermes session
31
34
  npx setup-sogni-agent-skill --only=hermes
32
35
 
33
36
  # OpenClaw plugin (the npm package is scoped — use the npm: source prefix)
@@ -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.6.1",
5
+ "version": "3.6.2",
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.6.1",
3
+ "version": "3.6.2",
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",
package/update-check.mjs CHANGED
@@ -24,7 +24,7 @@
24
24
  import { spawn, spawnSync } from 'child_process';
25
25
  import { existsSync, mkdirSync, readFileSync, writeFileSync, unlinkSync } from 'fs';
26
26
  import { dirname, join } from 'path';
27
- import { homedir } from 'os';
27
+ import { homedir, platform as osPlatform } from 'os';
28
28
  import https from 'https';
29
29
 
30
30
  export const PACKAGE_NAME = '@sogni-ai/sogni-creative-agent-skill';
@@ -73,6 +73,20 @@ export function detectPackageManager(env = process.env) {
73
73
  return { manager: 'npm', installCmd: `npm install -g ${PACKAGE_NAME}` };
74
74
  }
75
75
 
76
+ function isPermissionErrorText(text) {
77
+ return /EACCES|EPERM|permission denied|operation not permitted/i.test(String(text || ''));
78
+ }
79
+
80
+ export function formatSelfUpdatePermissionHint({ manager = 'npm', platform = osPlatform() } = {}) {
81
+ const rerun = platform === 'win32'
82
+ ? 'open a terminal as Administrator and run `sogni-agent self-update` again'
83
+ : 'run `sudo sogni-agent self-update`';
84
+ if (manager === 'npm') {
85
+ return `Hint: if npm reported a permissions error, ${rerun}, or install Node with a version manager (nvm/fnm/volta).`;
86
+ }
87
+ return `Hint: if ${manager} reported a permissions error, ${rerun}, or fix your global ${manager} install permissions.`;
88
+ }
89
+
76
90
  // Hard opt-outs only. Notices are deliberately NOT skipped for non-TTY
77
91
  // stderr, --json, or OpenClaw plugin invocations anymore: those are exactly
78
92
  // the agent contexts that should relay "an update is available" to the user
@@ -432,22 +446,29 @@ export function runSelfUpdate({
432
446
  statePath = DEFAULT_STATE_PATH,
433
447
  spawnSyncFn = spawnSync,
434
448
  stdio = 'inherit',
449
+ platform = osPlatform(),
450
+ log = console.error,
435
451
  } = {}) {
436
452
  const { manager, installCmd } = detectPackageManager(env);
437
453
  const [command, ...args] = installCmd.split(' ');
438
- console.error(`Running: ${installCmd}`);
454
+ log(`Running: ${installCmd}`);
439
455
  const result = spawnSyncFn(command, args, { stdio, env });
440
456
  if (result.error) {
441
- console.error(`self-update failed: ${result.error.message}`);
457
+ log(`self-update failed: ${result.error.message}`);
442
458
  if (manager === 'npm' && /EACCES|EPERM/i.test(result.error.message)) {
443
- console.error('Hint: re-run with sudo, or install with a Node version manager (nvm/fnm/volta).');
459
+ log(formatSelfUpdatePermissionHint({ manager, platform }));
444
460
  }
445
461
  return 1;
446
462
  }
447
463
  if (typeof result.status === 'number' && result.status !== 0) {
464
+ log(`self-update failed: ${installCmd} exited with code ${result.status}.`);
465
+ const stderr = result.stderr ? result.stderr.toString('utf8') : '';
466
+ if (manager === 'npm' || isPermissionErrorText(stderr)) {
467
+ log(formatSelfUpdatePermissionHint({ manager, platform }));
468
+ }
448
469
  return result.status;
449
470
  }
450
471
  clearState(statePath);
451
- console.error('Updated. Run `sogni-agent --whats-new` to see what changed.');
472
+ log('Updated. Run `sogni-agent --whats-new` to see what changed.');
452
473
  return 0;
453
474
  }
package/version.mjs CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '3.6.1';
1
+ export const PACKAGE_VERSION = '3.6.2';