diff --git a/CHANGELOG.md b/CHANGELOG.md index eec6f33..1f83206 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [1.0.0-beta.11] - 2024-08-01 +## [1.0.0-beta.11] - 2025-01-06 ### Improved - Greatly enhanced error handling for the `image` tool. The Swift CLI now returns distinct exit codes for different error conditions, such as missing Screen Recording or Accessibility permissions, instead of a generic failure code. diff --git a/RELEASING.md b/docs/RELEASING.md similarity index 100% rename from RELEASING.md rename to docs/RELEASING.md diff --git a/package.json b/package.json index 59d723f..a698ba5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@steipete/peekaboo-mcp", - "version": "1.0.0-beta.10", + "version": "1.0.0-beta.11", "description": "A macOS utility exposed via Node.js MCP server for advanced screen captures, image analysis, and window management", "type": "module", "main": "dist/index.js", diff --git a/tests/integration/peekaboo-cli-integration.test.ts b/tests/integration/peekaboo-cli-integration.test.ts index 6e8371b..ba1f9f8 100644 --- a/tests/integration/peekaboo-cli-integration.test.ts +++ b/tests/integration/peekaboo-cli-integration.test.ts @@ -188,7 +188,7 @@ describe("Swift CLI Integration Tests", () => { const firstContentItem = response.content[0] as PeekabooContentItem; // Expect the generic failure message from the handler when Swift CLI fails expect(firstContentItem.text?.toLowerCase()).toMatch( - /list operation failed: swift cli execution failed/i, + /list operation failed: (swift cli execution failed|an unknown error occurred)/i, ); } }, 15000); diff --git a/tests/unit/utils/peekaboo-cli.test.ts b/tests/unit/utils/peekaboo-cli.test.ts index 6a3ca1e..54dc5cf 100644 --- a/tests/unit/utils/peekaboo-cli.test.ts +++ b/tests/unit/utils/peekaboo-cli.test.ts @@ -189,8 +189,8 @@ describe("Swift CLI Utility", () => { expect(result).toEqual({ success: false, error: { - code: "SWIFT_CLI_EXECUTION_ERROR", - message: "Swift CLI execution failed (exit code: 1)", + code: "SWIFT_CLI_UNKNOWN_ERROR", + message: "An unknown error occurred in the Swift CLI.", details: "Plain text error", }, });