imgx-mcp 1.0.4 → 1.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.1 (2026-03-04)
4
+
5
+ ### Added
6
+
7
+ - **`CLAUDE.md`** — Project instructions for Claude Code (release flow reference, dev commands, architecture overview, project config)
8
+ - **`RELEASING.md` full rewrite** — 4-step checklist expanded to 11-step mandatory release flow covering test, version update, build, publish, MCP verification, app-division-ops docs, and public distribution
9
+
10
+ ### Fixed
11
+
12
+ - **Plugin/registry version sync** — `server.json`, `.claude-plugin/plugin.json`, `.claude-plugin/marketplace.json`, `.cursor-plugin/plugin.json` were stuck at v1.0.4; now updated to match the actual release version
13
+
14
+ ## 1.1.0 (2026-03-04)
15
+
16
+ ### Added
17
+
18
+ - **Project-scoped history** — When `.imgxrc` exists, history is saved to `<project-root>/.imgx/output-history.json` instead of the global `%APPDATA%/imgx/` (or `~/.config/imgx/`). Each project gets its own independent edit history. Falls back to global when no `.imgxrc` is found
19
+ - **`findProjectRoot()`** — Walks up from CWD to find `.imgxrc`, with `IMGX_PROJECT_ROOT` env var override and result caching
20
+ - **`resolveProjectPath()`** — Resolves relative paths against the project root (or CWD if no project)
21
+ - **`clearGlobalHistory()`** — Explicitly clears the global history store, separate from project history
22
+ - **CLI `history clear --all`** — Clears both project and global history with mandatory interactive confirmation (cannot be skipped with `--yes`)
23
+ - 17 new tests for project root detection, project-scoped history, and path resolution (total: 54 tests)
24
+
25
+ ### Changed
26
+
27
+ - **`clear_history` (MCP)** now scopes to the current project automatically
28
+ - **Relative path resolution** — `saveImage()`, `readImageAsBase64()`, `fallbackOutputDir()`, and OpenAI `edit()` now resolve relative paths against the project root instead of the MCP server's CWD
29
+ - **`loadProjectConfig()`** uses `findProjectRoot()` to locate `.imgxrc` from ancestor directories, not just CWD
30
+
3
31
  ## 1.0.4 (2026-03-03)
4
32
 
5
33
  ### Added
package/README.md CHANGED
@@ -96,7 +96,7 @@ The skill guides Claude Code through image workflows: blog covers, iterative edi
96
96
  | `redo_edit` | Redo a previously undone edit |
97
97
  | `edit_history` | Show all sessions and their edit history with metadata |
98
98
  | `switch_session` | Switch to a different editing session |
99
- | `clear_history` | Clear all history (optionally delete image files) |
99
+ | `clear_history` | Clear project history (optionally delete image files) |
100
100
  | `set_output_dir` | Change the default output directory (optionally move existing files) |
101
101
  | `list_providers` | List available providers and capabilities |
102
102
 
@@ -314,9 +314,10 @@ imgx redo # Re-apply an undone edit
314
314
  # History
315
315
  imgx history # Show all sessions and entries
316
316
  imgx history switch <session-id> # Switch to a different session
317
- imgx history clear # Clear all history (interactive)
317
+ imgx history clear # Clear project history (interactive)
318
318
  imgx history clear --yes # Clear without confirmation
319
319
  imgx history clear --keep-files # Clear history but keep image files
320
+ imgx history clear --all # Clear ALL history across all projects
320
321
 
321
322
  # Provider management
322
323
  imgx providers # List providers and capabilities
@@ -376,11 +377,13 @@ Or create manually:
376
377
 
377
378
  Project config is shared via Git. Do not put API keys in `.imgxrc`.
378
379
 
380
+ When `.imgxrc` is present, imgx-mcp treats that directory as the project root. History is saved to `<project-root>/.imgx/output-history.json` (project-scoped, not shared with other projects). Relative paths in `output` and `output_dir` are resolved against the project root instead of the MCP server's working directory.
381
+
379
382
  ### Settings resolution
380
383
 
381
384
  1. CLI flags (`--model`, `--output-dir`, etc.)
382
385
  2. Environment variables (`IMGX_MODEL`, `IMGX_OUTPUT_DIR`, etc.)
383
- 3. Project config (`.imgxrc` in current directory)
386
+ 3. Project config (`.imgxrc` searched from current directory upward)
384
387
  4. User config (`~/.config/imgx/config.json` or `%APPDATA%\imgx\config.json`)
385
388
  5. Provider defaults
386
389