imgx-mcp 1.0.2 → 1.0.3

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,10 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.3 (2026-03-03)
4
+
5
+ ### Fixed
6
+
7
+ - **`clear_history` directory removal** — `rmSync()` does not remove directories; replaced with `rmdirSync()` in both MCP server and CLI to correctly remove empty session directories after file deletion
8
+
3
9
  ## 1.0.2 (2026-03-03)
4
10
 
5
11
  ### Fixed
6
12
 
7
- - **v1.0.1 published with stale bundles** — `npm run bundle` (esbuild) was not run before `npm publish`, so v1.0.1 contained old `dist/mcp.bundle.js`. v1.0.2 is the correct release with all fixes below
13
+ - **v1.0.1 published with stale bundles** — `npm run bundle` (esbuild) was not run before `npm publish`, so v1.0.1 contained old `dist/mcp.bundle.js`. v1.0.2 is the correct release with session outputDir inheritance fix
8
14
 
9
15
  ## 1.0.1 (2026-03-03) [YANKED — published with stale bundles]
10
16
 
@@ -40016,7 +40016,7 @@ function showAll() {
40016
40016
 
40017
40017
  // build/cli/commands/history.js
40018
40018
  import { createInterface as createInterface2 } from "node:readline";
40019
- import { rmSync as rmSync2, existsSync as existsSync3 } from "node:fs";
40019
+ import { rmSync as rmSync2, rmdirSync, existsSync as existsSync3 } from "node:fs";
40020
40020
  import { dirname as dirname2 } from "node:path";
40021
40021
  function runHistory(args) {
40022
40022
  const sub = args[0];
@@ -40102,7 +40102,7 @@ function deleteSessionFiles(filePaths) {
40102
40102
  }
40103
40103
  for (const dir of dirs) {
40104
40104
  try {
40105
- rmSync2(dir, { recursive: false });
40105
+ rmdirSync(dir);
40106
40106
  } catch {
40107
40107
  }
40108
40108
  }
@@ -40138,7 +40138,7 @@ function runRedo() {
40138
40138
  }
40139
40139
 
40140
40140
  // build/cli/index.js
40141
- var VERSION2 = "1.0.2";
40141
+ var VERSION2 = "1.0.3";
40142
40142
  var HELP = `imgx v${VERSION2} \u2014 AI image generation and editing for MCP-compatible AI agents
40143
40143
 
40144
40144
  Commands:
@@ -69820,7 +69820,7 @@ function buildImageContent(images, paths, extra) {
69820
69820
  }
69821
69821
  var server = new McpServer({
69822
69822
  name: "imgx",
69823
- version: "1.0.2"
69823
+ version: "1.0.3"
69824
69824
  });
69825
69825
  initGemini();
69826
69826
  initOpenAI();
@@ -70039,7 +70039,7 @@ server.tool("clear_history", "Clear all edit history. Optionally delete image fi
70039
70039
  const result = clearHistory();
70040
70040
  let filesDeleted = 0;
70041
70041
  if (args.delete_files) {
70042
- const { existsSync, rmSync } = await import("node:fs");
70042
+ const { existsSync, rmSync, rmdirSync } = await import("node:fs");
70043
70043
  const { dirname: dirname2 } = await import("node:path");
70044
70044
  const dirs = /* @__PURE__ */ new Set();
70045
70045
  for (const fp of result.filePaths) {
@@ -70054,7 +70054,7 @@ server.tool("clear_history", "Clear all edit history. Optionally delete image fi
70054
70054
  }
70055
70055
  for (const dir of dirs) {
70056
70056
  try {
70057
- rmSync(dir);
70057
+ rmdirSync(dir);
70058
70058
  } catch {
70059
70059
  }
70060
70060
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imgx-mcp",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "mcpName": "io.github.somacoffeekyoto/imgx",
5
5
  "description": "AI image generation and editing for Claude Code, Codex CLI, and MCP-compatible AI agents",
6
6
  "type": "module",